Phigo90 |
July 31, 2020 07:25 |
Create new object
5 Attachment(s)
Hi Foamer,
I am trying to create a new object of the type "interfaceHeatResistance". This class inherits from the "temperaturePhaseChangeTwoPhaseMixture" class.
However, in the createFields file the object mixture is created with:
Code:
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n" << endl;
autoPtr<temperaturePhaseChangeTwoPhaseMixture> mixture =
temperaturePhaseChangeTwoPhaseMixture::New(thermo(), mesh);
based on
Code:
// Selectors
//- Return a reference to the selected phaseChange model
static autoPtr<temperaturePhaseChangeTwoPhaseMixture> New
(
const thermoIncompressibleTwoPhaseMixture& mixture,
const fvMesh& mesh
);
// Constructors
//- Construct from components
temperaturePhaseChangeTwoPhaseMixture
(
const thermoIncompressibleTwoPhaseMixture& mixture,
const fvMesh& mesh
);
//- Destructor
virtual ~temperaturePhaseChangeTwoPhaseMixture() = default;
Does anyone of you know how I can create an "interfaceheatresistance" object?
Code:
// Constructors
//- Construct from components
interfaceHeatResistance
(
const thermoIncompressibleTwoPhaseMixture& mixture,
const fvMesh& mesh
);
I am not an expert in C++ and still learning.
|