OOFEM 3.0
Loading...
Searching...
No Matches
sprnodalrecoverymodel.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef sprnodalrecoverymodel_h
36#define sprnodalrecoverymodel_h
37
38#include "nodalrecoverymodel.h"
39#include "interface.h"
40
41#define _IFT_SPRNodalRecoveryModel_Name "spr"
42
43namespace oofem {
44class GaussPoint;
45class SPRNodalRecoveryModelInterface;
46class ProcessCommunicator;
47
55
64{
65protected:
78
79public:
83 virtual ~SPRNodalRecoveryModel();
84
85 int recoverValues(Set elementSet, InternalStateType type, TimeStep *tStep) override;
86
87 const char *giveClassName() const override { return "SPRNodalRecoveryModel"; }
88
89private:
97 void initRegionMap(IntArray &regionMap, IntArray &regionTypes, InternalStateType type);
98
99 void determinePatchAssemblyPoints(IntArray &pap, SPRPatchType regType, Set &elemset);
100 void initPatch(IntArray &patchElems, IntArray &dofManToDetermine, IntArray &pap, int papNumber, Set &elementList);
101 void computePatch(FloatMatrix &a, IntArray &patchElems, int &regionValSize,
102 SPRPatchType regType, InternalStateType type, TimeStep *tStep);
103 void determineValuesFromPatch(FloatArray &dofManValues, IntArray &dofManCount,
104 IntArray &regionNodalNumbers, IntArray &dofManToDetermine,
105 FloatMatrix &a, SPRPatchType type);
106 void computePolynomialTerms(FloatArray &P, const FloatArray &coords, SPRPatchType type);
108 SPRPatchType determinePatchType(Set &elementList);
109
110#ifdef __MPI_PARALLEL_MODE
111 void initCommMaps();
112 void exchangeDofManValues(FloatArray &dofManValues,
113 IntArray &dofManPatchCount, IntArray &regionNodalNumbers,
114 int regionValSize);
117#endif
118};
119
137} // end namespace oofem
138#endif // sprnodalrecoverymodel_h
Interface()
Constructor.
Definition interface.h:86
NodalRecoveryModel(Domain *d)
Constructor.
virtual SPRPatchType SPRNodalRecoveryMI_givePatchType()=0
virtual void SPRNodalRecoveryMI_giveDofMansDeterminedByPatch(IntArray &answer, int pap)=0
virtual void SPRNodalRecoveryMI_giveSPRAssemblyPoints(IntArray &pap)=0
virtual int SPRNodalRecoveryMI_giveNumberOfIP()=0
void computePatch(FloatMatrix &a, IntArray &patchElems, int &regionValSize, SPRPatchType regType, InternalStateType type, TimeStep *tStep)
void initRegionMap(IntArray &regionMap, IntArray &regionTypes, InternalStateType type)
int unpackSharedDofManData(parallelStruct *s, ProcessCommunicator &processComm)
int packSharedDofManData(parallelStruct *s, ProcessCommunicator &processComm)
SPRNodalRecoveryModel(Domain *d)
Constructor.
void computePolynomialTerms(FloatArray &P, const FloatArray &coords, SPRPatchType type)
void initPatch(IntArray &patchElems, IntArray &dofManToDetermine, IntArray &pap, int papNumber, Set &elementList)
void exchangeDofManValues(FloatArray &dofManValues, IntArray &dofManPatchCount, IntArray &regionNodalNumbers, int regionValSize)
void determinePatchAssemblyPoints(IntArray &pap, SPRPatchType regType, Set &elemset)
SPRPatchType determinePatchType(Set &elementList)
const char * giveClassName() const override
void determineValuesFromPatch(FloatArray &dofManValues, IntArray &dofManCount, IntArray &regionNodalNumbers, IntArray &dofManToDetermine, FloatMatrix &a, SPRPatchType type)
int giveNumberOfUnknownPolynomialCoefficients(SPRPatchType regType)
#define OOFEM_EXPORT
Definition oofemcfg.h:7
parallelStruct(FloatArray *a, IntArray *b, IntArray *c, int d)

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011