Memosa-FVM  0.2
BatteryModel< T > Class Template Reference

#include <BatteryModel.h>

Inheritance diagram for BatteryModel< T >:
Collaboration diagram for BatteryModel< T >:

Classes

class  Impl
 

Public Types

typedef std::map< int,
BatterySpeciesBC< T > * > 
BatterySpeciesBCMap
 
typedef std::map< int,
BatterySpeciesVC< T > * > 
BatterySpeciesVCMap
 
typedef std::map< int,
BatteryPotentialBC< T > * > 
BatteryPotentialBCMap
 
typedef std::map< int,
BatteryPotentialVC< T > * > 
BatteryPotentialVCMap
 
typedef std::map< int,
BatteryThermalBC< T > * > 
BatteryThermalBCMap
 
typedef std::map< int,
BatteryThermalVC< T > * > 
BatteryThermalVCMap
 

Public Member Functions

 BatteryModel (GeomFields &geomFields, const MeshList &realMeshes, const MeshList &meshes, const int nSpecies)
 
virtual ~BatteryModel ()
 
virtual void init ()
 
BatterySpeciesFieldsgetBatterySpeciesFields (const int speciesId)
 
BatteryModelFieldsgetBatteryModelFields ()
 
BatterySpeciesBCMapgetSpeciesBCMap (const int speciesId)
 
BatteryPotentialBCMapgetPotentialBCMap ()
 
BatteryThermalBCMapgetThermalBCMap ()
 
BatterySpeciesVCMapgetSpeciesVCMap (const int speciesId)
 
BatteryPotentialVCMapgetPotentialVCMap ()
 
BatteryThermalVCMapgetThermalVCMap ()
 
BatteryModelOptions< T > & getOptions ()
 
getMassFluxIntegral (const Mesh &mesh, const int faceGroupId, const int m)
 
getPotentialFluxIntegral (const Mesh &mesh, const int faceGroupId)
 
getHeatFluxIntegral (const Mesh &mesh, const int faceGroupId)
 
getAverageConcentration (const Mesh &mesh, const int m)
 
getFaceGroupArea (const Mesh &mesh, const int fgID)
 
getFaceGroupVoltage (const Mesh &mesh, const int fgID)
 
getMeshVolume (const Mesh &mesh)
 
getSpeciesResidual (const int speciesId)
 
getPotentialResidual ()
 
getThermalResidual ()
 
getPCResidual (const int v)
 
void updateTime ()
 
void recoverLastTimestep ()
 
void advanceSpecies (const int niter)
 
void advancePotential (const int niter)
 
void advanceThermal (const int niter)
 
void advanceCoupled (const int niter)
 
void copySeparateToCoupled ()
 
void copyCoupledToSeparate ()
 
- Public Member Functions inherited from Model
 Model (const MeshList &meshes)
 
virtual ~Model ()
 
 DEFINE_TYPENAME ("Model")
 
virtual map< string,
shared_ptr< ArrayBase > > & 
getPersistenceData ()
 
virtual void restart ()
 

Private Attributes

shared_ptr< Impl_impl
 

Additional Inherited Members

- Protected Attributes inherited from Model
const MeshList _meshes
 
StorageSiteList _varSites
 
StorageSiteList _fluxSites
 
map< string, shared_ptr
< ArrayBase > > 
_persistenceData
 

Detailed Description

template<class T>
class BatteryModel< T >

Definition at line 19 of file BatteryModel.h.

Member Typedef Documentation

template<class T>
typedef std::map<int,BatteryPotentialBC<T>*> BatteryModel< T >::BatteryPotentialBCMap

Definition at line 25 of file BatteryModel.h.

template<class T>
typedef std::map<int,BatteryPotentialVC<T>*> BatteryModel< T >::BatteryPotentialVCMap

Definition at line 26 of file BatteryModel.h.

template<class T>
typedef std::map<int,BatterySpeciesBC<T>*> BatteryModel< T >::BatterySpeciesBCMap

Definition at line 23 of file BatteryModel.h.

template<class T>
typedef std::map<int,BatterySpeciesVC<T>*> BatteryModel< T >::BatterySpeciesVCMap

Definition at line 24 of file BatteryModel.h.

template<class T>
typedef std::map<int,BatteryThermalBC<T>*> BatteryModel< T >::BatteryThermalBCMap

Definition at line 27 of file BatteryModel.h.

template<class T>
typedef std::map<int,BatteryThermalVC<T>*> BatteryModel< T >::BatteryThermalVCMap

Definition at line 28 of file BatteryModel.h.

Constructor & Destructor Documentation

template<class T >
BatteryModel< T >::BatteryModel ( GeomFields geomFields,
const MeshList realMeshes,
const MeshList meshes,
const int  nSpecies 
)

Definition at line 3478 of file BatteryModel_impl.h.

References logCtor.

3481  :
3482  Model(meshes),
3483  _impl(new Impl(geomFields,realMeshes,meshes,nSpecies))
3484 {
3485  logCtor();
3486 }
Model(const MeshList &meshes)
Definition: Model.cpp:8
#define logCtor()
Definition: RLogInterface.h:26
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::~BatteryModel ( )
virtual

Definition at line 3489 of file BatteryModel_impl.h.

References logDtor.

3490 {
3491  logDtor();
3492 }
#define logDtor()
Definition: RLogInterface.h:33

Member Function Documentation

template<class T >
void BatteryModel< T >::advanceCoupled ( const int  niter)

Definition at line 3559 of file BatteryModel_impl.h.

3560 {
3561  _impl->advanceCoupled(niter);
3562 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::advancePotential ( const int  niter)

Definition at line 3545 of file BatteryModel_impl.h.

3546 {
3547  _impl->advancePotential(niter);
3548 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::advanceSpecies ( const int  niter)

Definition at line 3538 of file BatteryModel_impl.h.

3539 {
3540  _impl->advanceSpecies(niter);
3541 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::advanceThermal ( const int  niter)

Definition at line 3552 of file BatteryModel_impl.h.

3553 {
3554  _impl->advanceThermal(niter);
3555 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::copyCoupledToSeparate ( )

Definition at line 3637 of file BatteryModel_impl.h.

3638 {
3639  _impl->copyCoupledToSeparate();
3640 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::copySeparateToCoupled ( )

Definition at line 3644 of file BatteryModel_impl.h.

3645 {
3646  _impl->copySeparateToCoupled();
3647 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getAverageConcentration ( const Mesh mesh,
const int  m 
)

Definition at line 3602 of file BatteryModel_impl.h.

3603 {
3604  return _impl->getAverageConcentration(mesh, m);
3605 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModelFields & BatteryModel< T >::getBatteryModelFields ( )

Definition at line 3514 of file BatteryModel_impl.h.

3514 {return _impl->getBatteryModelFields();}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatterySpeciesFields & BatteryModel< T >::getBatterySpeciesFields ( const int  speciesId)

Definition at line 3502 of file BatteryModel_impl.h.

3502 {return _impl->getBatterySpeciesFields(speciesId);}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getFaceGroupArea ( const Mesh mesh,
const int  fgID 
)

Definition at line 3651 of file BatteryModel_impl.h.

3652 {
3653  return _impl->getFaceGroupArea(mesh, fgID);
3654 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getFaceGroupVoltage ( const Mesh mesh,
const int  fgID 
)

Definition at line 3658 of file BatteryModel_impl.h.

3659 {
3660  return _impl->getFaceGroupVoltage(mesh, fgID);
3661 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getHeatFluxIntegral ( const Mesh mesh,
const int  faceGroupId 
)

Definition at line 3595 of file BatteryModel_impl.h.

3596 {
3597  return _impl->getHeatFluxIntegral(mesh, faceGroupId);
3598 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getMassFluxIntegral ( const Mesh mesh,
const int  faceGroupId,
const int  m 
)

Definition at line 3581 of file BatteryModel_impl.h.

3582 {
3583  return _impl->getMassFluxIntegral(mesh, faceGroupId, m);
3584 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getMeshVolume ( const Mesh mesh)

Definition at line 3665 of file BatteryModel_impl.h.

3666 {
3667  return _impl->getMeshVolume(mesh);
3668 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModelOptions< T > & BatteryModel< T >::getOptions ( )

Definition at line 3534 of file BatteryModel_impl.h.

3534 {return _impl->getOptions();}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getPCResidual ( const int  v)

Definition at line 3630 of file BatteryModel_impl.h.

3631 {
3632  return _impl->getPCResidual(v);
3633 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::BatteryPotentialBCMap & BatteryModel< T >::getPotentialBCMap ( )

Definition at line 3518 of file BatteryModel_impl.h.

3518 {return _impl->getPotentialBCMap();}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getPotentialFluxIntegral ( const Mesh mesh,
const int  faceGroupId 
)

Definition at line 3588 of file BatteryModel_impl.h.

3589 {
3590  return _impl->getPotentialFluxIntegral(mesh, faceGroupId);
3591 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getPotentialResidual ( )

Definition at line 3616 of file BatteryModel_impl.h.

3617 {
3618  return _impl->getPotentialResidual();
3619 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::BatteryPotentialVCMap & BatteryModel< T >::getPotentialVCMap ( )

Definition at line 3522 of file BatteryModel_impl.h.

3522 {return _impl->getPotentialVCMap();}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::BatterySpeciesBCMap & BatteryModel< T >::getSpeciesBCMap ( const int  speciesId)

Definition at line 3506 of file BatteryModel_impl.h.

3506 {return _impl->getSpeciesBCMap(speciesId);}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getSpeciesResidual ( const int  speciesId)

Definition at line 3609 of file BatteryModel_impl.h.

3610 {
3611  return _impl->getSpeciesResidual(speciesId);
3612 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::BatterySpeciesVCMap & BatteryModel< T >::getSpeciesVCMap ( const int  speciesId)

Definition at line 3510 of file BatteryModel_impl.h.

3510 {return _impl->getSpeciesVCMap(speciesId);}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::BatteryThermalBCMap & BatteryModel< T >::getThermalBCMap ( )

Definition at line 3526 of file BatteryModel_impl.h.

3526 {return _impl->getThermalBCMap();}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
T BatteryModel< T >::getThermalResidual ( )

Definition at line 3623 of file BatteryModel_impl.h.

3624 {
3625  return _impl->getThermalResidual();
3626 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
BatteryModel< T >::BatteryThermalVCMap & BatteryModel< T >::getThermalVCMap ( )

Definition at line 3530 of file BatteryModel_impl.h.

3530 {return _impl->getThermalVCMap();}
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::init ( )
virtual

Implements Model.

Definition at line 3496 of file BatteryModel_impl.h.

3497 {
3498  _impl->init();
3499 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::recoverLastTimestep ( )

Definition at line 3573 of file BatteryModel_impl.h.

3574 {
3575  _impl->recoverLastTimestep();
3576 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79
template<class T >
void BatteryModel< T >::updateTime ( )

Definition at line 3566 of file BatteryModel_impl.h.

3567 {
3568  _impl->updateTime();
3569 }
shared_ptr< Impl > _impl
Definition: BatteryModel.h:79

Member Data Documentation

template<class T>
shared_ptr<Impl> BatteryModel< T >::_impl
private

Definition at line 79 of file BatteryModel.h.


The documentation for this class was generated from the following files: