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

Entropy Calculation openFOAM V. 5.x

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By knuckles

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2018, 16:19
Default Entropy Calculation openFOAM V. 5.x
  #1
New Member
 
Andre Sato
Join Date: Jul 2011
Location: Brazil
Posts: 1
Rep Power: 0
andreissaosato is on a distinguished road
Hi,

Been trying to calculate the entropy field through openFOAM 5.X. My problem is a simple channel (1 inlet 1 outlet) with heated walls and air flowing.

So far, I tried to use the conclusions presented by Bruno in Entropy calculation in OpenFoam post #11

But still not beeing able to compile entropy.c. Because it was intended to openFOAM 2.2X I suppose.

So far, I changed the Make/options file to include the line:

Quote:
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
To include compressibleTransportModel. And now I ended up with the following error message:

Quote:
entropy.C:145:62: error: binding reference of type 'Foam::fvPatchScalarField& {aka Foam::fvPatchField<double>&}' to 'const Foam::fvPatchField<double>' discards qualifiers
fvPatchScalarField& pS = S.boundaryField()[patchi];
I could include a const before fvPatchScalarField& pS but it doesn't seem right.

I have very little knowledge on programming in openFOAM. Any help would be of great value.

Thanks.

Andre
andreissaosato is offline   Reply With Quote

Old   May 7, 2018, 01:55
Default
  #2
Member
 
Join Date: Aug 2015
Posts: 37
Rep Power: 10
knuckles is on a distinguished road
Try replacing

Code:
fvPatchScalarField& pS = S.boundaryField()[patchi];
with

Code:
fvPatchScalarField& pS = S.boundaryFieldRef()[patchi];
zhangyan likes this.
knuckles 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
[OpenFOAM.org] Error in sourcing OpenFOAM 5.x WhiteW OpenFOAM Installation 14 April 18, 2018 21:00
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Entropy calculation in OpenFoam immortality OpenFOAM 23 September 8, 2013 17:18


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