Hello everybody,
The past week I have been struggling to get a divergence free velocity field using the needs_divfree_projection option set to TRUE. In my previous post about the force fluctuations we went over a lot of options what the problem of the non-divergence free velocity field could be. In order to find out what the problem could be I decided to go back to basics. I have set up a case of a rotating cube. The cube is 10 times as small as the domain and is placed with one edge in the origin. The rotation is performed around the origin. I noticed that if I change the size of the domain (keeping the Reynolds number constant by changing the viscosity) that the divergence of the velocity field increases a lot (and is not the same shape).
I did two simulations one in a 1m by 1m domain and one in a 0.01 by 0.01 meter domain (scaling the cube accordingly). I kept the rotational velocity the same, only changing viscosity by a factor 1e4 to account for the change in size. The velocity fields scale really nicely by a factor 100. The vorticity is exactly the same. The divergence of the velocity field is however completely different (see the attached files) and I don't understand why.
So I think that either I don't understand correctly what the div(u) = 0 condition means or something goes wrong in computing and enforcing the divergence free velocity field. It appears that the divergence of the velocity field has no influence on the results which are both similar for each simulation. So now I have two questions:
- Is the divergence of the velocity field a good verification if the solver worked properly? and if the imposed velocities are correct?
It is not necessary to set div(u) = 0 to impose velocity. The reason is the projection step occurs anyways in the next step. It also does not affect the dynamics, which explains the same velocity. All of these results are discussed in the JCP 2013 paper.
- Is the divergence of the velocity field computed correctly within IBAMR and have other people found the same issues.
I am not sure what's going on here. It could be a solver issue or some scaling factors in GMRES. It could also be a plotting issue. Send me your code and I will take a look. At what timestep is this plot for non zero div(u) plotted? I will try to reproduce it during weekend.
If it helps I can upload the two cases to a git repository or something. Let me know what is the best approach!
Sure. Send me the repo link.
Thank you again for your help!
Wouter
--
You received this message because you are subscribed to the Google Groups "IBAMR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users...@googlegroups.com.
To post to this group, send email to ibamr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It could also be a plotting issue.
--
You received this message because you are subscribed to the Google Groups "IBAMR Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users+unsubscribe@googlegroups.com.
To post to this group, send email to ibamr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ibamr-users...@googlegroups.com.
To post to this group, send email to ibamr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Amneet
The forces do not change significantly and the velocity and vorticity also remain the same. Is this the result which was expected?