|
[Sponsors] |
November 1, 2017, 02:28 |
Dynamic motion of mesh
|
#1 |
Member
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10 |
I am trying to simulate a case of 100×35 mm rectangle with the 8x25mm obstacle on the top side (Atmosphere). This obstacle will move left to right leaving 5mm space to vertical wall with Initial water level is 20mm
The case files are given in the attachment The obstacle is moving but it is not affecting the water phase. I dont know what is the problem, i have attached complete case file. Thank you, Saurav Modified by Tobi: Please use code tags instead of quotes and if you upload all files, there is no need to show it here. Last edited by Tobi; November 24, 2017 at 12:28. Reason: Cleaned |
|
November 1, 2017, 02:38 |
|
#2 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi
try this in U: Code:
obstacle { type movingWallVelocity; value uniform (0 0 0); } Pablo |
|
November 1, 2017, 03:06 |
|
#3 |
Member
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 10 |
||
November 24, 2017, 11:49 |
|
#4 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Hey Saurav,
did you make any progress? I'm having a similar problem: A moving piston in an IC engine. I'm working with the movingWallVelocity boundary condition in rhoPimpleFoam but the results are unsatisfactory. I use prescribed mesh motion, which means I have a 'manually' deformed mesh for each time step (i.e. ), so no 'dynamic mesh deformation' in typical OpenFOAM terminology). More specifically: I have a single mesh for each time step onto which I map the corresponding flow field from the preceding time step solution. The piston moves in -direction with the time dependent velocity . I tried the moving wall boundary condition with the following values: Maybe we can join our efforts... |
|
November 24, 2017, 13:10 |
|
#5 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi all,
I was just trying your case and I got the expected results. The only thing I changed is to move the obstacle down because otherwise the water level will not really rise up (gap is 5mm). With that, I get the results I expect. However, I was trying to use the PIMPLE algorithm here, it fails! So one should make a bigger workaround in order to proof that everything is fine. I used the library you are using once for a two stroke engine but it is not possible with the existing features to connect the channels with the moving piston (tried with ACMI). However, keep us up to date. @NablaDyn. If I got you correct, you have for each time step a mesh and you map the things from one time step to the other, right? Are you taking the fluxes into account? I mean, the normal mapping should not work in an conservative way, right?
__________________
Keep foaming, Tobias Holzmann |
|
November 24, 2017, 14:11 |
|
#6 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
first, thanks for your swift help. Yes, exactly. A missing flux restriction for the moving wall is what I seem to experience. The solution behaves as if the only 'driving force' of fluid flow is numerical error introduced by the mapping from one mesh onto another. But this is also what puzzles me, since I used to think the movingWallVelocity BC would do just that (flux 'elimination') . |
||
November 24, 2017, 17:24 |
|
#7 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
If you map one solution (mesh 1) to another mesh (mesh 2) then there is no consistency of fluxes. The mapFields application will not take care of flux conservation, it is just mapping the data. This is a wrong approach and cannot be used only and only if you modify the application to ensure flux consistency.
__________________
Keep foaming, Tobias Holzmann |
|
November 28, 2017, 13:26 |
|
#8 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
So thanks for your clear hints and support. Best regards, Martin |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh Preview Error in simulation of undulation motion using UDF! | h04581803 | Fluent UDF and Scheme Programming | 10 | July 27, 2021 16:22 |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 05:27 |
dynamic mesh for the impeller with rotational and downward motion | socreate | Main CFD Forum | 0 | July 11, 2016 05:59 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 10:38 |
Turbulent problems during Dynamic Mesh Motion | arturojortega | FLUENT | 2 | June 2, 2009 11:33 |