|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Virag
Join Date: Sep 2023
Location: Australia
Posts: 1
Rep Power: 0 ![]() |
Hi
I wanted to provide hydrostatic pressure under a wave profile as an initial condition. I decided to use the setExprFields method. My setExprFieldsDict looks like below readFields ( alpha.water ); _WATERPRESS { target value; expression #{ (alpha.water > 0.5 ? 1025*9.81*mag(pos().z() - 0.6) : 0) #}; dimensions [ kg m^-1 s^-2 ]; } expressions ( p_rgh { field p_rgh; create yes; $_WATERPRESS; } ); This does what it is intended to do except that it changes the BC from =========== ================= ================= .. ground inlet outlet sides top =========== ================= ================= p_rgh fixedFluxPressure fixedFluxPressure fixedFluxPressure empty totalPressure =========== ================= ================= To =========== ============ ============ .. ground inlet outlet sides top =========== ============ ============ p_rgh calculated calculated calculated empty calculated =========== ============ ============ How to change only the internal fields, not the BCs? |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so | immortality | OpenFOAM Pre-Processing | 15 | April 7, 2024 13:35 |
setExprFields example to generate an initial velocity field for LES of channel flow | fumiya | OpenFOAM Running, Solving & CFD | 6 | January 20, 2022 21:30 |
[PyFoam] Problems with the new PyFoam release | zfaraday | OpenFOAM Community Contributions | 13 | December 9, 2014 19:58 |
[PyFoam] having problems with pyfoam Installation | vitorspadetoventurin | OpenFOAM Community Contributions | 3 | December 2, 2014 08:18 |
energy changing associated with mass changing | Martin duan | FLUENT | 0 | August 6, 2011 13:42 |