|
[Sponsors] |
Initial Condition Settings for rhoCentralFoam |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Hang S.
Join Date: Oct 2016
Posts: 2
Rep Power: 0 ![]() |
Hello,
I want to simulate the flow in a shock tube by using rhoCentralFoam solver with a wedge geometry (axisymmetric, 2D). In order to set the different pressure values for the driven and driver sections, I edited the file "setFieldsDict" and run "setFields" function before I run "rhoCentralFoam" solver. In "setFieldsDict" file, I used "boxToCell" to identify the cells in driver section (although I do not think it is a best way), so I draw a sufficiently big box (at least I think it was sufficient) to cover all the driver section so that I can set a high pressure. However, I did not work well, in the test results, only the pressure at the side wall of the driver section was the changed, all others were not. So I am writing to look for some tips about how to specify the nonuniform initial conditions. By the way, I generated the mesh with Gmesh where I specified the physical volume "driver_section" and "driven_section", and I can see them after I run "gmshToFoam" in "constant/polyMesh/cellZones.c" with groups of numbers. So is any way that I can take advantage of these "zone names" for specify initial conditions? Also, please let me know if I missed any important step. This is my first time using OpenFoam. Thanks so much for your help! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Sep 2015
Location: Singapore
Posts: 102
Rep Power: 10 ![]() |
Hi there,
You probably can use 'zoneToCell' in setFieldsDict instead of 'boxToCell'. Your setFieldsDict should look something like this: Code:
defaultFieldValues ( ... // set"driven_section" values ); regions ( zoneToCell { name "driver_section"; fieldValues ( ... // set "driver_section" values ); } ); |
|
![]() |
![]() |
![]() |
Tags |
cell specification, initial conditions, openfoam, rhocentralfoam, setfieldsdict |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum number of iterations exceeded chtmultiregionsimpleFoam | Moncef | OpenFOAM Running, Solving & CFD | 28 | July 13, 2020 14:26 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |
Cannot run the code properly: very large time step continuity error | crst15 | OpenFOAM Running, Solving & CFD | 9 | December 14, 2014 18:17 |
Simulation seems to converge but crashes suddenly | xxxx | OpenFOAM | 16 | September 12, 2014 08:07 |
should Courant number always be kept below 1? | wc34071209 | OpenFOAM Running, Solving & CFD | 16 | March 9, 2014 19:31 |