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/)
-   -   the meaning of "mag"? (https://www.cfd-online.com/Forums/openfoam-programming-development/144614-meaning-mag.html)

Yanci November 17, 2014 19:16

the meaning of "mag"?
 
Hello there,

I met some problems about unit. What is the result of the following formula?

(2.0)*mag(symm(fvc::grad(U)))

Is it the square of strain rate (unit:s^-2) ?

What is the meaning of "mag"?

hjasak November 18, 2014 02:20

mag = magnitude

Yanci November 18, 2014 05:46

Thank you for your reply.
Dose this means "mag(symm(fvc::grad(U)))" has no unit?
But the error information shows the unit of "(2.0)*mag(symm(fvc::grad(U)))*nu()" is "[0 2 -2 0 0 0 0]". Why is it the unit of nu [0 2 -1 0 0 0 0]?

RodriguezFatz November 18, 2014 07:13

nu is the kinematic viscosity with unit m^2/s.
U is velocity with unit m/s
grad is derivative with unit 1/m
Multiply all of them and you get m^2/s * m/s * 1/m = m^2/s^2
Everything is fine.


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