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

Add scalar "shift" to an already computed simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By jcoelho5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2022, 10:39
Default Add scalar "shift" to an already computed simulation
  #1
New Member
 
Joao Coelho
Join Date: Jun 2021
Posts: 23
Rep Power: 5
jcoelho5 is on a distinguished road
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 likes this.
jcoelho5 is offline   Reply With Quote

Old   September 13, 2022, 20:00
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
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)
jherb 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
Error in New Surface reaction model (Having multiple reactions) surajkvs OpenFOAM Programming & Development 2 May 23, 2023 22:21
Temperature calculation from total enthalpy in OpenFOAM (XiFOAM) sharifi OpenFOAM Running, Solving & CFD 1 October 8, 2020 10:16
ERROR: request for volScalarField thermo:psi from objectRegistry region0 AAbouali OpenFOAM Running, Solving & CFD 1 September 19, 2020 05:53
Non uniform temperature gradient Nabeel Abed OpenFOAM Programming & Development 2 August 20, 2019 09:10
add user scalar in one phase zhu CFX 0 April 27, 2002 04:45


All times are GMT -4. The time now is 14:32.