Own Combustion Codes
There are two ways in which a Cosilab user can bring in his or her own programming, namely by self-written user functions that are used by the Cosilab application or by writing own combustion codes that use the Cosilab API library for combustion-specific tasks. Here we describe the use of the API library in own combustion or reactive-flow codes -- for the use of user functions see Cosilab User Functions.
Sometimes for the numerical simulation of reactive flows own CFD codes are developped because existing, available codes are not up to the job, i.e., they fail to meet important geometric or physical requirements. Relatively often this is the case in research when new physical aspects are to be explored or in industry when special requirements need to be met. The magnitute of the task of developping such a reactive CFD code can greatly be reduced if the Cosilab API library is used to deal with all aspects of multicomponent mixtures ranging from the evaluation of specific heats and diffusion coefficient to the evaluation of the productions rates of the chemical species involved as a function of the local an instantaneous pressure, temperature and composition.
The Cosilab API library contains about 50 subprograms or functions that can be called by a user-written Fortran or C++ CFD code that
- provide and manage input of chemistry and transport data,
and evaluate quantities related to
- elements such as the elemental species composition,
- species such as specific heats, enthalpies, diffusion coefficents, thermal conductivities, and chemical production rates,
- reactions such as rate constants, equilibrium constants and reaction rates.