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

Empirical equations in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2024, 03:34
Default Empirical equations in OpenFOAM
  #1
New Member
 
Sagar
Join Date: Sep 2017
Location: Surat, India
Posts: 11
Rep Power: 9
Dave110 is on a distinguished road
Hello Foamers,

I want to add temperature dependent empirical formula in my solver calculation.

For example:
1) p = a + b*T+ c*T^2
2) p = A*exp(B/T)
where p and T both are volScalarField having dimensions of pressure and temperature respectively.
And a, b, c, A, B are constant values.

I know both are empirical formula and dimensionally imbalance on LHS and RHS.

To handle this type of equation, I have come across one method by giving dimensions to a,b,c,A,B using dimensionedScalar.

Is there any other-way to handle these type of equations in OpenFOAM?
Dave110 is offline   Reply With Quote

Old   May 14, 2024, 12:20
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
Quote:
To handle this type of equation, I have come across one method by giving dimensions to a,b,c,A,B using dimensionedScalar.

Is there any other-way to handle these type of equations in OpenFOAM?
I doubt it. When adding terms, they must clearly have the same dimensions, otherwise it is not physical. You could try making T dimensionless, but I would just perservere with setting the correct dimensions for the coefficients. The dimension checking is a good error trap for your coding.
Tobermory is offline   Reply With Quote

Reply

Tags
empirical equations, openfoam, temperature dependent


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
Energy equations in OpenFoam Bloerb OpenFOAM Running, Solving & CFD 9 July 1, 2024 14:22
OPENFOAM for Aeroacoustics simulations (using Linearized Euler Equations) ms518 OpenFOAM 6 February 21, 2021 17:49
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 20:20


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