|
[Sponsors] |
April 12, 2022, 18:21 |
Dimensioned scalar to double
|
#1 |
New Member
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4 |
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? |
|
April 13, 2022, 00:13 |
|
#2 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
Try to use myDimensionedVariable.value() instead of myDimensionedVariable.
__________________
« Debugging is what CFD is about. 5 minutes to modify your code, 5 months to find why it does not work anymore. » |
|
April 13, 2022, 16:37 |
|
#3 |
New Member
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4 |
can you explain more please?
|
|
April 14, 2022, 00:02 |
|
#4 |
Member
Join Date: Jun 2019
Posts: 41
Rep Power: 7 |
Can you post your code few lines above this error and few lines bellow ?
__________________
« Debugging is what CFD is about. 5 minutes to modify your code, 5 months to find why it does not work anymore. » |
|
May 2, 2022, 18:20 |
|
#5 |
New Member
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4 |
I solved the problem.
|
|
Tags |
dimensioned, dimensionedscalar |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD by anderson, chp 10.... supersonic flow over flat plate | varunjain89 | Main CFD Forum | 18 | May 11, 2018 08:31 |
Diverging solution in transonicMRFDyMFoam | tsalter | OpenFOAM Running, Solving & CFD | 30 | July 7, 2014 07:20 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 02:47 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |