|
[Sponsors] |
March 31, 2022, 08:29 |
compilation error
|
#1 |
New Member
Bhimesh Jetty
Join Date: Feb 2022
Posts: 5
Rep Power: 4 |
Hello everyone,
I'm trying to create a new solver in user dir by adapting the standard compressibleInterFoam solver in OpenFOAM 8. When I execute wmake to create shared object libreactionThermophysicalModels.so in my user dir, I got following error: In file included from lnInclude/SpecieMixture.H:321, from lnInclude/makeReactionThermo.H:30, from psiReactionThermo/psiReactionThermos.C:34: lnInclude/SpecieMixture.C: In instantiation of ‘Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::SpecieMixture<MixtureType>::mu(Foam::label, const volScalarField&, const volScalarField&, const volScalarField&, const volScalarField&) const [with MixtureType = Foam::singleComponentMixture<Foam::sutherlandTrans port<Foam::species::thermo<Foam::janafThermo<Foam: :perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > >; Foam::label = int; Foam::volScalarField = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]’: lnInclude/SpecieMixture.C:355:33: required from here lnInclude/SpecieMixture.C:374:5: error: no matching function for call to ‘Foam::SpecieMixture<Foam::singleComponentMixture< Foam::sutherlandTransport<Foam::species::thermo<Fo am::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::volScalarFieldProperty(const char [3], Foam::dimensionSet, Foam::scalar (Foam::sutherlandTransport<Foam::species::thermo<F oam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> >::*)(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar) const, const label&, const volScalarField&, const volScalarField&, const volScalarField&, const volScalarField&) const’ 374 | ); | ^ lnInclude/SpecieMixture.C:33:1: note: candidate: ‘Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::SpecieMixture<MixtureType>::volScalarFieldPr operty(const Foam::word&, const Foam::dimensionSet&, Foam::scalar (thermoType::*)(Foam::scalar, Foam::scalar) const, Foam::label, const volScalarField&, const volScalarField&) const [with MixtureType = Foam::singleComponentMixture<Foam::sutherlandTrans port<Foam::species::thermo<Foam::janafThermo<Foam: :perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > >; typename MixtureType::thermoType = Foam::sutherlandTransport<Foam::species::thermo<Fo am::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> >; Foam::scalar = double; Foam::label = int; Foam::volScalarField = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]’ 33 | Foam::SpecieMixture<MixtureType>::volScalarFieldPr operty | ^~~~ lnInclude/SpecieMixture.C:33:1: note: candidate expects 6 arguments, 8 provided I herewith attach the corresponding header and source files. Any hints to tackle the error? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 09:00 |
Pressure outlet boundary condition | rolando | OpenFOAM Running, Solving & CFD | 62 | September 18, 2017 06:45 |
DPM udf error | haghshenasfard | FLUENT | 0 | April 13, 2016 06:35 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 11:39 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 17:38 |