0% found this document useful (0 votes)
174 views23 pages

Cantera

Prof. David Goodwin originally developed Cantera, a software tool for computational fluid dynamics. Cantera is used to model various processes including combustion, flames, detonations, fuel cells, batteries, plasmas, and thin film deposition. It allows users to work with liquid/vapor fluid models by creating fluid objects that can be independently set to different thermodynamic states by specifying two properties like temperature and pressure. Cantera uses SI units and works with quantities expressed in kmol.

Uploaded by

jmigscribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views23 pages

Cantera

Prof. David Goodwin originally developed Cantera, a software tool for computational fluid dynamics. Cantera is used to model various processes including combustion, flames, detonations, fuel cells, batteries, plasmas, and thin film deposition. It allows users to work with liquid/vapor fluid models by creating fluid objects that can be independently set to different thermodynamic states by specifying two properties like temperature and pressure. Cantera uses SI units and works with quantities expressed in kmol.

Uploaded by

jmigscribd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Prof.

DavidGoodwin,OriginalDeveloperofCantera
1957 2012

Computational Fluid Dynamics

Some ofthe areas where Canterais used currently:


Combustion
Flames Structure
Detonations
Electrochemical Energy Conversion andStorage
FuelCells
F l C ll
Batteries
Aqueous electrolytes
Thermodynamics ofbrines
Electrode reactions inaqueous environments
Plasmas
Atmosphericpressure thermal plasmas
L
LowPressure
P
DC RF d Mi
DC,RF,andMicrowave
Pl
Plasmas
LaserCreated
Film Deposition
Thin FilmDeposition
Chemical VaporDeposition

Instalacin

http://sourceforge.net/projects/cantera/files/cantera/2.1.2/

http://sourceforge.net/projects/cantera/files/cantera/2.1.2/

Working with Liquid/Vapor Fluid Models


WorkingwithLiquid/VaporFluidModels

http://www.et.byu.edu/~tom/classes/641/Cantera/liquidvapor.pdf

FluidObjects

FluidObjects

FluidObjects

Help!

dir(h2o)
['HP', 'HPX', 'HPY', 'ID', 'P', 'PX', 'P_sat', 'SP', 'SPX', 'SPY',
'SV', 'SVX', 'SVY', 'T', 'TD', 'TDX', 'TDY', 'TP', 'TPX', 'TPY', 'TX',
'T_sat', 'UV', 'UVX', 'UVY', 'X', 'Y', '__call__', '__class__',
' delattr ',
' ' doc ',
' ' format ',
' ' getattribute ',
'
'__getitem__', '__hash__', '__init__', '__new__', '__pyx_vtable__',
'__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__sizeof__', '__str__', '__subclasshook__', 'atomic_weight',
'atomic
atomic weights
weights', 'basis'
basis , 'chemical
chemical potentials
potentials', 'concentrations'
concentrations ,
'cp', 'cp_mass', 'cp_mole', 'critical_density', 'critical_pressure',
'critical_temperature', 'cv', 'cv_mass', 'cv_mole', 'density',
'density_mass', 'density_mole', 'electric_potential',
'electrochemical
electrochemical potentials
potentials', 'element
element index
index', 'element
element name
name',
'element_names', 'element_potentials', 'enthalpy_mass',
'enthalpy_mole', 'entropy_mass', 'entropy_mole', 'equilibrate', 'g',
'gibbs_mass', 'gibbs_mole', 'h', 'int_energy_mass', 'int_energy_mole',
'isothermal
isothermal compressibility
compressibility', 'max
max temp
temp', 'mean
mean molecular weight
weight',
'min_temp', 'molecular_weights', 'n_atoms', 'n_elements', 'n_species',
'name', 'partial_molar_cp', 'partial_molar_enthalpies',
'partial_molar_entropies', 'partial_molar_int_energies',
'partial
partial molar volumes
volumes', 'reference
reference pressure
pressure', 'report'
report , 's'
s ,
'selected_species', 'species_index', 'species_name', 'species_names',
'standard_cp_R', 'standard_enthalpies_RT', 'standard_entropies_R',
'standard_gibbs_RT', 'standard_int_energies_RT',
'thermal
thermal expansion coeff
coeff', 'u'
u , 'v'
v , 'volume
volume mass
mass', 'volume
volume mole
mole']
]

FluidObjects
Thesethreeobjectsareallindependent,andmayeachbesettoadifferent
state:

Objectsrepresentingtheotherfluidsmaybecreatedbycallingthe
appropriatefunction:

Setting the State


Thestateissetinthesamewaythethermodynamicstateofapure,single
componentfluidisset:byspecifyingthevaluesoftwoindependent
thermodynamicproperties.
h
d
i
i
Variouscombinationsofpropertiesmaybeusedtosetthestate.
Forconditionsforwhichonlyasinglephaseispresent,thetemperatureand
pressuremaybeindependentlyspecified.
Forsaturatedstatesinwhichliquidandvaporarebothpresent,thepressureisa
functionPsat((T)oftemperature,andisthereforenotindependent.
)
p
,
p
Temperatureandspecificvolume(ordensity)arealwaysindependent,andcanbe
therefore be used to specify the state uniquely whether one phase is present or
thereforebeusedtospecifythestateuniquelywhetheronephaseispresent,or
twoare.
Forsaturationstatesonly,thevaporfractionmayalsobeusedasanindependent
For
saturation states only the vapor fraction may also be used as an independent
propertytouseinspecifyingthe state.

Setting the State


Heres an example:

Setting the State


itispossibletosetthestateusingpropertiesotherthanjustthetemperature,density,
a d p essu e o e a p e, t e p essu e a d t e spec c e t opy ay be used to set
andpressure.Forexample,thepressureandthespecificentropymaybeusedtoset
thestate:

Compresinisentrpica!

Setting the State


Notallpropertypairsareimplemented:
HcanonlybesetincombinationwithP,
U
U canonlybesetincombinationwith
can only be set in combination with V
V,
andSmustbesetinconjunctionwithPorV.
Saturation states may be set by specifying T or P and the liquid or vapor fraction
SaturationstatesmaybesetbyspecifyingTorPandtheliquidorvaporfraction.
Specifyingavaporfrac onxispreciselyequivalenttospecifyingaliquidfrac on1x.
AttemptingtospecifyasaturatedstatewithT>Tc orP>Pc willresultinanerror.

Units
Cantera alwaysusesSIunits,withquantityexpressedinkmol.

Critical State Properties

Saturation Properties
The Saturation Pressure

T<TC
The Saturation Temperature

P PC
P<P
VaporFraction

You might also like