IFEM  90A354
ASMLagBase.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _ASM_LAG_BASE_H
15 #define _ASM_LAG_BASE_H
16 
17 #include "MatVec.h"
18 #include "Vec3.h"
19 
20 
27 {
28 protected:
32  ASMLagBase(const ASMLagBase& patch, bool cpCoord = true);
34  virtual ~ASMLagBase() {}
35 
37  bool nodalField(Matrix& field, const Vector& sol, size_t nno) const;
38 
40  Vec3 getGeometricCenter(const std::vector<int>& MNPC) const;
41 
45  bool updateCoords(const Vector& displ, unsigned char nsd);
46 
47 public:
50  void updateOrigin(const Vec3& origin);
51 
52 protected:
53  const Vec3Vec& coord;
55 };
56 
57 #endif
Global algebraic operations on index 1-based matrices and vectors.
Representation of a point in 3D space with some basic operations.
std::vector< Vec3 > Vec3Vec
An array of point vectors.
Definition: Vec3.h:318
Common base class for Lagrange FE models.
Definition: ASMLagBase.h:27
Vec3Vec myCoord
Nodal coordinate container.
Definition: ASMLagBase.h:54
bool nodalField(Matrix &field, const Vector &sol, size_t nno) const
Direct nodal evaluation of a solution field.
Definition: ASMLagBase.C:23
ASMLagBase()
Default constructor.
Definition: ASMLagBase.h:30
virtual ~ASMLagBase()
Empty destructor.
Definition: ASMLagBase.h:34
const Vec3Vec & coord
Const reference to the nodal coordinate container.
Definition: ASMLagBase.h:53
Vec3 getGeometricCenter(const std::vector< int > &MNPC) const
Returns the geometric center of an element.
Definition: ASMLagBase.C:39
void updateOrigin(const Vec3 &origin)
Updates patch origin by adding a constant to all nodes.
Definition: ASMLagBase.C:72
bool updateCoords(const Vector &displ, unsigned char nsd)
Updates the nodal coordinates for this patch.
Definition: ASMLagBase.C:51
Simple class for representing a point in 3D space.
Definition: Vec3.h:27
A vector class with some added algebraic operations.
Definition: matrix.h:64