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

Division: volScalarField1 : volScalarField2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2014, 04:48
Default Division: volScalarField1 : volScalarField2
  #1
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

I have some code like

Code:
ActualPhase -> volScalarFieldNEW() = (ActualPhase -> volScalarField1()) : (ActualPhase -> volScalarField2());
where "ActualPhase" is a pointer to a phase of type "phaseModel" and the methods like "volScalarFieldNEW()" return respective other fields of the phase.

Unfortunately I get the following error for the calculation of the new field:

/home/USER/Solver.H:164: error: expected ‘;’ before ‘:’ token
maybee is offline   Reply With Quote

Old   March 14, 2014, 05:25
Default
  #2
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
Ok got it,

only had to use "/" instead of ":" which is obviously not defined in this context.

greetings maybee
maybee is offline   Reply With Quote

Reply


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
Division by zero exception - loop over scalarField Pat84 OpenFOAM Programming & Development 6 February 18, 2017 05:57
Catching an exception - division by zero. MaLa OpenFOAM Running, Solving & CFD 1 February 16, 2014 11:00
Division of dimensioned scalars Joachim OpenFOAM 5 August 8, 2013 01:53
Suspected division by zero on velocity reported by point probe dahicke STAR-CCM+ 1 July 4, 2013 02:16
runtime error after succ. compilation + vector component division ramhari OpenFOAM Programming & Development 6 May 30, 2011 06:40


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