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

Problem with total enthalpy

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2010, 05:44
Question Problem with total enthalpy
  #1
New Member
 
Hait Anatoly
Join Date: Sep 2010
Posts: 3
Rep Power: 16
HaitAV is on a distinguished road
Hello everyone!

I have some problem with openFOAM when I try to edit energy model in sonicFoam (hEqu file). I want to change h variable on htot variable (total enthalpy).
For that purpose I try to add new field to file createFields.H:
1) volScalarField& htot = (h + 0.5 * magSqr(U));
In that case I took following message during compilation:
error: invalid initialization of non-const reference of type
‘Foam::volScalarField&’ from a temporary of type ‘Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >’
2) volScalarField htot
(
IOobject
(
"htot",
runTime.timeName(),
mesh
),
(h + 0.5 * sqr(mag(U)))
);
In that case I have no errors during compilation, but I have following error during solving energy equation:
valueInternalCoeffs cannot be called for a calculatedFvPatchField
on patch BODY_0_ of field htot in file "/home/hait/OpenFOAM/hait-1.6/run/VT5_OF_28/0/htot"
You are probably trying to solve for a field with a default boundary condition.

I need a help.
Thanks a lot!
HaitAV 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
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 maverick OpenFOAM Meshing & Mesh Conversion 2 June 18, 2011 05:36
Boundary Conditions : Total Pressure or Velocity Gearb0x OpenFOAM Running, Solving & CFD 2 February 28, 2011 22:18
Problem with rhoSimpleFoam : exploding enthalpy and density at the walls david39 OpenFOAM Running, Solving & CFD 6 January 18, 2011 12:49
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
Help! Total heat transfer rate doesn´t sum to zero Thomas FLUENT 0 April 6, 2005 03:55


All times are GMT -4. The time now is 20:19.