CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

compilation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2022, 08:29
Default compilation error
  #1
New Member
 
Bhimesh Jetty
Join Date: Feb 2022
Posts: 5
Rep Power: 4
BJ_23 is on a distinguished road
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?
Attached Files
File Type: h SpecieMixture.H (9.7 KB, 1 views)
File Type: c SpecieMixture.C (9.9 KB, 1 views)
BJ_23 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:24.