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

scalar + volScalarField

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 3, 2010, 11:11
Default scalar + volScalarField
  #1
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
akidess will become famous soon enough
Hello everyone,

I'm getting a Floating Point Exception on the following code fragment:
Foam::log(scalar(1) + (a_O*Kseg_O ))

a_O is a dimensionedScalar with value 0, Kseg_O is a volScalarField. The value in the brackets should never be zero thanks to scalar(1), yet still I get a floating point exception. Does the code not add scalar(1) to each element of the volScalarField?

Thanks,

Anton
akidess 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
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
Solving for an additional species CO in coalChemistryFoam N. A. OpenFOAM Programming & Development 2 November 13, 2014 09:43
Specifying nonuniform boundary condition maka OpenFOAM Running, Solving & CFD 59 October 22, 2014 14:52
CFX12 rif errors romance CFX 4 October 26, 2009 14:41
STAR-CD user-defined scalar Murali CD-adapco 0 February 12, 2003 23:52


All times are GMT -4. The time now is 16:39.