ChemicalFemPhysics
The GeMA Standard Chemical FEM Physics Plugin
Loading...
Searching...
No Matches
gmpFixedReaction.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_FIXED_REACTION_H_
25#define _GEMA_PLUGIN_FIXED_REACTION_H_
26
28
30class GMP_CHEMICAL_FEM_PHYSICS_API_EXPORT GmpFixedReaction : public GmpChemicalFemPhysics
31{
32public:
33 GmpFixedReaction(GmSimulationData* simulation, QString id, QString description, const GmLogCategory& logger);
34 virtual ~GmpFixedReaction();
35
36 // Comments on the base class
37 virtual const char* pluginType() const { return "fixed"; }
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
52 {
54
55 // --- NO ADDING BELOW THIS LINE
57 };
58
59
65
66private:
67};
68
69#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_PROPERTY_IDS
The number of property ids above.
Definition gmpChemicalFemPhysics.h:120
@ 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 a fixed reaction rate.
Definition gmpFixedReaction.h:31
FixedReactionElementPropertyIds
Additional IDs for physics element properties.
Definition gmpFixedReaction.h:62
FixedReactionPhysicsAttributeIds
Additional IDs for physics attributes.
Definition gmpFixedReaction.h:52
@ NUM_ATTRIBUTE_IDS
The number of attribute ids above.
Definition gmpFixedReaction.h:56
arma::mat GmMatrix
arma::vec GmVector
Declaration of the GmpChemicalFemPhysics classes.