谢谢您的回复!:big_mouth:
结合tutorial中wedge15的算例,我的模拟模型为马赫数2的压缩拐角流动。入口设置了速度边界,出口为超声速出口。采用k-epsilon湍流模型,所需k,epsilon值根据经验公式给出。
压力场设定为:
internalField   uniform 100000;
boundaryField
{
    INLET
    
    {
        type            inletOutlet;
        inletValue      uniform 101325;
        value           uniform 101325;
    }
    
    OUTLET
    {
        type            waveTransmissive;
        field           p;
        phi             phi;
        rho             rho;
        psi             thermo:psi;
        gamma           1.3;
        fieldInf        100000;
        lInf            1;
        value           uniform 100000;
    }
    BOTTOM
    {
        type            zeroGradient;
    }
    TOP
    {
        type            zeroGradient;
    }
    frontAndBackPlanes
    {
        type            empty;
        
    }    
}
速度设定为:
dimensions      [0 1 -1 0 0 0 0];
internalField   uniform (600 0 0);
boundaryField
{
    INLET
    {
        type            supersonicFreestream;
        pInf            100000;
        TInf            300;
        UInf            (600 0 0);
        gamma           1.4;
        value           uniform (662 0 0);
    }
    OUTLET
    {
        type            inletOutlet;
        inletValue      uniform (662 0 0);
        value           uniform (662 0 0);
    }
    BOTTOM
    {
        type            zeroGradient;
    }
    TOP
    {
        type            symmetryPlane;
    }
    frontAndBackPlanes
    {
        type            empty;
        
    } 
    
}
温度场设置为:
internalField   uniform 300;
boundaryField
{
    INLET
    {
        type            inletOutlet;
        inletValue      uniform 300;
        value           uniform 300;
    }
    OUTLET
    {
        type            inletOutlet;
        inletValue      uniform 300;
        value           uniform 300;
    }
    BOTTOM
    {
        type            zeroGradient;
    }
    TOP
    {
        type            symmetryPlane;
    }
    frontAndBackPlanes
    {
        type            empty;
        
    } 
求解器的设置是根据相似算例给出,这个的设置有什么原则吗?我设置的如下,还请多多指点:
solvers
{
    "rho.*"
    {
        solver          diagonal;
    }
    "p.*"
    {
        solver          PBiCG;
        preconditioner  DILU;
        tolerance       1e-12;
        relTol          0;
    }
    "(U|e).*"
    {
        $p;
        tolerance       1e-9;
    }
    "(nuTilda).*"
    {
        $p;
        tolerance       1e-10;
    }
}
PIMPLE
{
    nOuterCorrectors 1;
    nCorrectors      2;
    nNonOrthogonalCorrectors 0;
}
Q1:不知道我这样设置边界条件是否合理哪?
Q2:求解器的选择应该如何设置呢,有什么选择原则,请问有什么资料推荐码?
Q3:在外部参数设置找不出差错,又有发散产生时,请问如何debug呢?