CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   How to change dimensionless value to dementioned type (http://www.cfd-online.com/Forums/openfoam-solving/57876-how-change-dimensionless-value-dementioned-type.html)

lakeat February 23, 2009 05:16

Hi dear Foamers, Could anyo
 
Hi dear Foamers,

Could anyone give me a hand?
How to change dimensionless value to dementioned type? As in the following sentence:

max(VSMALL, wallDist(mesh_).y())

where, wallDist(mesh_).y() is [0 1 0 0 0 0 0].
How can I change VSMALL from [0 0 0 0 0 0 0] to [0 1 0 0 0 0 0]?

Thanks in advance!


Daniel WEI

su_junwei February 23, 2009 07:53

Hi Daniel try dime
 
Hi Daniel

try
dimensionedScalar vsmall("small",dimensionSet(0,1,0,0,0,0,0),1e-8);

Junwei

lakeat February 24, 2009 04:35

多谢多谢! Thank you, it
 
多谢多谢!
Thank you, it works.

DW

braennstroem March 2, 2009 14:32

Hi, does this work in the oth
 
Hi,
does this work in the other direction as well, i.e. remove the dimension of the wall-distance!?

Regards!
Fabian

olesen March 2, 2009 14:35

what about myDimVariable.value
 
what about myDimVariable.value() to get at the value?

braennstroem March 2, 2009 14:53

Hi Mark, thanks! Fabian
 
Hi Mark,

thanks!
Fabian


All times are GMT -4. The time now is 14:29.