register a new object sprayRASModel
Hi,
I have build a new object, sprayRASModel (based on RASModel), and it works well in the modified dieselFoam. but if I turn on the modified dispersion model, it keeps telling me that OpenFOAM cannot find the object. The error message has attached in the bottom of this thread. I noticed that in the dispersion model, they find the object by ----------------- sm.mesh().lookupObject<compressible::sprayRASModel > ( "sprayRASProperties" ) ----------------- is it means that I need register the new object, sprayRASModel, to the mesh? if so, how to do it? any help is highly appreciated. Yejun -----error message of the modified dieselFoam ---------------------------------- Selecting dispersionModel stochasticDispersionRAS sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found sh: gaddr2line: command not found request for sprayRASModel sprayRASProperties from objectRegistry region0 failed available objects of type sprayRASModel are 0 ( ) #0 Foam::error::printStack(Foam::Ostream&) addr2line failed #1 Foam::error::abort() addr2line failed #2 Foam::compressible::sprayRASModel const& Foam::objectRegistry::lookupObject<Foam::compressi ble::sprayRASModel>(Foam::word const&) const addr2line failed #3 Foam::dispersionRASModel::dispersionRASModel(Foam: :dictionary const&, Foam::spray&) addr2line failed #4 Foam::dispersionModel::adddictionaryConstructorToT able<Foam::stochasticDispersionRAS>::New(Foam::dic tionary const&, Foam::spray&) addr2line failed #5 Foam::dispersionModel::New(Foam::dictionary const&, Foam::spray&) addr2line failed #6 Foam::spray::spray(Foam::volPointInterpolation const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::combustionMixture const&, Foam::PtrList<Foam::sutherlandTransport<Foam::spec ieThermo<Foam::janafThermo<Foam::perfectGas> > > > const&, Foam::dictionary const&, Foam::dictionary const&) addr2line failed #7 main addr2line failed #8 start addr2line failed From function objectRegistry::lookupObject<Type>(const word&) const in file /Network/Servers/controller.cluster/Homedir/yegong/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 142. FOAM aborting ---------------------------------- |
All times are GMT -4. The time now is 06:01. |