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

Interpolating between Temperature an Heat Capacity

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2021, 11:35
Default Interpolating between Temperature an Heat Capacity
  #1
New Member
 
Claudia
Join Date: Mar 2021
Posts: 18
Rep Power: 2
Clau.77 is on a distinguished road
Hello!


I gained heat capacity values from some measurements that I did. Now I want to integrate these in Openfoam. The problem is, that there is no polynomial function that would be a good fit. So what I would like to do is just take 50 heat capacity and Temperature values and let Openfoam interpolate the heat capacity from this list.


So, i am pretty new to C++, so I just wanted to ask if somebody could give me some tips on how to get started or if there is already a function that I could adapt to my problem?
Clau.77 is offline   Reply With Quote

Old   April 14, 2021, 13:57
Default
  #2
New Member
 
Bruno Ramoa
Join Date: Jul 2019
Posts: 18
Rep Power: 3
brunomramoa is on a distinguished road
Quote:
Originally Posted by Clau.77 View Post
Hello!


I gained heat capacity values from some measurements that I did. Now I want to integrate these in Openfoam. The problem is, that there is no polynomial function that would be a good fit. So what I would like to do is just take 50 heat capacity and Temperature values and let Openfoam interpolate the heat capacity from this list.


So, i am pretty new to C++, so I just wanted to ask if somebody could give me some tips on how to get started or if there is already a function that I could adapt to my problem?



Do you want the hTabulated ? https://cfd.direct/openfoam/user-gui...hermophysical/



Best Regards
brunomramoa is offline   Reply With Quote

Reply

Tags
heat capacity, interpolation, openfoam, temperature

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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 17:00
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 17:30
transient source term strakakl OpenFOAM 38 November 19, 2013 01:18
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


All times are GMT -4. The time now is 13:14.