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/)
-   -   calculation of a field from other field in a complex equation (https://www.cfd-online.com/Forums/openfoam-programming-development/212047-calculation-field-other-field-complex-equation.html)

alimea November 26, 2018 00:32

calculation of a field from other field in a complex equation
 
Hi foamers,

I want to calculate the viscosity of a fluid (mu) at the middle of a solver code from a non-linear Eqn like:

Code:

gamaDot = mu * (4/mu - 1) * exp(2*mu)  + exp(mu^2)
where gamaDot and mu are volScalarFields.

How can I do that?

Thanks


All times are GMT -4. The time now is 00:27.