CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Dimensioned scalar to double

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2022, 17:21
Exclamation Dimensioned scalar to double
  #1
New Member
 
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4
Monaglp is on a distinguished road
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?
Monaglp is offline   Reply With Quote

Old   April 12, 2022, 23:13
Default
  #2
Member
 
Join Date: Jun 2019
Posts: 41
Rep Power: 6
Voulet is on a distinguished road
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. »
Voulet is offline   Reply With Quote

Old   April 13, 2022, 15:37
Default
  #3
New Member
 
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4
Monaglp is on a distinguished road
can you explain more please?
Monaglp is offline   Reply With Quote

Old   April 13, 2022, 23:02
Default
  #4
Member
 
Join Date: Jun 2019
Posts: 41
Rep Power: 6
Voulet is on a distinguished road
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. »
Voulet is offline   Reply With Quote

Old   May 2, 2022, 17:20
Default
  #5
New Member
 
Mona
Join Date: Mar 2022
Posts: 5
Rep Power: 4
Monaglp is on a distinguished road
I solved the problem.
Monaglp is offline   Reply With Quote

Reply

Tags
dimensioned, dimensionedscalar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 07:31
Diverging solution in transonicMRFDyMFoam tsalter OpenFOAM Running, Solving & CFD 30 July 7, 2014 06:20
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


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