|
[Sponsors] |
October 13, 2021, 10:23 |
Titled dam break case in OpenFoam
|
#1 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Hello friends
I want to simulate dam break case with tilted one..how to set fields for water in this case .here I am attaching the image Please reply as soon as possible |
|
October 13, 2021, 11:08 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26 |
Hi,
You can run the case as it is after changing the orientation of gravity in the file constant/g to get the desired angle. Cheers, Yann |
|
October 13, 2021, 11:13 |
|
#3 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
But I am not able to set setfields in this case
|
|
October 13, 2021, 11:21 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26 |
I mean you can keep the original dambreak case (not tilted) and change the orientation of the gravity vector. You will be able to run everything like in the original case, since the coordinate system does not change. You just have to rotate the whole case in paraview during post-processing for a better representation of the problem
EDIT: another way around is to start with the same case as the original damBreak case, run blockMesh and setFields and then use the transformPoints utility to rotate the mesh and fields before running interFoam. Something like this: Code:
transformPoints -rotate-angle '((0 0 1) -50)' -rotateFields Cheers, Yann Last edited by Yann; October 13, 2021 at 13:09. Reason: Additional information |
|
October 25, 2021, 01:06 |
|
#5 | |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
Quote:
|
||
October 25, 2021, 03:24 |
|
#6 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26 |
I tried the solution I gave you on the damBreak case and it works fine.
Can you elaborate about what you are doing and what does not work? |
|
October 25, 2021, 04:09 |
|
#7 |
Senior Member
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Tutorials] How to prepare a case for OpenFOAM (for beginners) | taalf | OpenFOAM Community Contributions | 1 | November 6, 2022 01:22 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
Dam Break sigFpe Error | aow | OpenFOAM Running, Solving & CFD | 2 | May 24, 2018 14:32 |
How to delay releasing the water column in dam break case? | Pirlu | OpenFOAM Running, Solving & CFD | 3 | June 4, 2014 23:04 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 12:24 |