chtreactingeulerfoam_modif2 < /p>
[*] Interfacialcompositionmodels < /p>
< /li>
> />\\faseSystems \PhaseModel\MovingphaseModel\MovingphaseModel.c
< /ul>
< /li>
< /ul>
Ошибка возникает в следующей части этого файла: < /p>
Ошибка возникает: < /p>
ошибка: < /p>
ошибка: < /p>
ошибка: < /p>
ошибка: < /p>
ошибка: < /p>
ошибка: < /p>
Ошибка
Код: Выделить всё
`
` turbulence_
(
phaseCompressibleTurbulenceModel::New
(
*this,
this->thermo().rho(),
U_,
alphaRhoPhi_,
phi_,
*this
)
),`
`
< /code>
phasecompressibleturbulencemodel.h включен в качестве заголовка поверх этого файла. Это имеет следующее содержание: < /p>
`#ifndef phaseCompressibleTurbulenceModel_H
#define phaseCompressibleTurbulenceModel_H
#include "phaseCompressibleTurbulenceModelFwd.H"
#include "PhaseCompressibleTurbulenceModel.H"
#include "ThermalDiffusivity.H"
#include "phaseModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
typedef ThermalDiffusivity
>
phaseCompressibleTurbulenceModel;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
ThermalDiffusivity.H has following content:
class ThermalDiffusivity // **this is line 49.**
:
public BasicTurbulenceModel
{
public:
typedef typename BasicTurbulenceModel::alphaField alphaField;
typedef volScalarField rhoField;
typedef typename BasicTurbulenceModel::transportModel transportModel;
// Constructors
//- Construct
ThermalDiffusivity
(
const word& type,
const alphaField& alpha,
const volScalarField& rho,
const volVectorField& U,
const surfaceScalarField& alphaRhoPhi,
const surfaceScalarField& phi,
const transportModel& trasport,
const word& propertiesName
);
// Selectors
//- Return a reference to the selected turbulence model
static autoPtr New
(
const alphaField& alpha,
const volScalarField& rho,
const volVectorField& U,
const surfaceScalarField& alphaRhoPhi,
const surfaceScalarField& phi,
const transportModel& trasportModel,
const word& propertiesName = turbulenceModel::propertiesName
);
//- Return a reference to the selected turbulence model
static autoPtr New
(
const volScalarField& rho,
const volVectorField& U,
const surfaceScalarField& phi,
const transportModel& trasportModel,
const word& propertiesName = turbulenceModel::propertiesName
);
//- Destructor
virtual ~ThermalDiffusivity()
{}
// some member functions are also there. I have removed them as they are the cause of error.
};
`
< /code>
phasecompressibleturbulencemodel.h Это включено в phasecompressibleturbulencemodel.h, на который ссылается rovestphasemodel.c. />-i $ (wm_project_dir)/src/turbulencemodels/phasecomprespentible/lninclude \
Когда я компиляции каталога фазсистем после компиляции каталога Interfacialcompositionmodels Ifrom phaseModel/phaseModel/phaseModels.C:31:
/opt/openfoam7/src/TurbulenceModels/compressible/lnInclude/ThermalDiffusivity.H: In instantiation of ‘class Foam::ThermalDiffusivity’:
lnInclude/MovingPhaseModel.C:172:41: required from here
/opt/openfoam7/src/TurbulenceModels/compressible/lnInclude/ThermalDiffusivity.H:49:7: error: invalid use of incomplete type ‘class Foam::PhaseCompressibleTurbulenceModel’
class ThermalDiffusivity
^~~~~~~~~~~~~~~~~~
Подробнее здесь: https://stackoverflow.com/questions/796 ... solver-kin