|
[Sponsors] |
June 29, 2016, 05:43 |
adding collision to ThermoParcel
|
#1 |
New Member
Amir
Join Date: Feb 2012
Posts: 12
Rep Power: 14 |
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; Code:
typedef ThermoCloud < CollidingCloud < KinematicCloud < Cloud < basicThermoParcel > > > > basicThermoCloud; Code:
makeParcelCollisionModels(basicThermoCloud); 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 |
|
June 29, 2016, 05:56 |
|
#2 |
Member
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12 |
You could just take the SprayParcel, which has it all combined.
|
|
June 29, 2016, 06:12 |
|
#3 |
New Member
Amir
Join Date: Feb 2012
Posts: 12
Rep Power: 14 |
||
June 29, 2016, 07:31 |
|
#4 |
Member
Andreas Weber
Join Date: Jun 2014
Posts: 37
Rep Power: 12 |
sorry my fault.
I thought about the stochasticCollision stuff. |
|
January 14, 2018, 11:41 |
|
#5 | ||
New Member
Xiaoshuai Yuan
Join Date: Mar 2017
Posts: 6
Rep Power: 9 |
Quote:
It seems that the error related to ThermoParcel could be eliminated by adding the following codes to the defineBasicThermoParcel.C file Quote:
|
|||
January 14, 2018, 16:02 |
|
#6 |
Member
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16 |
I suggest you to change the ordering, from "Thermo<Colliding<Kinematic<...>>>" to "Colliding<Thermo<Kinematic<...>>>"
|
|
January 15, 2018, 04:34 |
|
#7 | |||
New Member
Xiaoshuai Yuan
Join Date: Mar 2017
Posts: 6
Rep Power: 9 |
Quote:
Quote:
Quote:
Last edited by kk2017; January 15, 2018 at 09:00. |
||||
February 5, 2021, 10:09 |
|
#8 | |
Member
UOCFD
Join Date: Oct 2020
Posts: 40
Rep Power: 6 |
Quote:
|
||
|
|
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 |