CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Dynamic motion of mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2017, 01:28
Default Dynamic motion of mesh
  #1
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
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.
Attached Images
File Type: png 1_Initial.png (10.7 KB, 59 views)
File Type: png 2_after_1_Sec.png (13.7 KB, 55 views)
Attached Files
File Type: zip Dynamic_mesh.zip (9.7 KB, 25 views)

Last edited by Tobi; November 24, 2017 at 11:28. Reason: Cleaned
srv537 is offline   Reply With Quote

Old   November 1, 2017, 01:38
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi

try this in U:

Code:
obstacle
{
        type            movingWallVelocity;
        value           uniform (0 0 0);
}
Best,

Pablo
Phicau is offline   Reply With Quote

Old   November 1, 2017, 02:06
Default
  #3
Member
 
Saurav Kumar
Join Date: Jul 2016
Posts: 80
Rep Power: 9
srv537 is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi

try this in U:

Code:
obstacle
{
        type            movingWallVelocity;
        value           uniform (0 0 0);
}
Best,

Pablo
I tried this but its not working
srv537 is offline   Reply With Quote

Old   November 24, 2017, 10:49
Default
  #4
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Quote:
Originally Posted by srv537 View Post
I tried this but its not working
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. \Delta t \approx  0.0001 \, \mathrm{s}), 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 y-direction with the time dependent velocity U_{y,\mathrm{Piston}}(t). I tried the moving wall boundary condition with the following values:
  • uniform (0 0 0)
  • uniform (0 1 0)
  • uniform (0 U_{y,\mathrm{Piston}}(t) 0)
Maybe we can join our efforts...
NablaDyn is offline   Reply With Quote

Old   November 24, 2017, 12:10
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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?
Attached Images
File Type: png movingCone.png (47.1 KB, 68 views)
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   November 24, 2017, 13:11
Default
  #6
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Quote:
Originally Posted by Tobi View Post
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?
Hi Tobi,

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') .
NablaDyn is offline   Reply With Quote

Old   November 24, 2017, 16:24
Default
  #7
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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.
NablaDyn likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   November 28, 2017, 12:26
Default
  #8
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Quote:
Originally Posted by Tobi View Post
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.
Sorry for the late reply, I have been away from office for some days. Yes, of course I am aware that mapping won't do so. Instead, I was hoping the movingWallVelocity patch would somehow manage the conservation correction, as I'm not familiar with the specific principles of that boundary wrapper. Well, now I know better and already switched to coldEngineFoam which is doing quite a nice job. Modifying solvers will surely not result in any significant benefit compared to using the existing library in my case.

So thanks for your clear hints and support.

Best regards,

Martin
NablaDyn is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 15:22
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 04:27
dynamic mesh for the impeller with rotational and downward motion socreate Main CFD Forum 0 July 11, 2016 04:59
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
Turbulent problems during Dynamic Mesh Motion arturojortega FLUENT 2 June 2, 2009 10:33


All times are GMT -4. The time now is 13:31.