ChemicalFemPhysics
The GeMA Standard Chemical FEM Physics Plugin
Loading...
Searching...
No Matches
gmpLinearReaction.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixera Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_PLUGIN_LINEAR_REACTION_H_
25#define _GEMA_PLUGIN_LINEAR_REACTION_H_
26
28
30class GMP_CHEMICAL_FEM_PHYSICS_API_EXPORT GmpLinearReaction : public GmpChemicalFemPhysics
31{
32public:
33 GmpLinearReaction(GmSimulationData* simulation, QString id, QString description, const GmLogCategory& logger);
34 virtual ~GmpLinearReaction();
35
36 // Comments on the base class
37 virtual const char* pluginType() const { return "linear"; }
38
39 virtual const QVariantMap* physicsMetaDataMap();
40
41 virtual bool checkLoadedData();
42
43protected:
44
45 virtual bool reactionRate(const GmElement* e, const GmVector* ip, int ipIndex, const GmVector& N,
46 const GmVector& C, double wtJ, GmVector& elemFe, GmMatrix& elemK,
47 bool needsFe, bool needsK);
48
49
55
56private:
57};
58
59#endif
Basic class for chemical fem physics. Treats the diffusion and convective terms of the transport equa...
Definition gmpChemicalFemPhysics.h:35
virtual const QVariantMap * physicsMetaDataMap()
Returns a pointer to the basic chemical physics attribute map, built when the function is called for ...
Definition gmpChemicalFemPhysics.cpp:95
virtual bool reactionRate(const GmElement *e, const GmVector *ip, int ipIndex, const GmVector &N, const GmVector &C, double wtJ, GmVector &elemFe, GmMatrix &elemK, bool needsFe, bool needsK)=0
Virtual function called by fillElementData() for each integration point so that derived classes can a...
@ NUM_ATTRIBUTE_IDS
The number of attribute ids above.
Definition gmpChemicalFemPhysics.h:84
virtual bool checkLoadedData()
Checks the existance of the velocity accessor, and also sizes for the dispersion and retardation coef...
Definition gmpChemicalFemPhysics.cpp:176
Extends the basic chemical physics transport equation by providing multi-species, coupled linear reac...
Definition gmpLinearReaction.h:31
LinearReactionPhysicsAttributeIds
Additional IDs for physics attributes.
Definition gmpLinearReaction.h:52
arma::mat GmMatrix
arma::vec GmVector
Declaration of the GmpChemicalFemPhysics classes.