判断壁面类型



  • #include "fixedValueFvPatchFields.H"
    #include "zeroGradientFvPatchFields.H"
    #include "wallPolyPatch.H"
    
    if isA<wallPolyPatch>
    (
        mom[0][0].boundaryField()[P]
    )
    else if 
    (
        isA<fixedValueFvPatchScalarField>
        (   
            mom[0][0].boundaryField()[P]
        )
    )
    

Log in to reply
 

CFD中文网 2016 - 2020 | 京ICP备15017992号-2