OOFEM 3.0
Loading...
Searching...
No Matches
matstatmapperint.C
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#include "matstatmapperint.h"
36
37#include "error.h"
40#include "matstatus.h"
41
42namespace oofem {
43MaterialStatusMapperInterface :: MaterialStatusMapperInterface() :
44 mpMaterialMapper(std::make_unique<MMAClosestIPTransfer>())
45{}
46
47int MaterialStatusMapperInterface :: MSMI_map(const GaussPoint &iGP, const Domain &iOldDom, Set &sourceSet, const TimeStep &iTStep, MaterialStatus &oStatus)
48{
49 // Mapping of "regular" Gauss points
50 int result = 1;
51
52 Domain *dold = const_cast< Domain * >(& iOldDom);
53 GaussPoint *gp = const_cast< GaussPoint * >(& iGP);
54 TimeStep *tStep = const_cast< TimeStep * >(& iTStep);
55 IntArray type;
56
57 mpMaterialMapper->init(dold, type, gp, sourceSet, tStep);
58
59 mpMaterialMapper->mapStatus(oStatus);
60
61
62 return result;
63}
64
65int MaterialStatusMapperInterface :: MSMI_map_cz(const GaussPoint &iGP, const Domain &iOldDom, Set &sourceSet, const TimeStep &iTStep, MaterialStatus &oStatus)
66{
67 // Mapping of cohesive zone Gauss points
68 int result = 1;
69
70 Domain *dold = const_cast< Domain * >(& iOldDom);
71 GaussPoint *gp = const_cast< GaussPoint * >(& iGP);
72 TimeStep *tStep = const_cast< TimeStep * >(& iTStep);
73 IntArray type;
74 bool gpBelongsToCohesiveZone = true;
75
76 mpMaterialMapper->init(dold, type, gp, sourceSet, tStep, gpBelongsToCohesiveZone);
77
78 mpMaterialMapper->mapStatus(oStatus);
79
80 return result;
81}
82
83
84int MaterialStatusMapperInterface :: MSMI_update(const GaussPoint &iGP, const TimeStep &iTStep)
85{
86 int result = 1;
87
88
89
90 return result;
91}
92
93int MaterialStatusMapperInterface :: MSMI_finish(const TimeStep &iTStep)
94{
95 int result = 1;
96
97
98
99 return result;
100}
101} /* namespace oofem */
std::unique_ptr< MaterialMappingAlgorithm > mpMaterialMapper

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