@李东岳 @
谢谢老师指导,我最后按照方法二,完全按照他的格式来修改的,修改到最后我发现一个问题,如下
public:
//typedef typename BasicTurbulenceModel::alphaField alphaField;
//typedef typename BasicTurbulenceModel::rhoField rhoField;
//typedef typename BasicTurbulenceModel::transportModel transportModel;
//- Runtime type information
TypeName("MHDkOmega");
// Constructors
//- Construct from components
MHDkOmega
(
//const alphaField& alpha, ????
//const rhoField& rho,
const geometricOneField& alpha,
const geometricOneField& rho,
const volVectorField& U,
const surfaceScalarField& alphaRhoPhi,
const surfaceScalarField& phi,
const transportModel& transport,
const word& propertiesName = turbulenceModel::propertiesName,
const word& type = typeName
);
其中 alpha是定义为geometricOneField也就是定义为1,可我的模型是三层液体,采用了multiphaseInterFoam求解器又基于VOF,我才意识到是不是湍流模型一般不能适用于多相的情况,这个alpha能不能修改来适用于这个求解器,担心自己做了无用功,希望老师能帮忙解答