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

How to set my thermophysicalProperties to simulate multi gas problem?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2020, 02:22
Default How to set my thermophysicalProperties to simulate multi gas problem?
  #1
New Member
 
Hyeonggyu Kim
Join Date: Aug 2020
Posts: 3
Rep Power: 5
adorabat is on a distinguished road
Hello foamers!
I'm new in OpenFOAM and i want to simulate hypersonic flow around blunt body with multi(N2, O2, Ar) gases.

To simulate this problem, I found that i should set my thermophysicalProperties file with multiComponentMixture. Following is my thermophysicalProperties file.

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
type hePsiThermo;
mixture multiComponentMixture;
transport sutherland;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}



species

(
Ar
O2
N2
);


// normalised gas

Ar
{
specie
{
nMoles 1;
molWeight 39.948;
}
thermodynamics
{
Tlow 1;
Thigh 5000;
Cp 2.5;
Hf 0;
}
transport
{
As 1.67212e-06;
Ts 170.672;

Pr 1;
}
}

O2
{
specie
{
nMoles 1;
molWeight 32;
}
thermodynamics
{
Tlow 1;
Thigh 5000;
Cp 2.5;
Hf 0;
}
transport
{
As 1.67212e-06;
Ts 170.672;

Pr 1;
}
}

N2
{
specie
{
nMoles 1;
molWeight 28;
}
thermodynamics
{
Tlow 1;
Thigh 5000;
Cp 2.5;
Hf 0;
}
transport
{
As 1.67212e-06;
Ts 170.672;

Pr 1;
}
}


Then I enter the rhoCentralFoam in my terminal but the message was like this.
And nothing happened.

Selecting thermodynamics package
{
type hePsiThermo;
mixture multiComponentMixture;
transport sutherland;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}


I cannot realize my mistake.
Thanks for the advice in advance, It will be very thankful to let me know how could I set my thermophysicalProperties properly.
adorabat is offline   Reply With Quote

Old   October 9, 2020, 11:40
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
rhoCentralFoam, as released, is not built to run with that thermo setup -- there likely was a long message about the types of thermo that rhoCentralFoam can use. There are various threads about updating rhoCentralFoam to include this capability (e.g., Transport of chemical species in rhoCentralFoam), but if you're interested in hypersonic flow you might want to check out hyFoam (https://github.com/vincentcasseau/hyStrath).

Caelan
erinsam likes this.
clapointe is offline   Reply With Quote

Old   October 10, 2020, 02:06
Default
  #3
New Member
 
Hyeonggyu Kim
Join Date: Aug 2020
Posts: 3
Rep Power: 5
adorabat is on a distinguished road
Thank you Caelan.

I'll check about rhoCentralFoam and hyFoam too.

Thanks a lot!!

Kim
adorabat 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
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 05:37
Three Gas Flow Mixing Problem Yu Yang FLUENT 3 March 26, 2018 09:57
Problem in simulation of toxic gas release billy7590 FLUENT 4 September 14, 2017 14:12
Ideal gas problem Atze CFX 12 March 20, 2014 15:56
Coupled VOF and Multiphase Segregated Flow for a gas bubble problem?? EnronZhang STAR-CCM+ 1 December 19, 2013 08:41


All times are GMT -4. The time now is 03:36.