How to move background mesh with body in overset mesh method?
Hello everyone! I am trying to simulate a boat accelerating case with v1806 which contains overset mesh method. In the case, the accelerating phase is most concerned. The acceleration can be realized by rotating the propeller. However, because the boat moving distance is very long, to save grid I want to simulate the motion by making background mesh follow the boat in x-direction. So how to do that? :o
|
rigidBodyDynamics seems to be the entry.
As OpenFOAM uses the rigidBodyDynamics lib to handle multi-body motions within overset mesh, it seems that the rigidBodyDynamics needs to be modified.:)
I am currently working on it. |
Background mesh movement is done!
4 Attachment(s)
I have successfully made the background mesh moving by adding a restraint in rigidBodyDynamics. From the flowing picture, we can see the background moving to the left.
An other question is rising, that is the inlet boundary condition. I used the condition same as the DTCHull tutorial. But the water is flowing away during the simulation. However, if i set the value from to 0 to 1 in the alpha.water file, there is a thin layer of water covering the whole inlet boundary cell, which is still not what I want. So, how to set he water level at inlet boundary when moving the background mesh? The following picture is the result of my 2D floating case. |
Hi Antoni,
did you use the "setFields" command and "setFieldsDict", respectively? That should set separate the inlet faces between air (0) and water (1) in alpha.water. Best regards |
Hi Felix, thanks for your reply.
Yes, I used the setFields command in the preprocess, and the setFieldsDict is as follow: Code:
defaultFieldValues alpha.water: Code:
Code:
FoamFile Code:
FoamFile Any ideas which combinations for p_rgh and U could work when fixing the inlet alpha.water level? Hints are highly welcome! Antoni |
If a more complex mesh blows up the simulation, I'd assume that the mesh is responsible, not the boundary conditions.
Is the quality of the mesh acceptable? In particular with respect to overset, a suitable interpolation area must be given. |
Hi Antoni,
Can you please share more detail on how you managed to get moving mesh as background mesh in the overset mesh method? I have a NWT with a moving paddle at the inlet (dynamic mesh), and I need to add a moving ship interacting with the incoming wave as well. Thank you, Saeed Quote:
|
All times are GMT -4. The time now is 01:26. |