@李东岳 李老师好,空气密度设为1000的情况流场数据在0.0489范围之内,虽然顶部看起来不好看。
相分数初始场:
#include "../include/initialConditions"
defaultFieldValues
(
volScalarFieldValue alpha.air 0
volScalarFieldValue alpha.saltwater 1
volScalarFieldValue alpha.water 0
);
regions
(
boxToCell
{
box ($xyz_min 0.1 $xyz_min) ($xyz_max $xyz_max $xyz_max);
fieldValues
(
volScalarFieldValue alpha.air 1
volScalarFieldValue alpha.saltwater 0
);
}
boxToCell
{
box ($xyz_min 0 $xyz_min) ($xyz_max 0.1 $xyz_max);
fieldValues
(
volScalarFieldValue alpha.saltwater 0
volScalarFieldValue alpha.water 1
);
}
);
速度场
#include "../include/initialConditions"
dimensions [0 1 -1 0 0 0 0];
internalField uniform ($velocity 0 0);
boundaryField
{
inlet
{
type fixedValue;
value uniform ($velocity 0 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value $internalField;
}
atmosphere
{
type pressureInletOutletVelocity;
value uniform ($velocity 0 0);
}
bottom
{
type slip;
}
front
{
type symmetryPlane;
}
back
{
type symmetryPlane;
}
}
压力场
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type fixedFluxPressure;
value uniform 0;
}
outlet
{
type zeroGradient;
}
atmosphere
{
type prghPressure;
rho rho;
p uniform 0;
value uniform 0; // optional initial value
}
bottom
{
type fixedFluxPressure;
value uniform 0;
}
front
{
type symmetryPlane;
}
back
{
type symmetryPlane;
}
}
这个问题卡住好久了,但没有思路调整哪些参数,希望李老师能指点一下