OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
quasicontinuum.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 - 2013 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 quasicontinuum_h
36 #define quasicontinuum_h
37 
38 #include "floatarray.h"
39 #include "element.h"
40 #include "node.h"
41 #include "qcnode.h"
42 
43 
44 namespace oofem {
50 
51 {
52 protected:
53  std::vector<IntArray> interpolationMeshNodes;
56  std::vector <IntArray*> connectivityTable;
60 
61 
62 public:
64  virtual ~Quasicontinuum();
65 
66  void setNoDimensions(Domain *d);
67  void setupInterpolationMesh(Domain *d, int generateInterpolationElements, int interpolationElementsMaterialNumber, std::vector<IntArray> *newMeshNodes);
70 
71  void applyApproach1(Domain *d);
72  void applyApproach2(Domain *d, int homMtrxType, double volumeOfInterpolationMesh);
73  void applyApproach3(Domain *d, int homMtrxType);
74 
75  void homogenizationOfStiffMatrix(double &homogenizedE, double &homogenizedNu, FloatMatrix *Diso );
76  void createGlobalStiffnesMatrix(FloatMatrix *Diso, double &S0, Domain *d, int homMtrxType, double volumeOfInterpolationMesh);
77 
78  void computeStiffnessTensorOf1Link(FloatMatrix &D1, double &S0, Element *e, Domain *d);
79  bool stiffnessAssignment( std::vector<FloatMatrix*> &individualStiffnessTensors, FloatArray &individialS0, Domain *d, Element *e, qcNode *qn1, qcNode *qn2 );
80 
81  void computeIntersectionsOfLinkWithInterpElements( IntArray &intersected, FloatArray &lengths, Domain *d, Element *e, qcNode *qn1, qcNode *qn2);
82  bool computeIntersectionsOfLinkWith2DTringleElements( IntArray &intersected, FloatArray &lengths, Domain *d, Element *e, qcNode *qn1, qcNode *qn2);
83  bool computeIntersectionsOfLinkWith3DTetrahedraElements( IntArray &intersected, FloatArray &lengths, Domain *d, Element *e, qcNode *qn1, qcNode *qn2);
84 
86 
88 
89  int intersectionTestSegmentTetrahedra3D (FloatArray &intersectCoordsX, FloatArray &intersectCoordsY, FloatArray &intersectCoordsZ, FloatArray *A, FloatArray *B, FloatArray *C, FloatArray *D, FloatArray *X1, FloatArray *X2 );
90 
91  bool intersectionTestSegmentSegment2D (FloatArray &intersectCoords, FloatArray *A1, FloatArray *A2, FloatArray *B1, FloatArray *B2 );
92 
93  int intersectionTestSegmentTriangle2D (FloatArray &intersectCoordsX, FloatArray &intersectCoordsY, FloatArray *A, FloatArray *B, FloatArray *C, FloatArray *U1, FloatArray *U2 );
94 
96 
97 };
98 } // end namespace oofem
99 #endif // quasicontinuum_h
void applyApproach3(Domain *d, int homMtrxType)
void computeStiffnessTensorOf1Link(FloatMatrix &D1, double &S0, Element *e, Domain *d)
IntArray interpolationElementNumbers
std::vector< IntArray > interpolationMeshNodes
bool computeIntersectionsOfLinkWith2DTringleElements(IntArray &intersected, FloatArray &lengths, Domain *d, Element *e, qcNode *qn1, qcNode *qn2)
bool computeIntersectionsOfLinkWith3DTetrahedraElements(IntArray &intersected, FloatArray &lengths, Domain *d, Element *e, qcNode *qn1, qcNode *qn2)
Class and object Domain.
Definition: domain.h:115
void transformStiffnessTensorToMatrix(FloatMatrix *matrix, FloatMatrix *tensor)
General simplification for Quasicontinuum simulation.
void applyApproach1(Domain *d)
int intersectionTestSegmentTriangle2D(FloatArray &intersectCoordsX, FloatArray &intersectCoordsY, FloatArray *A, FloatArray *B, FloatArray *C, FloatArray *U1, FloatArray *U2)
Abstract base class for all finite elements.
Definition: element.h:145
void createInterpolationElements(Domain *d)
Class implementing an array of integers.
Definition: intarray.h:61
void computeIntersectionsOfLinkWithInterpElements(IntArray &intersected, FloatArray &lengths, Domain *d, Element *e, qcNode *qn1, qcNode *qn2)
void setupInterpolationMesh(Domain *d, int generateInterpolationElements, int interpolationElementsMaterialNumber, std::vector< IntArray > *newMeshNodes)
bool stiffnessAssignment(std::vector< FloatMatrix * > &individualStiffnessTensors, FloatArray &individialS0, Domain *d, Element *e, qcNode *qn1, qcNode *qn2)
bool intersectionTestSegmentTrianglePlucker3D(FloatArray &intersectCoords, FloatArray *A, FloatArray *B, FloatArray *C, FloatArray *X1, FloatArray *X2)
void homogenizationOfStiffMatrix(double &homogenizedE, double &homogenizedNu, FloatMatrix *Diso)
Class implementing hanging node connected to other nodes (masters) using interpolation.
Definition: qcnode.h:64
void setNoDimensions(Domain *d)
void createGlobalStiffnesMatrix(FloatMatrix *Diso, double &S0, Domain *d, int homMtrxType, double volumeOfInterpolationMesh)
void applyApproach2(Domain *d, int homMtrxType, double volumeOfInterpolationMesh)
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
void initializeConnectivityTableForInterpolationElements(Domain *d)
void addCrosssectionToInterpolationElements(Domain *d)
int intersectionTestSegmentTetrahedra3D(FloatArray &intersectCoordsX, FloatArray &intersectCoordsY, FloatArray &intersectCoordsZ, FloatArray *A, FloatArray *B, FloatArray *C, FloatArray *D, FloatArray *X1, FloatArray *X2)
std::vector< IntArray * > connectivityTable
bool intersectionTestSegmentSegment2D(FloatArray &intersectCoords, FloatArray *A1, FloatArray *A2, FloatArray *B1, FloatArray *B2)
the oofem namespace is to define a context or scope in which all oofem names are defined.
IntArray interpolationElementIndices

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:31 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011