OOFEM 3.0
Loading...
Searching...
No Matches
tr1_2d_pfem.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 "tr1_2d_pfem.h"
36#include "node.h"
37#include "material.h"
38#include "crosssection.h"
39#include "gausspoint.h"
41#include "floatmatrix.h"
42#include "floatarray.h"
43#include "intarray.h"
44#include "domain.h"
45#include "mathfem.h"
46#include "engngm.h"
47#include "pfem.h"
49#include "fluidcrosssection.h"
50#include "load.h"
51#include "bodyload.h"
52#include "timestep.h"
53#include "boundaryload.h"
54#include "mathfem.h"
55#include "contextioerr.h"
56
57#ifdef __OOFEG
58 #include "oofeggraphiccontext.h"
59 #include "connectivitytable.h"
60#endif
61
62namespace oofem {
63FEI2dTrLin TR1_2D_PFEM :: velocityInterpolation(1, 2);
64FEI2dTrLin TR1_2D_PFEM :: pressureInterpolation(1, 2);
65
66IntArray TR1_2D_PFEM :: edge_ordering [ 3 ] = {
67 IntArray(6), IntArray(6), IntArray(6)
68};
69
70IntArray TR1_2D_PFEM :: velocityDofMask = {
71 1, 2, 4, 5, 7, 8
72};
73IntArray TR1_2D_PFEM :: pressureDofMask = {
74 3, 6, 9
75};
76
77
78TR1_2D_PFEM :: TR1_2D_PFEM(int n, Domain *aDomain, int particle1, int particle2, int particle3, int mat, int cs) :
79 PFEMElement2d(n, aDomain)
80{
81 // Constructor.
83 IntArray aBodyLoadArry(1);
84 aBodyLoadArry.at(1) = 3;
85 this->setDofManagers({ particle1, particle2, particle3 });
86 // CHECK THIS - NOT NICE
87 this->setBodyLoads(aBodyLoadArry);
88 this->material = mat;
89 this->setCrossSection(cs);
90 this->postInitialize();
91}
92
93TR1_2D_PFEM :: ~TR1_2D_PFEM()
94// Destructor
95{ }
96
97int
98TR1_2D_PFEM :: computeNumberOfDofs()
99{
100 return 9;
101}
102
103void
104TR1_2D_PFEM :: giveDofManDofIDMask(int inode, IntArray &answer) const
105{
106 answer = {
107 V_u, V_v, P_f
108 };
109}
110
111// NOT IN USE
112void
113TR1_2D_PFEM :: giveElementDofIDMask(IntArray &answer) const
114{
115 this->giveDofManDofIDMask(1, answer);
116}
117
118
119void
120TR1_2D_PFEM :: initializeFrom(InputRecord &ir, int priority)
121{
122 PFEMElement :: initializeFrom(ir, priority);
123
124 this->computeGaussPoints();
125}
126
127void
128TR1_2D_PFEM :: computeGaussPoints()
129// Sets up the array containing the four Gauss points of the receiver.
130{
131 if ( integrationRulesArray.size() == 0 ) {
132 integrationRulesArray.resize(1);
133 integrationRulesArray [ 0 ] = std::make_unique<GaussIntegrationRule>(1, this, 1, 3);
134 integrationRulesArray [ 0 ]->setUpIntegrationPoints(_Triangle, 3, _2dFlow);
135 }
136}
137
138//copied from tr21stokes
139void
140TR1_2D_PFEM :: computeBodyLoadVectorAt(FloatArray &answer, BodyLoad *load, TimeStep *atTime, ValueModeType mode)
141{
142 IntegrationRule *iRule = this->integrationRulesArray [ 0 ].get();
143 FloatArray N, gVector;
144
145 answer.resize(6);
146 answer.zero();
147
148 load->computeComponentArrayAt(gVector, atTime, mode);
149 if ( gVector.giveSize() ) {
150 for ( auto &gp : *iRule ) {
151 double rho = static_cast< FluidCrossSection * >( this->giveCrossSection() )->giveDensity( integrationRulesArray [ 0 ]->getIntegrationPoint(0) );
152 double detJ = this->pressureInterpolation.giveTransformationJacobian( gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
153 double dA = detJ * gp->giveWeight();
154 this->pressureInterpolation.evalN( N, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
155 for ( int j = 0; j < 3; j++ ) {
156 answer(2 * j) += N(j) * rho * gVector(0) * dA;
157 answer(2 * j + 1) += N(j) * rho * gVector(1) * dA;
158 }
159 }
160 }
161}
162
163
164// NOT IN USE
165//copied from tr21stokes
166void
167TR1_2D_PFEM :: computeEdgeBCSubVectorAt(FloatArray &answer, Load *load, int iEdge, TimeStep *atTime)
168{
169 answer.resize(15);
170 answer.zero();
171
172 if ( load->giveType() == TransmissionBC ) { // Neumann boundary conditions (traction)
173 BoundaryLoad *boundaryLoad = ( BoundaryLoad * ) load;
174
175 int numberOfEdgeIPs = ( int ) ceil( ( boundaryLoad->giveApproxOrder() + 1. ) / 2. ) * 2;
176
177 GaussIntegrationRule iRule(1, this, 1, 1);
178 FloatArray N, t, f(6), f2(6);
179 IntArray edge_mapping;
180
181 f.zero();
182 iRule.setUpIntegrationPoints(_Line, numberOfEdgeIPs, _Unknown);
183
184 for ( auto &gp : iRule ) {
185 const FloatArray &lcoords = gp->giveNaturalCoordinates();
186 this->pressureInterpolation.edgeEvalN( N, iEdge, lcoords, FEIElementGeometryWrapper(this) );
187 double dS = gp->giveWeight() * this->pressureInterpolation.edgeGiveTransformationJacobian( iEdge, lcoords, FEIElementGeometryWrapper(this) );
188
189 if ( boundaryLoad->giveFormulationType() == Load :: FT_Entity ) { // Edge load in xi-eta system
190 boundaryLoad->computeValueAt(t, atTime, lcoords, VM_Total);
191 } else { // Edge load in x-y system
192 FloatArray gcoords;
193 this->pressureInterpolation.edgeLocal2global( gcoords, iEdge, lcoords, FEIElementGeometryWrapper(this) );
194 boundaryLoad->computeValueAt(t, atTime, gcoords, VM_Total);
195 }
196
197 // Reshape the vector
198 for ( int j = 0; j < 3; j++ ) {
199 f(2 * j) += N(j) * t(0) * dS;
200 f(2 * j + 1) += N(j) * t(1) * dS;
201 }
202 }
203
204 answer.assemble(f, this->edge_ordering [ iEdge - 1 ]);
205 } else {
206 OOFEM_ERROR("Strange boundary condition type");
207 }
208}
209
210void
211TR1_2D_PFEM :: computeDiagonalMassMtrx(FloatArray &answer, TimeStep *atTime)
212{
213 answer.resize(6);
214 answer.zero();
215
216 double rho = static_cast< FluidCrossSection * >( this->giveCrossSection() )->giveDensity( integrationRulesArray [ 0 ]->getIntegrationPoint(0) );
217 double mm = rho * this->area / 3.0;
218 for ( int i = 1; i <= 6; i++ ) {
219 answer.at(i) = mm;
220 }
221}
222
223void
224TR1_2D_PFEM :: computeDiagonalMassMtrx(FloatMatrix &answer, TimeStep *atTime)
225{
226 answer.resize(6, 6);
227 answer.zero();
228 double rho = static_cast< FluidCrossSection * >( this->giveCrossSection() )->giveDensity( integrationRulesArray [ 0 ]->getIntegrationPoint(0) );
229 double mm = rho * this->area / 3.0;
230 for ( int i = 1; i <= 6; i++ ) {
231 answer.at(i, i) = mm;
232 }
233}
234
235Interface *
236TR1_2D_PFEM :: giveInterface(InterfaceType /*interface*/)
237{
238 return NULL;
239}
240
241void
242TR1_2D_PFEM :: computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep)
243{
244 /* one should call material driver instead */
245 FloatArray u(6);
246 FloatArrayF<3> eps(3);
247 answer.resize(3);
248
249
250 this->computeVectorOf(VM_Total, tStep, u);
251
252 eps.at(1) = ( b [ 0 ] * u.at(1) + b [ 1 ] * u.at(3) + b [ 2 ] * u.at(5) );
253 eps.at(2) = ( c [ 0 ] * u.at(2) + c [ 1 ] * u.at(4) + c [ 2 ] * u.at(6) );
254 eps.at(3) = ( b [ 0 ] * u.at(2) + b [ 1 ] * u.at(4) + b [ 2 ] * u.at(6) + c [ 0 ] * u.at(1) + c [ 1 ] * u.at(3) + c [ 2 ] * u.at(5) );
255 FluidDynamicMaterial *mat = static_cast< FluidCrossSection * >( this->giveCrossSection() )->giveFluidMaterial();
256 answer=mat->computeDeviatoricStress2D(eps, gp, tStep);
257}
258
259void
260TR1_2D_PFEM :: computeDeviatoricStressDivergence(FloatArray &answer, TimeStep *atTime)
261{
262 answer.resize(6);
263 answer.zero();
264 FloatArray stress;
265
266 this->computeDeviatoricStress(stress, integrationRulesArray [ 0 ]->getIntegrationPoint(0), atTime);
267
268 // \int dNu/dxj \Tau_ij
269 for ( int i = 0; i < 3; i++ ) {
270 answer.at( ( i ) * 2 + 1 ) = area * ( stress.at(1) * b [ i ] + stress.at(3) * c [ i ] );
271 answer.at( ( i + 1 ) * 2 ) = area * ( stress.at(3) * b [ i ] + stress.at(2) * c [ i ] );
272 }
273}
274
275int
276TR1_2D_PFEM :: checkConsistency()
277{
278 Node *node1, *node2, *node3;
279 double x1, x2, x3, y1, y2, y3;
280
281 node1 = giveNode(1);
282 node2 = giveNode(2);
283 node3 = giveNode(3);
284
285 // init geometry data
286 x1 = node1->giveCoordinate(1);
287 x2 = node2->giveCoordinate(1);
288 x3 = node3->giveCoordinate(1);
289
290 y1 = node1->giveCoordinate(2);
291 y2 = node2->giveCoordinate(2);
292 y3 = node3->giveCoordinate(2);
293
294 this->area = 0.5 * ( x2 * y3 + x1 * y2 + y1 * x3 - x2 * y1 - x3 * y2 - x1 * y3 );
295
296 b [ 0 ] = ( y2 - y3 ) / ( 2. * area );
297 c [ 0 ] = ( x3 - x2 ) / ( 2. * area );
298 b [ 1 ] = ( y3 - y1 ) / ( 2. * area );
299 c [ 1 ] = ( x1 - x3 ) / ( 2. * area );
300 b [ 2 ] = ( y1 - y2 ) / ( 2. * area );
301 c [ 2 ] = ( x2 - x1 ) / ( 2. * area );
302
303 return PFEMElement2d :: checkConsistency();
304}
305
306double
307TR1_2D_PFEM :: computeCriticalTimeStep(TimeStep *tStep)
308{
309 double deltaT = domain->giveEngngModel()->giveSolutionStepWhenIcApply()->giveTimeIncrement();
310
311 // assuming plane x-y !!!!!!!!!!!!!!!!!!!!!!
312
313 FloatArray u;
314 this->computeVectorOf(VM_Total, tStep, u);
315 FloatArray u1(2), u2(2), u3(2);
316 u1.at(1) = u.at(1);
317 u1.at(2) = u.at(2);
318
319 u2.at(1) = u.at(4);
320 u2.at(2) = u.at(5);
321
322 u3.at(1) = u.at(7);
323 u3.at(2) = u.at(8);
324
325 Node *node1 = giveNode(1);
326 Node *node2 = giveNode(2);
327 Node *node3 = giveNode(3);
328
329 double x1, x2, x3, y1, y2, y3;
330
331 x1 = node1->giveCoordinate(1);
332 x2 = node2->giveCoordinate(1);
333 x3 = node3->giveCoordinate(1);
334
335 y1 = node1->giveCoordinate(2);
336 y2 = node2->giveCoordinate(2);
337 y3 = node3->giveCoordinate(2);
338
339 FloatArray p1(2), p2(2), p3(2);
340 p1.at(1) = x1;
341 p1.at(2) = y1;
342
343 p2.at(1) = x2;
344 p2.at(2) = y2;
345
346 p3.at(1) = x3;
347 p3.at(2) = y3;
348
349 FloatArray s12(p2), s23(p3), s31(p1);
350
351 s12.subtract(p1);
352 FloatArray s21(s12);
353 s21.negated();
354
355 s23.subtract(p2);
356 FloatArray s32(s23);
357 s32.negated();
358
359 s31.subtract(p3);
360 FloatArray s13(s31);
361 s13.negated();
362
363 FloatArray foot1(p2);
364 FloatArray foot2(p3);
365 FloatArray foot3(p1);
366
367 double factor = s21.dotProduct(s23) / s23.dotProduct(s23);
368 foot1.add(factor, s23);
369
370 FloatArray altitude1(foot1);
371 altitude1.subtract(p1);
372
373 factor = s32.dotProduct(s31) / s31.dotProduct(s31);
374 foot2.add(factor, s31);
375
376 FloatArray altitude2(foot2);
377 altitude2.subtract(p2);
378
379 factor = s13.dotProduct(s12) / s12.dotProduct(s12);
380 foot3.add(factor, s12);
381
382 FloatArray altitude3(foot3);
383 altitude3.subtract(p3);
384
385 double dt1(deltaT), dt2(deltaT), dt3(deltaT);
386
387 double u1_proj = u1.dotProduct(altitude1) / altitude1.computeNorm();
388 if ( u1_proj > 1.e-6 ) {
389 dt1 = altitude1.computeNorm() / u1_proj;
390 }
391
392 double u2_proj = u2.dotProduct(altitude2) / altitude2.computeNorm();
393 if ( u2_proj > 1.e-6 ) {
394 dt2 = altitude1.computeNorm() / u2_proj;
395 }
396
397 double u3_proj = u3.dotProduct(altitude3) / altitude3.computeNorm();
398 if ( u3_proj > 1.e-6 ) {
399 dt3 = altitude3.computeNorm() / u3_proj;
400 }
401
402 double dt_min = min( dt1, min(dt2, dt3) );
403
404 return dt_min;
405}
406
407
408void TR1_2D_PFEM :: saveContext(DataStream &stream, ContextMode mode)
409{
410 PFEMElement2d :: saveContext(stream, mode);
411}
412
413
414void TR1_2D_PFEM :: restoreContext(DataStream &stream, ContextMode mode)
415{
416 PFEMElement2d :: restoreContext(stream, mode);
417}
418
419
420double
421TR1_2D_PFEM :: computeVolumeAround(GaussPoint *gp)
422// Returns the portion of the receiver which is attached to gp.
423{
424 double determinant = fabs( this->velocityInterpolation.giveTransformationJacobian( gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) ) );
425 return determinant * gp->giveWeight();
426}
427
428#ifdef __OOFEG
429int
430TR1_2D_PFEM :: giveInternalStateAtNode(FloatArray &answer, InternalStateType type, InternalStateMode mode,
431 int node, TimeStep *atTime)
432{
433 //<RESTRICTED_SECTION>
434 if ( type == IST_VOFFraction ) {
435 answer.resize(1);
436 // answer.at(1) = this->giveTempVolumeFraction();
437 return 1;
438 } else
439 //</RESTRICTED_SECTION>
440 if ( type == IST_Density ) {
441 answer.resize(1);
442 answer.at(1) = static_cast< FluidCrossSection * >( this->giveCrossSection() )->giveDensity( integrationRulesArray [ 0 ]->getIntegrationPoint(0) );
443 return 1;
444 } else {
445 return PFEMElement :: giveInternalStateAtNode(answer, type, mode, node, atTime);
446 }
447}
448
449void
450TR1_2D_PFEM :: drawRawGeometry(oofegGraphicContext &gc)
451{
452 WCRec p [ 3 ];
453 GraphicObj *go;
454
455 if ( !gc.testElementGraphicActivity(this) ) {
456 return;
457 }
458
459 EASValsSetLineWidth(OOFEG_RAW_GEOMETRY_WIDTH);
460 EASValsSetColor( gc.getElementColor() );
461 EASValsSetEdgeColor( gc.getElementEdgeColor() );
462 EASValsSetEdgeFlag(TRUE);
463 EASValsSetLayer(OOFEG_RAW_GEOMETRY_LAYER);
464 p [ 0 ].x = ( FPNum ) this->giveNode(1)->giveCoordinate(1);
465 p [ 0 ].y = ( FPNum ) this->giveNode(1)->giveCoordinate(2);
466 p [ 0 ].z = 0.;
467 p [ 1 ].x = ( FPNum ) this->giveNode(2)->giveCoordinate(1);
468 p [ 1 ].y = ( FPNum ) this->giveNode(2)->giveCoordinate(2);
469 p [ 1 ].z = 0.;
470 p [ 2 ].x = ( FPNum ) this->giveNode(3)->giveCoordinate(1);
471 p [ 2 ].y = ( FPNum ) this->giveNode(3)->giveCoordinate(2);
472 p [ 2 ].z = 0.;
473
474 go = CreateTriangle3D(p);
475 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | EDGE_COLOR_MASK | EDGE_FLAG_MASK | LAYER_MASK, go);
476 EGAttachObject(go, ( EObjectP ) this);
477 EMAddGraphicsToModel(ESIModel(), go);
478}
479
480void TR1_2D_PFEM :: drawScalar(oofegGraphicContext &context)
481{
482 int i, indx, result = 0;
483 WCRec p [ 3 ];
484 GraphicObj *tr;
485 TimeStep *tStep = this->giveDomain()->giveEngngModel()->giveCurrentStep();
486 FloatArray v1, v2, v3;
487 double s [ 3 ];
488 IntArray map;
489
490 if ( !context.testElementGraphicActivity(this) ) {
491 return;
492 }
493
494 if ( context.giveIntVarMode() == ISM_recovered ) {
495 result += this->giveInternalStateAtNode(v1, context.giveIntVarType(), context.giveIntVarMode(), 1, tStep);
496 result += this->giveInternalStateAtNode(v2, context.giveIntVarType(), context.giveIntVarMode(), 2, tStep);
497 result += this->giveInternalStateAtNode(v3, context.giveIntVarType(), context.giveIntVarMode(), 3, tStep);
498 } else if ( context.giveIntVarMode() == ISM_local ) {
499 GaussPoint *gp = integrationRulesArray [ 0 ]->getIntegrationPoint(0);
500 result += giveIPValue(v1, gp, context.giveIntVarType(), tStep);
501 v2 = v1;
502 v3 = v1;
503 result *= 3;
504 }
505
506 if ( result != 3 ) {
507 return;
508 }
509
510 indx = context.giveIntVarIndx();
511
512 s [ 0 ] = v1.at(indx);
513 s [ 1 ] = v2.at(indx);
514 s [ 2 ] = v3.at(indx);
515
516 EASValsSetLayer(OOFEG_VARPLOT_PATTERN_LAYER);
517
518 if ( context.getScalarAlgo() == SA_ISO_SURF ) {
519 for ( i = 0; i < 3; i++ ) {
520 p [ i ].x = ( FPNum ) this->giveNode(i + 1)->giveCoordinate(1);
521 p [ i ].y = ( FPNum ) this->giveNode(i + 1)->giveCoordinate(2);
522 p [ i ].z = 0.;
523 }
524
525 //EASValsSetColor(gc.getYieldPlotColor(ratio));
526 context.updateFringeTableMinMax(s, 3);
527 tr = CreateTriangleWD3D(p, s [ 0 ], s [ 1 ], s [ 2 ]);
528 EGWithMaskChangeAttributes(LAYER_MASK, tr);
529 EMAddGraphicsToModel(ESIModel(), tr);
530 } else if ( ( context.getScalarAlgo() == SA_ZPROFILE ) || ( context.getScalarAlgo() == SA_COLORZPROFILE ) ) {
531 double landScale = context.getLandScale();
532
533 for ( i = 0; i < 3; i++ ) {
534 p [ i ].x = ( FPNum ) this->giveNode(i + 1)->giveCoordinate(1);
535 p [ i ].y = ( FPNum ) this->giveNode(i + 1)->giveCoordinate(2);
536 p [ i ].z = s [ i ] * landScale;
537 }
538
539 if ( context.getScalarAlgo() == SA_ZPROFILE ) {
540 EASValsSetColor( context.getDeformedElementColor() );
541 EASValsSetLineWidth(OOFEG_DEFORMED_GEOMETRY_WIDTH);
542 EASValsSetFillStyle(FILL_SOLID);
543 tr = CreateTriangle3D(p);
544 EGWithMaskChangeAttributes(WIDTH_MASK | COLOR_MASK | FILL_MASK | LAYER_MASK, tr);
545 } else {
546 context.updateFringeTableMinMax(s, 3);
547 EASValsSetFillStyle(FILL_SOLID);
548 tr = CreateTriangleWD3D(p, s [ 0 ], s [ 1 ], s [ 2 ]);
549 EGWithMaskChangeAttributes(FILL_MASK | LAYER_MASK, tr);
550 }
551
552 EMAddGraphicsToModel(ESIModel(), tr);
553 }
554}
555
556
557
558#endif
559} // end namespace oofem
#define N(a, b)
void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode) override
int giveApproxOrder() override=0
double giveCoordinate(int i) const
Definition dofmanager.h:383
Node * giveNode(int i) const
Definition element.h:629
void setBodyLoads(const IntArray &bodyLoads)
Definition element.C:607
virtual void setCrossSection(int csIndx)
Definition element.h:692
void setDofManagers(const IntArray &dmans)
Definition element.C:589
int numberOfDofMans
Number of dofmanagers.
Definition element.h:136
void computeVectorOf(ValueModeType u, TimeStep *tStep, FloatArray &answer)
Definition element.C:103
void postInitialize() override
Performs post initialization steps.
Definition element.C:797
std::vector< std ::unique_ptr< IntegrationRule > > integrationRulesArray
Definition element.h:157
int material
Number of associated material.
Definition element.h:140
CrossSection * giveCrossSection()
Definition element.C:534
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Definition element.C:1298
Domain * giveDomain() const
Definition femcmpnn.h:97
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition femcmpnn.h:79
double & at(std::size_t i)
double computeNorm() const
Definition floatarray.C:861
void assemble(const FloatArray &fe, const IntArray &loc)
Definition floatarray.C:616
void resize(Index s)
Definition floatarray.C:94
double & at(Index i)
Definition floatarray.h:202
double dotProduct(const FloatArray &x) const
Definition floatarray.C:524
Index giveSize() const
Returns the size of receiver.
Definition floatarray.h:261
void zero()
Zeroes all coefficients of receiver.
Definition floatarray.C:683
void add(const FloatArray &src)
Definition floatarray.C:218
void subtract(const FloatArray &src)
Definition floatarray.C:320
void resize(Index rows, Index cols)
Definition floatmatrix.C:79
void zero()
Zeroes all coefficient of receiver.
double at(std::size_t i, std::size_t j) const
virtual std::pair< FloatArrayF< 3 >, double > computeDeviatoricStress2D(const FloatArrayF< 3 > &eps, double pressure, GaussPoint *gp, TimeStep *tStep) const
const FloatArray & giveNaturalCoordinates() const
Returns coordinate array of receiver.
Definition gausspoint.h:138
double giveWeight()
Returns integration weight of receiver.
Definition gausspoint.h:180
void zero()
Sets all component to zero.
Definition intarray.C:52
int & at(std::size_t i)
Definition intarray.h:104
int setUpIntegrationPoints(integrationDomain intdomain, int nPoints, MaterialMode matMode)
virtual void computeComponentArrayAt(FloatArray &answer, TimeStep *tStep, ValueModeType mode)
Definition load.C:84
virtual FormulationType giveFormulationType()
Definition load.h:170
PFEMElement2d(int n, Domain *d)
Constructor.
void computeDeviatoricStress(FloatArray &answer, GaussPoint *gp, TimeStep *tStep) override
Computes deviatoric stress vector in given integration point and solution step from given total strai...
static FEI2dTrLin pressureInterpolation
Interpolation for pressure unknowns.
Definition tr1_2d_pfem.h:78
void computeGaussPoints() override
void giveDofManDofIDMask(int inode, IntArray &answer) const override
static FEI2dTrLin velocityInterpolation
Interpolation for velocity unknowns.
Definition tr1_2d_pfem.h:76
int giveInternalStateAtNode(FloatArray &answer, InternalStateType type, InternalStateMode mode, int node, TimeStep *atTime) override
static IntArray edge_ordering[3]
Definition tr1_2d_pfem.h:80
void updateFringeTableMinMax(double *s, int size)
InternalStateType giveIntVarType()
InternalStateMode giveIntVarMode()
ScalarAlgorithmType getScalarAlgo()
#define OOFEM_ERROR(...)
Definition error.h:79
long ContextMode
Definition contextmode.h:43
FloatArrayF< N > min(const FloatArrayF< N > &a, const FloatArrayF< N > &b)
InternalStateMode
Determines the mode of internal variable.
@ TransmissionBC
Neumann type (prescribed flux).
Definition bctype.h:43
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define OOFEG_VARPLOT_PATTERN_LAYER
#define OOFEG_DEFORMED_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_WIDTH
#define OOFEG_RAW_GEOMETRY_LAYER

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