拉格朗日库源文件编译问题
-
最近想要在openfoam3.0.0里面/OpenFOAM/OpenFOAM-3.0.0/src/lagrangian/intermediate/lnInclude/ 添加自己的颗粒直径长大方程,借鉴了一篇博士论文“水质对梢涡空化初生的影响研究”修改,中心思想是:
- KinematicParcel.C添加了气泡长大方程,模仿速度更新编写气泡直径更新了
const Foam::vector Foam::KinematicParcel<ParcelType>::calcDiameter
- 然后再KinematicParcel.H,KinematicCloud.H,KinematicCloud.C定义了一些颗粒需要的参数
以上就是中心思想,但是在/OpenFOAM/OpenFOAM-3.0.0/src/lagrangian/intermediate/lnInclude/里面进行wmake编译时候遇到了报错,如下
In file included from lnInclude/KinematicCloud.H:639:0, from lnInclude/basicKinematicMPPICCloud.H:36, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicCloud.C:273:1: error: prototype for ‘Foam::KinematicCloud<CloudType>::KinematicCloud(const Foam::word&, const volScalarField&, const volVectorField&, const volScalarField&, const volScalarField&, const dimensionedVector&, bool)’ does not match any in class ‘Foam::KinematicCloud<CloudType>’ Foam::KinematicCloud<CloudType>::KinematicCloud ^ In file included from lnInclude/basicKinematicMPPICCloud.H:36:0, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicCloud.H:293:9: error: candidates are: Foam::KinematicCloud<CloudType>::KinematicCloud(const Foam::fvMesh&, const Foam::word&, const Foam::KinematicCloud<CloudType>&) KinematicCloud ^ lnInclude/KinematicCloud.H:286:9: error: Foam::KinematicCloud<CloudType>::KinematicCloud(Foam::KinematicCloud<CloudType>&, const Foam::word&) KinematicCloud ^ lnInclude/KinematicCloud.H:274:9: error: Foam::KinematicCloud<CloudType>::KinematicCloud(const Foam::word&, const volScalarField&, const volVectorField&, const volScalarField&, const dimensionedVector&, const volScalarField&, bool) KinematicCloud ^ lnInclude/KinematicCloud.H:133:9: error: Foam::KinematicCloud<CloudType>::KinematicCloud(const Foam::KinematicCloud<CloudType>&) KinematicCloud(const KinematicCloud&); ^ In file included from lnInclude/KinematicParcel.H:716:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcelI.H:100:8: error: prototype for ‘Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::polyMesh&, const vector&, Foam::label, Foam::label, Foam::label, Foam::label, Foam::scalar, Foam::scalar, Foam::scalar, const vector&, const Foam::KinematicParcel<ParcelType>::constantProperties&)’ does not match any in class ‘Foam::KinematicParcel<ParcelType>’ inline Foam::KinematicParcel<ParcelType>::KinematicParcel ^ In file included from lnInclude/basicKinematicMPPICParcel.H:40:0, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.H:397:9: error: candidates are: Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::KinematicParcel<ParcelType>&, const Foam::polyMesh&) KinematicParcel(const KinematicParcel& p, const polyMesh& mesh); ^ lnInclude/KinematicParcel.H:394:9: error: Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::KinematicParcel<ParcelType>&) KinematicParcel(const KinematicParcel& p); ^ lnInclude/KinematicParcel.H:386:9: error: Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::polyMesh&, Foam::Istream&, bool) KinematicParcel ^ lnInclude/KinematicParcel.H:368:16: error: Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::polyMesh&, const vector&, Foam::label, Foam::label, Foam::label, Foam::label, Foam::scalar, Foam::scalar, Foam::scalar, const vector&, Foam::scalar, const Foam::KinematicParcel<ParcelType>::constantProperties&) inline KinematicParcel ^ In file included from lnInclude/KinematicParcel.H:716:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcelI.H:73:8: error: Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::polyMesh&, const vector&, Foam::label, Foam::label, Foam::label) inline Foam::KinematicParcel<ParcelType>::KinematicParcel ^ In file included from lnInclude/KinematicParcel.H:722:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.C:220:3: error: no ‘const vector Foam::KinematicParcel<ParcelType>::calcDiameter(TrackData&, Foam::scalar, Foam::label, Foam::scalar, Foam::scalar, Foam::scalar) const’ member function declared in class ‘Foam::KinematicParcel<ParcelType>’ ) const ^ In file included from lnInclude/KinematicParcel.H:722:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.C:243:3: error: expected unqualified-id before ‘if’ if(Ro_>0) ^ In file included from lnInclude/basicKinematicMPPICParcel.H:40:0, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.C: In instantiation of ‘Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::KinematicParcel<ParcelType>&) [with ParcelType = Foam::particle]’: lnInclude/KinematicParcel.H:402:64: required from ‘Foam::autoPtr<Foam::particle> Foam::KinematicParcel<ParcelType>::clone() const [with ParcelType = Foam::particle]’ parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:59:55: required from here lnInclude/KinematicParcel.H:302:20: warning: ‘Foam::KinematicParcel<Foam::particle>::muc_’ will be initialized after [-Wreorder] scalar muc_; ^ lnInclude/KinematicParcel.H:283:20: warning: ‘Foam::scalar Foam::KinematicParcel<Foam::particle>::dRt_’ [-Wreorder] scalar dRt_; ^ In file included from lnInclude/KinematicParcel.H:722:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.C:253:1: warning: when initialized here [-Wreorder] Foam::KinematicParcel<ParcelType>::KinematicParcel ^ In file included from lnInclude/basicKinematicMPPICParcel.H:40:0, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.C: In instantiation of ‘Foam::KinematicParcel<ParcelType>::KinematicParcel(const Foam::KinematicParcel<ParcelType>&, const Foam::polyMesh&) [with ParcelType = Foam::particle]’: lnInclude/KinematicParcel.H:408:70: required from ‘Foam::autoPtr<Foam::particle> Foam::KinematicParcel<ParcelType>::clone(const Foam::polyMesh&) const [with ParcelType = Foam::particle]’ parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:59:55: required from here lnInclude/KinematicParcel.H:302:20: warning: ‘Foam::KinematicParcel<Foam::particle>::muc_’ will be initialized after [-Wreorder] scalar muc_; ^ lnInclude/KinematicParcel.H:283:20: warning: ‘Foam::scalar Foam::KinematicParcel<Foam::particle>::dRt_’ [-Wreorder] scalar dRt_; ^ In file included from lnInclude/KinematicParcel.H:722:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcel.C:282:1: warning: when initialized here [-Wreorder] Foam::KinematicParcel<ParcelType>::KinematicParcel ^ In file included from lnInclude/basicKinematicMPPICCloud.H:36:0, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicCloud.C: In instantiation of ‘Foam::KinematicCloud<CloudType>::KinematicCloud(const Foam::fvMesh&, const Foam::word&, const Foam::KinematicCloud<CloudType>&) [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >]’: lnInclude/KinematicCloud.H:315:13: required from ‘Foam::autoPtr<Foam::Cloud<typename CloudType::particleType> > Foam::KinematicCloud<CloudType>::cloneBare(const Foam::word&) const [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >; typename CloudType::particleType = Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> >]’ lnInclude/ParticleTracks.C:104:9: required from ‘void Foam::ParticleTracks<CloudType>::preEvolve() [with CloudType = Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >]’ parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:59:55: required from here lnInclude/KinematicCloud.H:189:38: warning: ‘Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >::g_’ will be initialized after [-Wreorder] const dimensionedVector& g_; ^ lnInclude/KinematicCloud.H:183:35: warning: ‘const volScalarField& Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >::P_’ [-Wreorder] const volScalarField& P_; ^ In file included from lnInclude/KinematicCloud.H:639:0, from lnInclude/basicKinematicMPPICCloud.H:36, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicCloud.C:478:1: warning: when initialized here [-Wreorder] Foam::KinematicCloud<CloudType>::KinematicCloud ^ In file included from lnInclude/KinematicParcel.H:716:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcelI.H: In instantiation of ‘Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties() [with ParcelType = Foam::particle]’: lnInclude/KinematicCloud.C:535:17: required from ‘Foam::KinematicCloud<CloudType>::KinematicCloud(const Foam::fvMesh&, const Foam::word&, const Foam::KinematicCloud<CloudType>&) [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >]’ lnInclude/KinematicCloud.H:315:13: required from ‘Foam::autoPtr<Foam::Cloud<typename CloudType::particleType> > Foam::KinematicCloud<CloudType>::cloneBare(const Foam::word&) const [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >; typename CloudType::particleType = Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> >]’ lnInclude/ParticleTracks.C:104:9: required from ‘void Foam::ParticleTracks<CloudType>::preEvolve() [with CloudType = Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >]’ parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:59:55: required from here lnInclude/KinematicParcelI.H:40:30: error: no matching function for call to ‘Foam::demandDrivenEntry<double>::demandDrivenEntry()’ minParcelMass_(dict_, 0.0) ^ lnInclude/KinematicParcelI.H:40:30: note: candidates are: In file included from /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.H:132:0, from lnInclude/KinematicParcel.H:51, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::demandDrivenEntry<Type>&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry(const demandDrivenEntry& dde) ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: candidate expects 1 argument, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&, const Type&, bool) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: candidate expects 4 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: candidate expects 2 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Type&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: candidate expects 2 arguments, 0 provided In file included from lnInclude/KinematicParcel.H:716:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcelI.H:40:30: error: no matching function for call to ‘Foam::demandDrivenEntry<double>::demandDrivenEntry()’ minParcelMass_(dict_, 0.0) ^ lnInclude/KinematicParcelI.H:40:30: note: candidates are: In file included from /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.H:132:0, from lnInclude/KinematicParcel.H:51, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::demandDrivenEntry<Type>&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry(const demandDrivenEntry& dde) ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: candidate expects 1 argument, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&, const Type&, bool) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: candidate expects 4 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: candidate expects 2 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Type&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: candidate expects 2 arguments, 0 provided In file included from lnInclude/basicKinematicMPPICCloud.H:36:0, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicCloud.C: In instantiation of ‘Foam::KinematicCloud<CloudType>::KinematicCloud(Foam::KinematicCloud<CloudType>&, const Foam::word&) [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >]’: lnInclude/KinematicCloud.H:306:13: required from ‘Foam::autoPtr<Foam::Cloud<typename CloudType::particleType> > Foam::KinematicCloud<CloudType>::clone(const Foam::word&) [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >; typename CloudType::particleType = Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> >]’ parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:59:55: required from here lnInclude/KinematicCloud.H:189:38: warning: ‘Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >::g_’ will be initialized after [-Wreorder] const dimensionedVector& g_; ^ lnInclude/KinematicCloud.H:183:35: warning: ‘const volScalarField& Foam::KinematicCloud<Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > > >::P_’ [-Wreorder] const volScalarField& P_; ^ In file included from lnInclude/KinematicCloud.H:639:0, from lnInclude/basicKinematicMPPICCloud.H:36, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicCloud.C:410:1: warning: when initialized here [-Wreorder] Foam::KinematicCloud<CloudType>::KinematicCloud ^ In file included from lnInclude/KinematicParcel.H:716:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcelI.H: In instantiation of ‘Foam::KinematicParcel<ParcelType>::constantProperties::constantProperties(const Foam::KinematicParcel<ParcelType>::constantProperties&) [with ParcelType = Foam::particle]’: lnInclude/KinematicCloud.C:473:5: required from ‘Foam::KinematicCloud<CloudType>::KinematicCloud(Foam::KinematicCloud<CloudType>&, const Foam::word&) [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >]’ lnInclude/KinematicCloud.H:306:13: required from ‘Foam::autoPtr<Foam::Cloud<typename CloudType::particleType> > Foam::KinematicCloud<CloudType>::clone(const Foam::word&) [with CloudType = Foam::Cloud<Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> > >; typename CloudType::particleType = Foam::MPPICParcel<Foam::KinematicParcel<Foam::particle> >]’ parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:59:55: required from here lnInclude/KinematicParcelI.H:54:37: error: no matching function for call to ‘Foam::demandDrivenEntry<double>::demandDrivenEntry()’ minParcelMass_(cp.minParcelMass_) ^ lnInclude/KinematicParcelI.H:54:37: note: candidates are: In file included from /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.H:132:0, from lnInclude/KinematicParcel.H:51, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::demandDrivenEntry<Type>&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry(const demandDrivenEntry& dde) ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: candidate expects 1 argument, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&, const Type&, bool) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: candidate expects 4 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: candidate expects 2 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Type&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: candidate expects 2 arguments, 0 provided In file included from lnInclude/KinematicParcel.H:716:0, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: lnInclude/KinematicParcelI.H:54:37: error: no matching function for call to ‘Foam::demandDrivenEntry<double>::demandDrivenEntry()’ minParcelMass_(cp.minParcelMass_) ^ lnInclude/KinematicParcelI.H:54:37: note: candidates are: In file included from /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.H:132:0, from lnInclude/KinematicParcel.H:51, from lnInclude/basicKinematicMPPICParcel.H:40, from lnInclude/basicKinematicMPPICCloud.H:38, from parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.C:26: /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::demandDrivenEntry<Type>&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry(const demandDrivenEntry& dde) ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:80:1: note: candidate expects 1 argument, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&, const Type&, bool) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:59:1: note: candidate expects 4 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Foam::word&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:45:1: note: candidate expects 2 arguments, 0 provided /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: Foam::demandDrivenEntry<Type>::demandDrivenEntry(const Foam::dictionary&, const Type&) [with Type = double] Foam::demandDrivenEntry<Type>::demandDrivenEntry ^ /home/zly/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude/demandDrivenEntry.C:31:1: note: candidate expects 2 arguments, 0 provided make: *** [/home/zly/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/src/lagrangian/intermediate/parcels/derived/basicKinematicMPPICParcel/makeBasicKinematicMPPICParcelSubmodels.o] Error 1
第一次编译这么麻烦的东西,很多东西没有见过,各位老师,大佬,能不能给我解释一下这些问题是为什么?以及具体修改方法,我看到了还有KinematicParcelI.H,这个文件需不需要进行调整?