에너지, 화학종, 스칼라
에너지(Energy)
에너지 방정식 계산 여부는 system/fvSolution 파일의 SIMPLE 과 PIMPLE 딕셔너리의 solveEnergy 에 설정된다.
SiMPLE //PIMPLE
{
...
solveEnergy <yes or no>;
...
}
화학종 혼합(Species)
화학종 혼합은 constant/thermophysicalProperties 파일에 설정된다.
thermoType 딕셔너리
mixture 가 다음과 같이 multiComponentMixture 가 된다.
thermoType
{
type heRhoThermo;
mixture multiComponentMixture;
transport const;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}
species 딕셔너리
계산에 사용될 화학종들을 써 준다. 이와 함께 inertSpecie 를 지정해 주어야 한다. 이것은 수송방정식을 계산하지 않으며 질량분율은 1에서 나머지 화학종 값의 합을 뺀 것을 사용한다.
species
(
<species1>
<species2>
...
);
inertSpecie <specie1>
각 화학종의 딕셔너리
각 화확종의 물성값을 설정하는 딕셔너리가 있어야 한다. mixture 딕셔너리와 같은 형태인데 단지 transport 에 확산계수 Dm 이 있는 것만 다르다.
<specie1>
{
thermodynamics
{
...
}
transport
{
mu <value>;
Pr <value>;
Dm <value>;
}
specie
{
...
}
equationOfState
{
...
}
}
<specie2>
...
사용자 정의 스칼라(User-defined Scalars)
사용자 정의 스칼라는 system/controlDict 파일의 functions 딕셔너리에 설정된다.
확산 계수가 상수인 경우 입력한 값은 D 에 사용되고, 층류 및 난류 확산계수인 경우는 alphaD 와 alphaDt 에 사용된다.
functions
{
...
<name>
{
type scalarTransport;
libs ("/baram/solvers/openfoam/lib/libsolverFunctionObjects.so");
field <uds name>;
schemesField scalar;
nCorr 2;
writeControl runTime;
writeInterval <value>;
D <value>; // Constant
//alphaD <value>; // Laminar and Turbulent Viscosity
//alphaDt <value>; // Laminar and Turbulent Viscosity
}
}
schemesField 는 항상 scalar 이다. 이것은 수치해석 기법을 system/fvSolution, system/fvSchemes 파일에서 설정할 때 scalar라는 이름의 값을 사용하는 것이다.
writeInterval 은 계산조건에서 설정한 자동 저장 간격(Save Interval) 값을 사용한다.