|
[Sponsors] | |||||
Correct way of defning thermophysicalProperties for rhoCentralFoam |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Vachan Potluri
Join Date: Jul 2017
Posts: 29
Rep Power: 10 ![]() |
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;
}
}
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;
}
}
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 |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Fuad Hasibul Hasan
Join Date: Feb 2022
Location: Dhaka, Bangladesh
Posts: 7
Rep Power: 5 ![]() |
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] |
|
|
|
|
|
![]() |
| Tags |
| rhocentrafoam, thermophysicalproperties |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is my Dynamic mesh setup correct? | cfd seeker | FLUENT | 16 | October 30, 2020 07:16 |
| interFoam | Hydraulic Jump | Correct boundary condition p_rgh | pythag0ra5 | OpenFOAM Running, Solving & CFD | 17 | September 5, 2014 05:31 |
| Where are correct () and update() functions defined ? | sasanghomi | OpenFOAM | 5 | August 16, 2013 10:49 |
| Is there a way to find a correct "spacing"? | Jordi P. | Main CFD Forum | 2 | August 15, 2013 11:05 |
| Is this understanding of turbulence models correct? | 3kha | Main CFD Forum | 3 | January 31, 2011 22:31 |