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/)
-   -   Dimensioned scalar to double (https://www.cfd-online.com/Forums/openfoam-programming-development/242262-dimensioned-scalar-double.html)

Monaglp April 12, 2022 17:21

Dimensioned scalar to double
 
Hi, I have this error

no matching function for call to ‘Foam::dimensioned<double>::dimensioned(Foam::dime nsionSet&, double)’
dimensionedScalar(s_.dimensions(), 0.0)
can anyone help me to fix it?

Voulet April 12, 2022 23:13

Try to use myDimensionedVariable.value() instead of myDimensionedVariable.

Monaglp April 13, 2022 15:37

can you explain more please?

Voulet April 13, 2022 23:02

Can you post your code few lines above this error and few lines bellow ?

Monaglp May 2, 2022 17:20

I solved the problem.


All times are GMT -4. The time now is 11:32.