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

write enthalpy

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2015, 10:13
Default write enthalpy
  #1
New Member
 
Caro
Join Date: Jul 2014
Posts: 15
Rep Power: 11
will_ca is on a distinguished road
Hello,


I'm trying to write out the enthalpy at each timestep.
since I chose sensible enthalpy in the thermophysicalProperties file "he" that is used for the energy equation should be the enthalpy.

I tried adding


Code:
volScalarField he 
     ( 
         IOobject 
         ( 
             "he", 
             runTime.timeName(), 
             mesh, 
             IOobject::MUST_READ, 
             IOobject::AUTO_WRITE 
         ), 
         thermo.he() 
     );
to the createFields.H file and recompiling.


But the "he" that is written out is not changing from one timestep to the next although it should.


Does anyone know what I'm doing wrong and can point me in the right direction?



Thanks,


Caro
will_ca is offline   Reply With Quote

Old   November 25, 2019, 10:33
Default
  #2
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
Any answer on that?
C. Okubo is offline   Reply With Quote

Old   November 25, 2019, 10:51
Default
  #3
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
Just define sensibleEnthalpy in thremophysicalProperties and use:

thermo.he().write();
C. Okubo is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mesh file for flow over a circular cylinder Ardalan Main CFD Forum 7 December 15, 2020 14:06
Sensible Enthalpy vs. Total enthalpy Sethi OpenFOAM Programming & Development 3 March 23, 2017 22:48
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Community Contributions 210 January 30, 2017 19:57
implicit enthalpy method for phase change libya81 System Analysis 0 April 8, 2015 00:28
Enthalpy in a binary gas mixture ChrisA FLUENT 0 August 26, 2013 20:32


All times are GMT -4. The time now is 04:55.