|
[Sponsors] |
--> FOAM FATAL ERROR: object of type N4Foam19basicChemistryModelE is not allocated |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 8, 2021, 11:06 |
--> FOAM FATAL ERROR: object of type N4Foam19basicChemistryModelE is not allocated
|
#1 |
Senior Member
|
Hello Foamers,
I'm using fireFOAM model to simulate the pyrolysis in OpenFOAM. In order to include the effect of gaseous species in pyrolysis model, I need to extract the data from another class and implement in the current model as a source term. The gaseous species are extracted from the class called "basicChemistryModel" (i) In reactinOneDim.H file, I included, autoPtr<basicChemistryModel> newChemistry_; //basicChemistryModel is the class from where data need to be extracted (ii) In reactinOneDim.C file, I added, dataExtracted_ = newChemistry_->Sh()(); // Sh()() is the data extracted from the class basicChemistryModel (iii) In energy equation, the source file is summed up as, fvScalarMatrix hEqn ( fvm::ddt(rho_, h_) - fvm::laplacian(alpha, h_) == dataExtracted_ //SOURCE TERM ); There found no issues with compilations. But while running the case, I got this following error as, //************************************************** ******// --> FOAM FATAL ERROR: object of type N4Foam19basicChemistryModelE is not allocated From function Foam::autoPtr<T>:perator->() in file /home/kummijai/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/autoPtrI.H at line 176. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 Foam::regionModels:yrolysisModels::reactingOneDi m::evolveRegion() at ??:? #3 Foam::regionModels::regionModel::evolve() at ??:? #4 ? at ??:? #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #6 ? at ??:? Aborted (core dumped) //************************************************** ******// I have checked about this error in forums, but I couldn't able to get any ideas. Kindly someone share their thoughts. Thank you |
|
April 13, 2021, 10:01 |
|
#2 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 |
Hi,
Have you been able to figure out the problem |
|
April 13, 2021, 12:41 |
|
#3 | |
Senior Member
|
In order to extract data from the particular class, I have opted autoPtr declaration format. In the beginning, the class "basicChemistryModel" was fitted in inappropriate way. The reason why it leads to error - object type error.
Later I have fitted suitable class "solidChemistryModel", which eliminates the error Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
reactingMultiphaseEulerFoam | tonnykz | OpenFOAM Running, Solving & CFD | 2 | June 15, 2020 02:09 |
time step continuity problem in VAWT simulation | lpz_michele | OpenFOAM Running, Solving & CFD | 5 | February 22, 2018 19:50 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
Error during initialization of "rhoSimpleFoam" | kornickel | OpenFOAM Running, Solving & CFD | 8 | September 17, 2013 05:37 |
singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 17:18 |