CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Applying a spatially varying body force term (https://www.cfd-online.com/Forums/su2/242529-applying-spatially-varying-body-force-term.html)

pandamaster9 April 26, 2022 04:40

Applying a spatially varying body force term
 
Hello all,
I have been working on the periodic hill problem using Incompressible RANS. I know there is a direct way to implement a body force using BODY_FORCE = (bx,by,bz) in the config file.

However, for my purposes I want to learn how to implement such a body force that is spatially varying throughout the flow field i.e. b(x,y,z) as a vector field, in my su2 config file for the simulation.

Thank you

pcg April 26, 2022 10:32

Hi,
Have a look at this discussion: https://www.cfd-online.com/Forums/su...read-file.html
We do not have a built-in way to do that, you'd need to write some code.


All times are GMT -4. The time now is 10:03.