FemProcess
The GeMA Fem Process Plugin
Loading...
Searching...
No Matches
gmpFemAssemblerCombiner.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
25#ifndef _GEMA_PLUGIN_FEM_ASSEMBLER_COMBINER_H_
26#define _GEMA_PLUGIN_FEM_ASSEMBLER_COMBINER_H_
27
28
29#include "gmpFemProcessConfig.h"
30
31
33class GMP_FEM_PROCESS_API_EXPORT GmpFemAssemblerMatrixCombiner
34{
35public:
51 virtual double localMatricesToGlobalMatrixContribution(const double* localMatrixData) const = 0;
52
60 virtual int localMatricesToGlobalVectorContributionType() const { return -1; }
61
65 virtual int localMatricesToGlobalVectorContributionType2() const { return -1; }
66
85 virtual double localMatricesToGlobalVectorContribution(const double* localMatrixData, int dofIndex, double fixedDof, double oldFixedDof) const
86 {
87 Q_UNUSED(localMatrixData); Q_UNUSED(dofIndex); Q_UNUSED(fixedDof); Q_UNUSED(oldFixedDof);
88 return 0.0;
89 }
90
94 virtual double localMatricesToGlobalVectorContribution2(const double* localMatrixData, int dofIndex, double fixedDof, double oldFixedDof) const
95 {
96 Q_UNUSED(localMatrixData); Q_UNUSED(dofIndex); Q_UNUSED(fixedDof); Q_UNUSED(oldFixedDof);
97 return 0.0;
98 }
99};
100
102class GMP_FEM_PROCESS_API_EXPORT GmpFemAssemblerVectorCombiner
103{
104public:
120 virtual double localVectorsToGlobalVectorContribution(const double* localVectorData, int dof) const = 0;
121};
122
123
124#endif
Basic interface for defining the rules used to combine information from multiple matrices into a sing...
Definition gmpFemAssemblerCombiner.h:34
virtual int localMatricesToGlobalVectorContributionType() const
Virtual function returning the type of the global vector that will receive contributions returned by ...
Definition gmpFemAssemblerCombiner.h:60
virtual double localMatricesToGlobalMatrixContribution(const double *localMatrixData) const =0
Virtual method to provide the equivalent contribution resulting from combining several local matrix e...
virtual double localMatricesToGlobalVectorContribution(const double *localMatrixData, int dofIndex, double fixedDof, double oldFixedDof) const
Virtual method to provide the contribution of local matrix entries to the global vector specified by ...
Definition gmpFemAssemblerCombiner.h:85
virtual double localMatricesToGlobalVectorContribution2(const double *localMatrixData, int dofIndex, double fixedDof, double oldFixedDof) const
Simmilar to localMatricesToGlobalVectorContribution(), returning values for the vector specified by l...
Definition gmpFemAssemblerCombiner.h:94
virtual int localMatricesToGlobalVectorContributionType2() const
Simmilar to localMatricesToGlobalVectorContributionType(), provides the type for a second vector that...
Definition gmpFemAssemblerCombiner.h:65
Basic interface for defining the rules used to combine information from multiple vectors into a singl...
Definition gmpFemAssemblerCombiner.h:103
virtual double localVectorsToGlobalVectorContribution(const double *localVectorData, int dof) const =0
Virtual method to provide the equivalent contribution resulting from combining several local vector e...
Declaration of useful configuration definitions for the plugin library.