|
[Sponsors] |
September 3, 2010, 12:11 |
scalar + volScalarField
|
#1 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solving for an additional species CO in coalChemistryFoam | N. A. | OpenFOAM Programming & Development | 3 | February 18, 2019 06:58 |
dieselFoam problem!! trying to introduce a new heat transfer model | vivek070176 | OpenFOAM Programming & Development | 10 | December 24, 2014 00:48 |
Specifying nonuniform boundary condition | maka | OpenFOAM Running, Solving & CFD | 59 | October 22, 2014 15:52 |
CFX12 rif errors | romance | CFX | 4 | October 26, 2009 14:41 |
STAR-CD user-defined scalar | Murali | Siemens | 0 | February 12, 2003 23:52 |