|
[Sponsors] |
Adding Thermo to basicKinematicCollidingCloud |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 29, 2011, 10:14 |
Adding Thermo to basicKinematicCollidingCloud
|
#1 |
Member
bruce
Join Date: May 2009
Location: Germany
Posts: 42
Rep Power: 17 |
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 |
|
April 28, 2012, 10:41 |
|
#2 |
New Member
Oliver Pasqual
Join Date: May 2011
Posts: 13
Rep Power: 15 |
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 |
|
April 28, 2012, 13:55 |
|
#3 |
Member
bruce
Join Date: May 2009
Location: Germany
Posts: 42
Rep Power: 17 |
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 |
|
April 29, 2012, 06:57 |
|
#4 |
New Member
Oliver Pasqual
Join Date: May 2011
Posts: 13
Rep Power: 15 |
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 |
|
May 8, 2013, 11:43 |
|
#5 |
Member
Join Date: Apr 2010
Posts: 61
Rep Power: 16 |
Thank you very much. The trick is in :
Code:
collidingCoalCombustion/coalParcel/makeCoalParcelSubmodelsAdded.C Code:
typedef coalCloud::collidingCloudType collidingParcelType; makeParcelCollisionModels(collidingParcelType); |
|
August 18, 2015, 11:47 |
How to use collidingCoalCloud
|
#6 |
New Member
César Augusto Corrêa Miguéis
Join Date: Nov 2013
Location: Rio de Janeiro, Brasil
Posts: 26
Rep Power: 13 |
Hi everyone! First of all, I'd like to thank Bruce for sharing your code with us. I'm having some problems when I try to use your code. Can someone please explain how can I use the collidingCoalCloud into the coalChemistryFoam? If it's possible a step-by-step guide, I'm kind a new to OpenFOAM and I don't have an advanced level of C++ knowledge.
Thanks to all of you! Regards from Brazil!
__________________
César Miguéis Mechanical Engineer MSc. Student at COPPE/UFRJ |
|
January 2, 2016, 22:54 |
drag model
|
#7 | |||
New Member
Shuai Wang
Join Date: Mar 2014
Posts: 26
Rep Power: 12 |
Dear all,
I encountered a problem when I use the solver coalCollidingChemistryFoam, in coalCloud1Properties, I choose particle force ErgunWenYuDrag, as below: Quote:
Quote:
Quote:
Thus I change the code in makeCoalParcelSubmodelsAdded.C, change #include "makeThermoParcelForces.H" to #include "makeParcelForces.H", and makeThermoParcelForces(coalCloud) to makeParcelForces(coalCloud). However, errors appear again, same with the former. I don’t know how to deal it, please someone help me. |
||||
June 14, 2016, 05:49 |
|
#8 | |
Member
Ping Chang
Join Date: Feb 2016
Location: Perth
Posts: 93
Rep Power: 10 |
Quote:
I am trying to add collision model to simpleReactingParcelFoam, I followed your steps, but I met the same error as yours. 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 Do you have any suggestion? Kind Regards, Ping |
||
December 20, 2016, 11:08 |
|
#9 |
New Member
Zirui He
Join Date: Dec 2016
Location: Stuttgart
Posts: 3
Rep Power: 10 |
Is it because you did not include some head file in your xxxxFoam.C?
|
|
July 3, 2019, 09:56 |
|
#10 |
New Member
chunlei li
Join Date: Jun 2019
Posts: 6
Rep Power: 7 |
Sorry for disturbing,
could you tell me what the version of OpenFOAM that you codes use? |
|
July 3, 2019, 12:28 |
|
#11 | |
New Member
chunlei li
Join Date: Jun 2019
Posts: 6
Rep Power: 7 |
Quote:
could you tell me what the version of OpenFOAM that you codes work? |
||
June 26, 2021, 19:29 |
|
#12 | |
New Member
SUDHA PAL
Join Date: Jun 2021
Posts: 3
Rep Power: 5 |
Quote:
Hey! i want to couple basic thermo parcel with kinematic parcel. Can you help regarding this? |
||
July 7, 2022, 12:23 |
|
#13 |
New Member
Emad S
Join Date: Dec 2021
Posts: 14
Rep Power: 4 |
Did you find your answer?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How creating new thermo physical model | weiste01 | OpenFOAM Programming & Development | 11 | May 8, 2020 16:08 |
problem with Min/max rho | tH3f0rC3 | OpenFOAM | 8 | July 31, 2019 10:48 |
Help with chtMultiRegionFoam | jbvw96 | OpenFOAM Running, Solving & CFD | 2 | December 26, 2010 18:16 |
dieselFoam: how to implement thermo for liquid/gas continuous phase | natrask | OpenFOAM Running, Solving & CFD | 1 | July 16, 2009 06:37 |
How to adding source in UDF? | Sam Liu | FLUENT | 1 | November 2, 2005 00:59 |