CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   coalChemistryFoam: Where can I find more information about the models? (https://www.cfd-online.com/Forums/openfoam-solving/68428-coalchemistryfoam-where-can-i-find-more-information-about-models.html)

mighelone September 19, 2009 06:05

coalChemistryFoam: Where can I find more information about the models?
 
Hello!

I have seen with great pleasure that in the new version of OpenFoam (1.6), a coal chemistry lagrangian solver has been implemented.

Where can I find more information about the models considered (i.e. de-volatilization, heterogeneous reactions) and about the lagrangian treatment of solid phase.

Thank you in advance for your attention.

Regards

Michele

Shuai_W October 27, 2015 08:16

dilute and dense flow
 
Dear mighelone,

I want to model coal combustion in a dense fluidized bed, can you give me some advice?
Best regards!

Wang

vanbonguyen December 3, 2015 05:24

Creating new solver to our directory for modification
 
Dear Foamers,

I tried to create a new solver for coalChemistryFoam solver in my own directory using openfoam 2.1.1 version. I have copied the library at src/lagrangian/coalCombustion/ to my own src/lagrangian/mycoalCombustion/ folder, i also copied the solver from application/solvers/lagrangian/coalChemistryFoam/ to my own folder /nguyen2.1.1/applications/solvers/lagragian/mycoalChemistryFoam. I have modified the files and options files in both src and solver as the following:
I) in files at solvers:
1) in files file
EXE = $(FOAM_USER_APPBIN)/mycoalChemistryFoam
2) in options file
-I$(WM_PROJECT_USER_DIR)/src/lagrangian/mycoalCombustion/lnInclude \
-L$(WM_PROJECT_USER_DIR)/lib/$(WM_OPTIONS) \
-lmycoalCombustion \

II) in files at src
1) in files file
LIB = $(FOAM_LIBBIN)/libmycoalCombustion

When i compile for the library in src. i think it successfully. However, when i comile for the solver, it got the following error. Could anyone help me fix it? Thank you very much!

nguyen@nguyen-Precision-T7610:~/OpenFOAM/nguyen-2.1.1/applications/solvers/lagrangian/mycoalChemistryFoam$ wmake
Making dependency list for source file coalChemistryFoam.C
SOURCE=coalChemistryFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/compressible/turbulenceModel -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude -I/home/nguyen/OpenFOAM/nguyen-2.1.1/src/lagrangian/mycoalCombustion/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/distributionModels/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/specie/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/basic/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/thermophysicalFunctions/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/reactionThermo/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/SLGThermo/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/chemistryModel/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/thermophysicalModels/radiationModels/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/regionModels/regionModel/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/regionModels/surfaceFilmModels/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/ODE/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/combustionModels/lnInclude -Ihome/nguyen/OpenFOAM/OpenFOAM-2.1.1/applications/solvers/combustion/reactingFoam -IlnInclude -I. -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/coalChemistryFoam.o
In file included from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.H:360:0,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelField.H:39,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/primitiveFields.H:37,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/pointField.H:36,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/edge.H:40,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/edgeList.H:32,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/primitiveMesh.H:57,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/polyMesh.H:44,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvMesh.H:50,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H:7,
from coalChemistryFoam.C:38:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C: In member function ‘void Foam::Field<Type>:perator=(const Foam::VectorSpace<Form, Cmpt, nCmpt>&)’:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C:680:42: warning: typedef ‘VSType’ locally defined but not used [-Wunused-local-typedefs]
typedef VectorSpace<Form,Cmpt,nCmpt> VSType;
^
In file included from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/mappedFixedPushedInternalValueFvPatchField.H:150:0 ,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/mappedFixedPushedInternalValueFvPatchFields.H:29,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/regionModels/regionModel/lnInclude/singleLayerRegionTemplates.C:29,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/regionModels/regionModel/lnInclude/singleLayerRegion.H:166,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/regionModels/surfaceFilmModels/lnInclude/surfaceFilmModel.H:40,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/SurfaceFilmModel.C:27,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/SurfaceFilmModel.H:275,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/KinematicCloud.C:34,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/KinematicCloud.H:577,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ThermoCloud.H:42,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/basicThermoCloud.H:35,
from coalChemistryFoam.C:40:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/mappedFixedPushedInternalValueFvPatchField.C: In member function ‘virtual void Foam::mappedFixedPushedInternalValueFvPatchField<T ype>::updateCoeffs()’:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/mappedFixedPushedInternalValueFvPatchField.C:98:57 : warning: typedef ‘FieldType’ locally defined but not used [-Wunused-local-typedefs]
typedef GeometricField<Type, fvPatchField, volMesh> FieldType;
^
In file included from coalChemistryFoam.C:61:0:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
scalar maxDeltaT =
^
In file included from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/PhaseChangeModel.H:235:0,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingCloud.C:29,
from /home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingCloud.H:323,
from /home/nguyen/OpenFOAM/nguyen-2.1.1/src/lagrangian/mycoalCombustion/lnInclude/coalCloud.H:38,
from coalChemistryFoam.C:41:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/PhaseChangeModel.C: In instantiation of ‘Foam::PhaseChangeModel<CloudType>::PhaseChangeMod el(const Foam::PhaseChangeModel<CloudType>&) [with CloudType = Foam::ReactingCloud<Foam::ThermoCloud<Foam::Kinema ticCloud<Foam::Cloud<Foam::ReactingMultiphaseParce l<Foam::ReactingParcel<Foam::ThermoParcel<Foam::Ki nematicParcel<Foam:article> > > > > > > >]’:
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/PhaseChangeModel.H:139:13: required from ‘Foam::autoPtr<Foam::PhaseChangeModel<CloudType> > Foam::PhaseChangeModel<CloudType>::clone() const [with CloudType = Foam::ReactingCloud<Foam::ThermoCloud<Foam::Kinema ticCloud<Foam::Cloud<Foam::ReactingMultiphaseParce l<Foam::ReactingParcel<Foam::ThermoParcel<Foam::Ki nematicParcel<Foam:Particle> > > > > > > >]’
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingCloud.C:171:42: required from ‘Foam::ReactingCloud<CloudType>::ReactingCloud(Foa m::ReactingCloud<CloudType>&, const Foam::word&) [with CloudType = Foam::ThermoCloud<Foam::KinematicCloud<Foam::Cloud <Foam::ReactingMultiphaseParcel<Foam::ReactingParc el<Foam::ThermoParcel<Foam::KinematicParcel<Foam:P article> > > > > > >]’
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingMultiphaseCloud.C:125:50: required from ‘Foam::ReactingMultiphaseCloud<CloudType>::Reactin gMultiphaseCloud(Foam::ReactingMultiphaseCloud<Clo udType>&, const Foam::word&) [with CloudType = Foam::ReactingCloud<Foam::ThermoCloud<Foam::Kinema ticCloud<Foam::Cloud<Foam::ReactingMultiphaseParce l<Foam::ReactingParcel<Foam::ThermoParcel<Foam::Ki nematicParcel<Foam:Particle> > > > > > > >]’
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingMultiphaseCloud.H:186:13: required from ‘Foam::autoPtr<Foam::Cloud<typename CloudType:ParticleType> > Foam::ReactingMultiphaseCloud<CloudType>::clone(co nst Foam::word&) [with CloudType = Foam::ReactingCloud<Foam::ThermoCloud<Foam::Kinema ticCloud<Foam::Cloud<Foam::ReactingMultiphaseParce l<Foam::ReactingParcel<Foam::ThermoParcel<Foam::Ki nematicParcel<Foam:Particle> > > > > > > >; typename CloudType:ParticleType = Foam::ReactingMultiphaseParcel<Foam::ReactingParce l<Foam::ThermoParcel<Foam::KinematicParcel<Foam:Pa rticle> > > >]’
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingMultiphaseCloud.C:221:40: required from ‘void Foam::ReactingMultiphaseCloud<CloudType>::storeSta te() [with CloudType = Foam::ReactingCloud<Foam::ThermoCloud<Foam::Kinema ticCloud<Foam::Cloud<Foam::ReactingMultiphaseParce l<Foam::ReactingParcel<Foam::ThermoParcel<Foam::Ki nematicParcel<Foam:Particle> > > > > > > >]’
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/KinematicCloud.C:95:9: required from ‘void Foam::KinematicCloud<CloudType>::solve(TrackData&) [with TrackData = Foam::ReactingParcel<Foam::ThermoParcel<Foam::Kine maticParcel<Foam:Particle> > >::TrackingData<Foam::ReactingMultiphaseCloud<Foam ::ReactingCloud<Foam::ThermoCloud<Foam::KinematicC loud<Foam::Cloud<Foam::ReactingMultiphaseParcel<Fo am::ReactingParcel<Foam::ThermoParcel<Foam::Kinema ticParcel<Foam:Particle> > > > > > > > > >; CloudType = Foam::Cloud<Foam::ReactingMultiphaseParcel<Foam::R eactingParcel<Foam::ThermoParcel<Foam::KinematicPa rcel<Foam:Particle> > > > >]’
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/ReactingMultiphaseCloud.C:250:9: required from ‘void Foam::ReactingMultiphaseCloud<CloudType>::evolve() [with CloudType = Foam::ReactingCloud<Foam::ThermoCloud<Foam::Kinema ticCloud<Foam::Cloud<Foam::ReactingMultiphaseParce l<Foam::ReactingParcel<Foam::ThermoParcel<Foam::Ki nematicParcel<Foam:Particle> > > > > > > >]’
coalChemistryFoam.C:84:28: required from here
/home/nguyen/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/intermediate/lnInclude/PhaseChangeModel.C:85:1: error: uninitialized reference member ‘Foam::PhaseChangeModel<Foam::ReactingCloud<Foam:: ThermoCloud<Foam::KinematicCloud<Foam::Cloud<Foam: :ReactingMultiphaseParcel<Foam::ReactingParcel<Foa m::ThermoParcel<Foam::KinematicParcel<Foam:Particl e> > > > > > > > >::dict_’ [-fpermissive]
Foam::PhaseChangeModel<CloudType>::PhaseChangeMode l
^
make: *** [Make/linux64GccDPOpt/coalChemistryFoam.o] Error 1
nguyen@nguyen-Precision-T7610:~/OpenFOAM/nguyen-2.1.1/applications/solvers/lagrangian/mycoalChemistryFoam$

Thank you!
NGUYEN VAN BO

vanbonguyen December 5, 2015 03:25

I fixed the problem! thanks
 
I fixed the problem! thanks

Shuai_W December 5, 2015 03:36

Congratulate to your success
 
Dear vanbonguyen,
I am very sorry that I reply you very late, at first, congratulations for your success. Frankly speaking, I do not have many materials for this model, I refer to the “ANSYS Fluent Theory Guide16.0”. I want to develop a model to simulate dense-phase fluidized bed with coal combustion or gasification. Do you simulate pulverized coal combustion? If so, I think it is easy to simulate that using this solver.


Best regards!
WANG


All times are GMT -4. The time now is 11:33.