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

Polynomial Density Expression With a Square Root

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2020, 11:15
Default Polynomial Density Expression With a Square Root
  #1
New Member
 
George
Join Date: Oct 2020
Posts: 24
Rep Power: 5
Dicanic is on a distinguished road
Hi all,



This is my first post and I am rather new to OpenFoam. I am trying to implement a polynomial expression for the density of a fluid. The expression looks like:



rho = A + BT + CT^2 + DT^-2


I looked at the hPolynomialThermo source code but am perhaps am missing something. A simple polynomial with positive exponents is easily implemented, but I can't seem to figure out how to do a negative exponent. Any suggestions?
Dicanic is offline   Reply With Quote

Old   November 13, 2020, 01:41
Default
  #2
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
Hi George,


You might need to make a new equation of state as yours is not polynomial. To make, you can refer to this link by Armin How to add a new Equation of State

Quote:
Originally Posted by Dicanic View Post
Hi all,



This is my first post and I am rather new to OpenFoam. I am trying to implement a polynomial expression for the density of a fluid. The expression looks like:



rho = A + BT + CT^2 + DT^-2


I looked at the hPolynomialThermo source code but am perhaps am missing something. A simple polynomial with positive exponents is easily implemented, but I can't seem to figure out how to do a negative exponent. Any suggestions?
__________________
Charles L.
Marpole 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
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 02:11
Distribution of root mean square of velocity fluctuation in channel dradenkovic OpenFOAM Running, Solving & CFD 2 July 19, 2016 05:17
MPI PROBLEMS gtg627e OpenFOAM Running, Solving & CFD 20 October 5, 2007 04:02
Reference Density (expression) Marco CFX 1 August 4, 2006 07:44
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23


All times are GMT -4. The time now is 05:08.