CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Add scalar "shift" to an already computed simulation (https://www.cfd-online.com/Forums/openfoam-programming-development/245051-add-scalar-shift-already-computed-simulation.html)

jcoelho5 September 12, 2022 09:39

Add scalar "shift" to an already computed simulation
 
Hi all,

does anyone know if it is possible to modify a field by adding/subtracting a scalar shift to an already computed simulation?

Example: I computed a simulation with one BC of pressureOutlet of 5 bar. If I want to repeat the simulation with a new BC of 15 bar instead, if I continue the simulation from the previous (with a 5 bar BC), the transient would take too much time, and (when possible to use) the steady state simulation also tend to fail. My idea was to add 10 bar to all the scalar pressure field, and proceed to simulate from that state.


Thanks in advance for any suggestions.

Best regards to the forum!

jherb September 13, 2022 19:00

With funkySetFields you could change the internal field, but I have not found a method to do this also for the boundary files (funkySetFields will overwrite them with zeroGradient boundaries if you do not turn off modifying boundaries alltogether)


All times are GMT -4. The time now is 06:36.