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

adding collision to ThermoParcel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2016, 05:43
Default adding collision to ThermoParcel
  #1
New Member
 
Amir
Join Date: Feb 2012
Posts: 12
Rep Power: 14
amirhoshangm is on a distinguished road
I would like to add collision between particles in ThermoParcel. So I have added another layer on KinematicParcel

Code:
    typedef ThermoParcel
    <
        ThermoParcel
         <
             CollidingParcel
              <
                 KinematicParcel
                  <
                      particle
                  >
              >
         > 
    > basicThermoParcel;
and another layer on KinematicCloud.

Code:
    typedef ThermoCloud
    <
        CollidingCloud
        <
        KinematicCloud
        <
            Cloud
            <
                basicThermoParcel
            >
        >
        >
    > basicThermoCloud;
I have also added following line in the makeBasicThermoParcelSubmodels.C

Code:
 makeParcelCollisionModels(basicThermoCloud);
When I compile it I will get following linking error

Code:
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I../reactingParcelFoam -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/sampling/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/TurbulenceModels/compressible/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/basic/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/spray/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/distributionModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/specie/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/transportModels/compressible/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/basic/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/reactionThermo/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/SLGThermo/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/chemistryModel/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/radiation/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/ODE/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/regionModels/regionModel/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/regionModels/surfaceFilmModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/fvOptions/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/combustionModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/coalCombustion/lnInclude -IlnInclude -I. -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o -L/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/lib \
	    -lturbulenceModels -lcompressibleTurbulenceModels -llagrangian -llagrangianIntermediate -llagrangianTurbulence -llagrangianSpray -lspecie -lcompressibleTransportModels -lfluidThermophysicalModels -lliquidProperties -lliquidMixtureProperties -lsolidProperties -lsolidMixtureProperties -lthermophysicalFunctions -lreactionThermophysicalModels -lSLGThermo -lchemistryModel -lradiationModels -lODE -lregionModels -lsurfaceFilmModels -lcombustionModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lcoalCombustion -lOpenFOAM -ldl  \
	    -ggdb3 -DFULLDEBUG -lm -o /home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/bin/sprayFoam
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o: In function `void Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::calcSurfaceValues<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > > >(Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > >&, int, double, double&, double&, double&, double&, double&) const':
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude/ThermoParcel.C:125: undefined reference to `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::debug'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o: In function `void Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::setCellValues<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > > >(Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > >&, double, int)':
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude/ThermoParcel.C:52: undefined reference to `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::debug'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o: In function `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::type() const':
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude/ThermoParcel.H:274: undefined reference to `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::typeName'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/lib/liblagrangianIntermediate.so: undefined reference to `Foam::WallModel<Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cloud<Foam::ThermoParcel<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::dictionaryConstructorTablePtr_'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/lib/liblagrangianIntermediate.so: undefined reference to `Foam::PairModel<Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cloud<Foam::ThermoParcel<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::dictionaryConstructorTablePtr_'
collect2: error: ld returned 1 exit status
make: *** [/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/bin/sprayFoam] Error 1
Does any body have any idea what is the problem?
amirhoshangm is offline   Reply With Quote

Old   June 29, 2016, 05:56
Default
  #2
Member
 
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12
a.weber is on a distinguished road
You could just take the SprayParcel, which has it all combined.
a.weber is offline   Reply With Quote

Old   June 29, 2016, 06:12
Default
  #3
New Member
 
Amir
Join Date: Feb 2012
Posts: 12
Rep Power: 14
amirhoshangm is on a distinguished road
Quote:
Originally Posted by a.weber View Post
You could just take the SprayParcel, which has it all combined.
thank you Andreas,
But spray parcel does not have collidingParcel
amirhoshangm is offline   Reply With Quote

Old   June 29, 2016, 07:31
Default
  #4
Member
 
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12
a.weber is on a distinguished road
sorry my fault.

I thought about the stochasticCollision stuff.
a.weber is offline   Reply With Quote

Old   January 14, 2018, 11:41
Default
  #5
New Member
 
Xiaoshuai Yuan
Join Date: Mar 2017
Posts: 6
Rep Power: 9
kk2017 is on a distinguished road
Quote:
Originally Posted by amirhoshangm View Post
I would like to add collision between particles in ThermoParcel. So I have added another layer on KinematicParcel

Code:
    typedef ThermoParcel
    <
        ThermoParcel
         <
             CollidingParcel
              <
                 KinematicParcel
                  <
                      particle
                  >
              >
         > 
    > basicThermoParcel;
and another layer on KinematicCloud.

Code:
    typedef ThermoCloud
    <
        CollidingCloud
        <
        KinematicCloud
        <
            Cloud
            <
                basicThermoParcel
            >
        >
        >
    > basicThermoCloud;
I have also added following line in the makeBasicThermoParcelSubmodels.C

Code:
 makeParcelCollisionModels(basicThermoCloud);
When I compile it I will get following linking error

Code:
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -I../reactingParcelFoam -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/sampling/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/TurbulenceModels/compressible/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/basic/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/spray/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/distributionModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/specie/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/transportModels/compressible/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/basic/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/reactionThermo/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/SLGThermo/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/chemistryModel/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/thermophysicalModels/radiation/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/ODE/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/regionModels/regionModel/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/regionModels/surfaceFilmModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/fvOptions/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/combustionModels/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/coalCombustion/lnInclude -IlnInclude -I. -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o -L/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/lib \
	    -lturbulenceModels -lcompressibleTurbulenceModels -llagrangian -llagrangianIntermediate -llagrangianTurbulence -llagrangianSpray -lspecie -lcompressibleTransportModels -lfluidThermophysicalModels -lliquidProperties -lliquidMixtureProperties -lsolidProperties -lsolidMixtureProperties -lthermophysicalFunctions -lreactionThermophysicalModels -lSLGThermo -lchemistryModel -lradiationModels -lODE -lregionModels -lsurfaceFilmModels -lcombustionModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -lcoalCombustion -lOpenFOAM -ldl  \
	    -ggdb3 -DFULLDEBUG -lm -o /home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/bin/sprayFoam
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o: In function `void Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::calcSurfaceValues<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > > >(Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > >&, int, double, double&, double&, double&, double&, double&) const':
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude/ThermoParcel.C:125: undefined reference to `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::debug'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o: In function `void Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::setCellValues<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > > >(Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > >::TrackingData<Foam::SprayCloud<Foam::ReactingMultiphaseCloud<Foam::ReactingCloud<Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingMultiphaseParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > > > > > >&, double, int)':
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude/ThermoParcel.C:52: undefined reference to `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::debug'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/applications/solvers/lagrangian/sprayFoam/sprayFoam.o: In function `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::type() const':
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/src/lagrangian/intermediate/lnInclude/ThermoParcel.H:274: undefined reference to `Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> >::typeName'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/lib/liblagrangianIntermediate.so: undefined reference to `Foam::WallModel<Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cloud<Foam::ThermoParcel<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::dictionaryConstructorTablePtr_'
/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/lib/liblagrangianIntermediate.so: undefined reference to `Foam::PairModel<Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cloud<Foam::ThermoParcel<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::dictionaryConstructorTablePtr_'
collect2: error: ld returned 1 exit status
make: *** [/home/amir/OpenFOAM/OpenFOAM-3.0.1/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Debug/bin/sprayFoam] Error 1
Does any body have any idea what is the problem?
Have you find a solution for this problem?

It seems that the error related to ThermoParcel could be eliminated by adding the following codes to the defineBasicThermoParcel.C file

Quote:
typedef Foam::ThermoParcel<CollidingParcel<KinematicParcel <particle> > > thermoParcel;
defineTemplateTypeNameAndDebug(thermoParcel, 0);
However, the WallModel and PairModel errors still exists. Does any one know the solution?
kk2017 is offline   Reply With Quote

Old   January 14, 2018, 16:02
Default
  #6
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
I suggest you to change the ordering, from "Thermo<Colliding<Kinematic<...>>>" to "Colliding<Thermo<Kinematic<...>>>"
guin is offline   Reply With Quote

Old   January 15, 2018, 04:34
Default
  #7
New Member
 
Xiaoshuai Yuan
Join Date: Mar 2017
Posts: 6
Rep Power: 9
kk2017 is on a distinguished road
Quote:
Originally Posted by guin View Post
I suggest you to change the ordering, from "Thermo<Colliding<Kinematic<...>>>" to "Colliding<Thermo<Kinematic<...>>>"
Thanks for the suggestion. I find a solution in this thread Colliding Coal Cloud in coalCollidingChemistryFoam, and the trick is using the code

Quote:
typedef basicThermoCloud::collidingCloudType collidingParcelType;
makeParcelCollisionModels(collidingParcelType);
instead of

Quote:
makeParcelCollisionModels(basicThermoCloud);

Last edited by kk2017; January 15, 2018 at 09:00.
kk2017 is offline   Reply With Quote

Old   February 5, 2021, 10:09
Default
  #8
Member
 
UOCFD
Join Date: Oct 2020
Posts: 40
Rep Power: 6
uosilos is on a distinguished road
Quote:
Originally Posted by kk2017 View Post
Thanks for the suggestion. I find a solution in this thread Colliding Coal Cloud in coalCollidingChemistryFoam, and the trick is using the code



instead of
Has that trick solved the problem??
uosilos 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
How I can introduce my power heat (W) in chtMultiRegionFoam? aminem OpenFOAM Pre-Processing 32 August 29, 2019 03:23
chtMultiRegionSimpleFoam 3D problem Lucie OpenFOAM Pre-Processing 2 June 21, 2016 06:23
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 09:43
droplet collision in KIVA, stretching collision and reflexive collision. Mori-Nik Main CFD Forum 0 March 15, 2011 12:07
Adding collision to icoLagrangian foam alan_fergus OpenFOAM Running, Solving & CFD 0 December 12, 2006 08:55


All times are GMT -4. The time now is 16:22.