of2006的setExprBoundaryFields似乎很好用
-
大家有用过of2006的setExprBoundaryFields吗,可以通过expression控制边界条件,我找了一下tutorials里的文件,只有两个
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object setExprBoundaryFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // pattern { field T; expressions ( { patch bottom; target theta0; expression #{ (pos().x() < 1e-4 ? 60 : 120) #}; } ); keepPatches true; }
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object setExprBoundaryFieldsDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // pattern { field T; expressions ( { patch outlet2; target something; expression #{ (pos().x() < 1e-4 ? 60 : 120) #}; } ); }
没啥解释,看起来有点费劲。。。target是干啥的呀。。。