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/)
-   -   Writing a position dependent function (https://www.cfd-online.com/Forums/openfoam-programming-development/143790-writing-position-dependent-function.html)

kcn November 2, 2014 22:52

Writing a position dependent function
 
Hi,

Can someone please tell me the way to include a position dependent function in a solver code? Such as a source term that depends on (x,y,z) coordinates?

Thanks

ahmmedshakil November 3, 2014 05:49

Hi,
funkySetField or funkySourceFields may serve your purpose.
(https://openfoamwiki.net/index.php/C...funkySetFields)
cheers
shakil


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