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/)
-   -   Reading and setting the values of fields (https://www.cfd-online.com/Forums/openfoam-programming-development/165622-reading-setting-values-fields.html)

zaphod January 21, 2016 10:56

Reading and setting the values of fields
 
Hello,

I would like to obtain the values of fields like U or p and to to be able to set them. The goal would be to use an external solver.

I have gone through the documentation and started digging in the source code but found no obvious way to do this.

How could I do?

Thanks!

nimasam January 22, 2016 05:00

in swak4Foam there is an utility called manipulateField, then you can set internalField with user-defined functions

zaphod January 22, 2016 08:10

Thank you!

This seems really handy.


All times are GMT -4. The time now is 02:24.