|
[Sponsors] |
February 4, 2023, 22:15 |
Adding a Constructor to ThermoCloud
|
#1 |
New Member
Caleb Schrad
Join Date: Jun 2021
Location: West Lafayette, IN
Posts: 2
Rep Power: 0 |
Hello,
I have a novice question, I'm not quite sure how to articulate it. I need to modify the ThermoCloud class to add a constructor with a modified list of arguments. Presently the constructor takes these arguments Code:
ThermoCloud ( const word& cloudName, const volScalarField& rho, const volVectorField& U, const dimensionedVector& g, const SLGThermo& thermo, bool readFields = true ); Initially, I wanted to create a copy of ThermoCloud with the same inheritance and add the custom constructor, but there is a hitch. src/lagrangian/intermediate/submodels/Thermodynamic/HeatTransferModel/HeatTransferModel/HeatTransferModel.H Code:
#define makeHeatTransferModel(CloudType) \ \ typedef Foam::CloudType::thermoCloudType thermoCloudType; \ defineNamedTemplateTypeNameAndDebug \ ( \ Foam::HeatTransferModel<thermoCloudType>, \ 0 \ ); \ namespace Foam \ { \ defineTemplateRunTimeSelectionTable \ ( \ HeatTransferModel<thermoCloudType>, \ dictionary \ ); \ } I could use some advice on how to proceed.
Thanks for taking a look. |
|
Tags |
constructor, derived parts, inherited parts, macros, thermocloud |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
chtMultiRegionFoam solver stops without any error | amol_patel | OpenFOAM Running, Solving & CFD | 4 | July 5, 2024 02:41 |
2 ways to mesh a multiRegion case - one works, the other fails | boffin5 | OpenFOAM Running, Solving & CFD | 16 | March 27, 2023 13:58 |
FOAM FATAL ERROR: Cannot find file "points" in directory "shell/polyMesh" | amol_patel | OpenFOAM Pre-Processing | 22 | October 29, 2021 14:34 |
multiRegionHeater error | ordinary | OpenFOAM Running, Solving & CFD | 2 | June 9, 2020 18:43 |
conjugateHeatFoam + interFoam | farhagim | OpenFOAM Programming & Development | 15 | July 19, 2016 08:55 |