CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Dimensioned scalar to double

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 9, 2011, 09:10
Default Dimensioned scalar to double
  #1
Member
 
Join Date: Nov 2009
Posts: 34
Rep Power: 6
Christoph_84 is on a distinguished road
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 ?
Christoph_84 is offline   Reply With Quote

Old   February 9, 2011, 09:16
Default
  #2
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 367
Rep Power: 13
l_r_mcglashan will become famous soon enough
dimensionedScalar has a member value() which will return a scalar (double/float)):

http://foam.sourceforge.net/docs/cpp...imensioned.php
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New densitybased solver AeroFoam giulio_romanelli OpenFOAM Running, Solving & CFD 39 October 8, 2013 02:37
Continuing User Defined Real Gas Model issues aeroman FLUENT 2 October 22, 2010 15:28
Parallel User Defined Real Gas Model aeroman FLUENT 3 October 21, 2010 15:04
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 20:44.