IFEM 90A354
LagrangeField3D.h
Go to the documentation of this file.
1// $Id$
2//==============================================================================
12//==============================================================================
13
14#ifndef _LAGRANGE_FIELD_3D_H
15#define _LAGRANGE_FIELD_3D_H
16
17#include "FieldBase.h"
18
19class ASMs3DLag;
20
21
30{
31public:
38 LagrangeField3D(const ASMs3DLag* patch, const RealArray& v,
39 char basis = 1, char cmp = 1, const char* name = nullptr);
41 virtual ~LagrangeField3D() {}
42
43 // Methods to evaluate the field
44 //==============================
45
48 double valueNode(size_t node) const;
49
52 double valueFE(const ItgPoint& x) const;
53
57 bool gradFE(const ItgPoint& x, Vector& grad) const;
58
59protected:
61 using IntMat = std::vector<std::vector<int>>;
63 int p1;
64 int p2;
65 int p3;
66};
67
68#endif
Base class for scalar fields.
std::vector< Real > RealArray
A real-valued array without algebraic operations.
Definition ImmersedBoundaries.h:32
Driver for assembly of structured 3D Lagrange FE models.
Definition ASMs3DLag.h:27
Base class for scalar fields.
Definition FieldBase.h:30
Class representing an integration point.
Definition ItgPoint.h:25
Class for Lagrange-based finite element scalar fields in 3D.
Definition LagrangeField3D.h:30
virtual ~LagrangeField3D()
Empty destructor.
Definition LagrangeField3D.h:41
int p2
Element order in second parameter direction.
Definition LagrangeField3D.h:64
double valueNode(size_t node) const
Computes the value in a given node/control point.
Definition LagrangeField3D.C:46
std::vector< std::vector< int > > IntMat
Convenience type.
Definition LagrangeField3D.h:61
Matrix coord
Matrix of nodel coordinates.
Definition LagrangeField3D.h:60
int p1
Element order in first parameter direction.
Definition LagrangeField3D.h:63
bool gradFE(const ItgPoint &x, Vector &grad) const
Computes the gradient for a given local coordinate.
Definition LagrangeField3D.C:72
int p3
Element order in third parameter direction.
Definition LagrangeField3D.h:65
double valueFE(const ItgPoint &x) const
Computes the value at a given local coordinate.
Definition LagrangeField3D.C:52
IntMat mnpc
Matrix of element nodes.
Definition LagrangeField3D.h:62
A vector class with some added algebraic operations.
Definition matrix.h:64