CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Dimensioned scalar to double (https://www.cfd-online.com/Forums/openfoam/84822-dimensioned-scalar-double.html)

Christoph_84 February 9, 2011 10:10

Dimensioned scalar to double
 
Hi I’m working on a drying model based on the Antoine Equation. For the Antoine Equation and the description of the evaporation energy it is better to work with double.
How can I convert a dimensioned scalar to double ?

l_r_mcglashan February 9, 2011 10:16

dimensionedScalar has a member value() which will return a scalar (double/float)):

http://foam.sourceforge.net/docs/cpp...imensioned.php


All times are GMT -4. The time now is 08:50.