|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
bruce
Join Date: May 2009
Posts: 38
Rep Power: 5 ![]() |
hello all,
now i add Thermo to basicKinematicCollidingCloud and basicKinematicCollidingParcel in order to simulate heat transfer for KinematicCollidingCloud. first i copy and renamed basicKinematicCollidingCloud to basicThermoKinematicCollidingCloud and done neccesary changes. basicThermoKinematicCollidingCloud.H as HTML Code:
namespace Foam
{
typedef ThermoCloud
<
CollidingCloud
<
KinematicCloud
<
Cloud
<
basicThermoKinematicCollidingParcel
>
>
>
> basicThermoKinematicCollidingCloud;
}
HTML Code:
namespace Foam
{
typedef ThermoParcel<CollidingParcel<KinematicParcel<particle> > > basicThermoKinematicCollidingParcel;
template<>
inline bool contiguous<basicThermoKinematicCollidingParcel>()
{
return true;
}
}
HTML Code:
namespace Foam
{
defineTemplateTypeNameAndDebug(basicThermoKinematicCollidingParcel, 0);
defineTemplateTypeNameAndDebug(Cloud<basicThermoKinematicCollidingParcel>, 0);
}
HTML Code:
namespace Foam
{
makeParcelCloudFunctionObjects(basicThermoKinematicCollidingCloud);
// Kinematic sub-models
makeThermoParcelForces(basicThermoKinematicCollidingCloud);
makeParcelDispersionModels(basicThermoKinematicCollidingCloud);
makeParcelCollisionModels(basicThermoKinematicCollidingCloud);
makeParcelInjectionModels(basicThermoKinematicCollidingCloud);
makeParcelPatchInteractionModels(basicThermoKinematicCollidingCloud);
// Thermo sub-models
makeParcelHeatTransferModels(basicThermoKinematicCollidingCloud);
makeParcelSurfaceFilmModels(basicThermoKinematicCollidingCloud);
}
and now i link this new type library to icoUncoupledKinematicParcelFoam solver. and Constructing new type as HTML Code:
basicThermoKinematicCollidingCloud kinematicParcels
(
"kinematicCloud1",
rho,
U,
g,
slgThermo
);
HTML Code:
/lib//libbasicThermoKinematicCollidingParcel.so: undefined reference to `Foam::WallModel<Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cloud<Foam::ThermoParcel<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::dictionaryConstructorTablePtr_' /lib//libbasicThermoKinematicCollidingParcel.so: undefined reference to `Foam::PairModel<Foam::CollidingCloud<Foam::KinematicCloud<Foam::Cloud<Foam::ThermoParcel<Foam::CollidingParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::dictionaryConstructorTablePtr_' collect2: ld returned 1 exit status Could any body help to figure out this error? Thanks |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Oliver Pasqual
Join Date: May 2011
Posts: 12
Rep Power: 3 ![]() |
Hi bruce,
have you solved your problem? I have the same problem with you. although the same process have been taken as what you have done. the same problem occur to me ![]() it will be highly appreciated if you can give me some suggestion. Best Regards oliver |
|
|
|
|
|
|
|
|
#3 |
|
Member
bruce
Join Date: May 2009
Posts: 38
Rep Power: 5 ![]() |
hi,
the above posted problem was minimized version actually to post on this forum. but what i actually wanted work is coalCombustion library with parcel collision. so i solved this problem directly over there. take a look at the attached code. for details compare it with actual coalCombustion library. have fun |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Oliver Pasqual
Join Date: May 2011
Posts: 12
Rep Power: 3 ![]() |
Hi bruce,
Many thanks! ![]() The codes were compiled successfuly with the same modification as in your attachment. That's really helpful, thanks for sharing your modification detail. Have a nice day~ oliver |
|
|
|
|
|
|
|
|
#5 |
|
Member
Join Date: Apr 2010
Posts: 54
Rep Power: 5 ![]() |
Thank you very much. The trick is in :
Code:
collidingCoalCombustion/coalParcel/makeCoalParcelSubmodelsAdded.C Code:
typedef coalCloud::collidingCloudType collidingParcelType;
makeParcelCollisionModels(collidingParcelType);
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with Min/max rho | tH3f0rC3 | OpenFOAM | 7 | February 23, 2013 05:37 |
| Help with chtMultiRegionFoam | jbvw96 | OpenFOAM Running, Solving & CFD | 2 | December 26, 2010 17:16 |
| How creating new thermo physical model | weiste01 | OpenFOAM Programming & Development | 10 | August 21, 2009 02:26 |
| dieselFoam: how to implement thermo for liquid/gas continuous phase | natrask | OpenFOAM Running, Solving & CFD | 1 | July 16, 2009 05:37 |
| How to adding source in UDF? | Sam Liu | FLUENT | 1 | November 1, 2005 23:59 |