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

Correct way of defning thermophysicalProperties for rhoCentralFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2017, 09:59
Default Correct way of defning thermophysicalProperties for rhoCentralFoam
  #1
New Member
 
Vachan Potluri
Join Date: Jul 2017
Posts: 29
Rep Power: 8
vachan is on a distinguished road
Hi,

I am wondering what is the correct way of defining thermophysicalProperties for rhoCentralFoam. I am using openfoam v-4.1. In the shockTube tutorial case of rhoCentralFoam, thermophysicalProperties dictionary is as shown below.
Code:
// In shockTube case
thermoType
{
    type            hePsiThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleInternalEnergy;
}

mixture
{
    specie
    {
        nMoles          1;
        molWeight       28.96;
    }
    thermodynamics
    {
        Cp              1004.5;
        Hf              2.544e+06;
    }
    transport
    {
        mu              0;
        Pr              1;
    }
}
Whereas in forwardStep case of rhoCentralFoam, it is as follows.
Code:
// In forwardStep case
thermoType
{
    type            hePsiThermo;
    mixture         pureMixture;
    transport       const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleInternalEnergy;
}

// Note: these are the properties for a "normalised" inviscid gas
//       for which the speed of sound is 1 m/s at a temperature of 1K
//       and gamma = 7/5
mixture
{
    specie
    {
        nMoles          1;
        molWeight       11640.3;
    }
    thermodynamics
    {
        Cp              2.5;
        Hf              0;
    }
    transport
    {
        mu              0;
        Pr              1;
    }
}
The values of properties are much different in comparison. In forwardStep case, its clearly mentioned that some kind of normalized properties must be used. But the way these properties are defined in shockTube case is different. I couldn't find any difference in any other files(except blockMeshDict ofcourse) relevant to solver.

How will the solver detect the way these properties are defined? Or do the units not matter at all? Any help would be greatly appreciated.

Thanks,
Vachan
vachan is offline   Reply With Quote

Old   May 13, 2022, 13:55
Default My case is diverging or giving error
  #2
New Member
 
Fuad Hasibul Hasan
Join Date: Feb 2022
Location: Dhaka, Bangladesh
Posts: 7
Rep Power: 4
fuad is on a distinguished road
Have you found any solution to this situation? I tried to build a case using OF-2106 rhoCentralFoam/forwardStep example case. I replaced the values in U, p, T in 0/ directory with values in S.I units. But the problem either diverges or shows error as following:

Code:
1] --> FOAM FATAL ERROR: (openfoam-2012 patch=210618)
[1] Maximum number of iterations exceeded: 100 when starting from T0:3.00001e-08 old T:14188.4 new T:14188.4 f:24591 p:-3.57235e-06 tol:3.00001e-12
[1] 
[1]     From Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hConstThermo<Foam::perfectGas<Foam::specie> >; Type = Foam::sensibleInternalEnergy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy>]
[1]     in file /usr/src/packages/BUILD/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 76.
[1]
fuad is offline   Reply With Quote

Reply

Tags
rhocentrafoam, thermophysicalproperties


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
Is my Dynamic mesh setup correct? cfd seeker FLUENT 16 October 30, 2020 06:16
interFoam | Hydraulic Jump | Correct boundary condition p_rgh pythag0ra5 OpenFOAM Running, Solving & CFD 17 September 5, 2014 04:31
Where are correct () and update() functions defined ? sasanghomi OpenFOAM 5 August 16, 2013 09:49
Is there a way to find a correct "spacing"? Jordi P. Main CFD Forum 2 August 15, 2013 10:05
Is this understanding of turbulence models correct? 3kha Main CFD Forum 3 January 31, 2011 21:31


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