https://linen.dev logo
Hello, Distribution: v12 Fondation (on ubuntu) I'm...
# programming
n
Hello, Distribution: v12 Fondation (on ubuntu) I'm trying to modify the module compressibleVoF to add the Lee model in the fvModel. I didn't have trouble to compile it with the new model: In file fvModels/VoFLeeModel/VoFLee.H > #ifndef VoFLee_H > #define VoFLee_H > > #include "fvModel.H" > > // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // > > namespace Foam > { > > class compressibleTwoPhaseVoFMixture; > > namespace fv > { > namespace compressible > { > > class VoFLee > : > public fvModel > { > // Private Data > > //- Reference to the mixture properties > const compressibleTwoPhaseVoFMixture& mixture_; > > > public: > > //- Runtime type information > TypeName("compressible::VoFLee"); I directly compiled in the opt to avoid all the problem of using the user path. I verified that everything is compiled and the libcompressibleVoFLee.so is present but when I try to use this fvModel in a case: > FoamFile > { > format ascii; > class dictionary; > location "constant"; > object fvModels; > } > // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // > > VoFLee > { > type compressible::VoFLee; > } The foamRun error is the following: > Selecting finite volume model type compressible::VoFLee > > > --> FOAM FATAL IO ERROR: > Unknown fvModel compressible::VoFLee Followed by a list of valid models which doesn't to include model already present in the distribution. I tried to trace this error and found that there is a dict built into fvModel.C but I don't know where I should register my model.