►pTraits< vectorList > ►pTraits< weightedPosition > ►PtrDictionary ►PtrDynList ►PtrList ►PtrListDictionary ►PtrMap ►ptscotchDecomp ►pureMixture ►PurePhaseModel ►pureUpwindCFCCellToFaceStencilObject ►PureUpwindFitScheme ►pyramid ►pyrMatcher ►pyrolysisChemistryModel ...
IOobject::MUT_READ, IOobject::AUTO_WRITE ), mesh ); 看过⽼苏博客的朋友肯定都知道这是什么意思,这是读⼊标量压⼒场⽂件,把压⼒值存储到⽹格体中⼼。为加深对 GeometricField类的理解,贴张PG中的图⽚: 除了体的向量标量张量场外,还有⾯标量场surfacecalarField、⾯向量场surfaceVectorField...
gradT.component(vector::X) //用场初始话,vector::X 枚举变量,可直接写0 //gradT.component(0) ); volScalarField gradTy ( IOobject ( "gradTy", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), gradT.component(vector::Y) ); volScalarField gradTz ( IOobject (...
打开VectorSpaceI.H文件 路径:/OpenFOAM/OpenFOAM-X/src/OpenFOAM/primitives/VectorSpace/VectorSpaceI.H #include"error.H"#include"products.H"#include"VectorSpaceOps.H"#include"ops.H"#include<type_traits>//实现矢量与标量相乘template<classForm,classCmpt,direction Ncmpts>//类模板inlineFormoperator*//...
gradT.component(vector::X) //用场初始话,vector::X 枚举变量,可直接写0 //gradT.component(0) ); volScalarField gradTy ( IOobject ( "gradTy", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), gradT.component(vector::Y) ...
►pTraits< vectorList > ►pTraits< weightedPosition > ►PtrDictionary ►PtrDynList ►PtrList ►PtrListDictionary ►PtrMap ►ptscotchDecomp ►pureMixture ►PurePhaseModel ►pureUpwindCFCCellToFaceStencilObject ►PureUpwindFitScheme ►pyramid ►pyrMatcher ►pyrolysisChemistryModel ...
("nu"););// volVectorField需要从硬盘上读取volVectorFieldU(IOobject("U",Times[i].name(),// 相关的runTime数据,databaserunTime,IOobject::MUST_READ// 必须读),mesh);// 构建标量场volScalarFieldmagU(IOobject("magU",Times[i].name(),runTime,IOobject::NO_READ,IOobject::MUST_READ),::...
volVectorField& U ) const; //- Solve the turbulence equations and correct the turbulence viscosity virtual void correct(); //- Read RASProperties dictionary virtual bool read(); }; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
points(); // List 是对vector的继承 const List<point>& cents = mesh.faceCentres(); forAll(fcs,faceI) // 等价于 for (label faceI = 0; faceI < fcs.size(); faceI++) if (faceI%80==0) { if (faceI<mesh.Cf().size()) Info << "Internal face "; else { forAll(mesh.boundary...
argv即argument vector的缩写,保存程序运行时传递给主函数的具体参数的字符型指针,每个指针都指向一个具体的参数。 argv[0]指向程序运行时的全路径名称 argv[1]指向程序运行时命令行中执行程序名后第一个字符串 argv[2]指向程序运行时命令行中执行程序名后第二个字符串 ...