CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Manipulating field values in a specified area of a 3D domain (https://www.cfd-online.com/Forums/openfoam-post-processing/216118-manipulating-field-values-specified-area-3d-domain.html)

Chris123 March 28, 2019 09:09

Manipulating field values in a specified area of a 3D domain
 
Hello everyone,
I have a 3D hilly terrain and want to manipulate variables e.g. Temperature of a specific area inside the domain.
That mean, I want first, run my “normal” case Steadystate that the flow is developed. (That’s of course no problem)
But, afterwards I would like to change only Temperature conditions around a mountain (e.g. at the northern valley 0-50m in height (z-axis) at some specific x/y-cells inside of my domain.
Afterwards I will restart the run.

Is there any solution for that?

clapointe March 31, 2019 12:31

Yes, you can use setFields to set the temperature of some cellSet. See eg. https://github.com/OpenFOAM/OpenFOAM...akWithObstacle.

Caelan

Chris123 April 15, 2019 09:25

Sorry for my late reply, thank you it works.


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