IFEM  90A354
FieldBase.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _FIELD_BASE_H
15 #define _FIELD_BASE_H
16 
17 #include "Field.h"
18 
19 
29 class FieldBase : public Field
30 {
31 protected:
34  explicit FieldBase(const char* name = nullptr) : Field(name) { nelm = nno = 0; }
35 
36 public:
38  virtual ~FieldBase() {}
39 
41  size_t getNoElm() const { return nelm; }
43  size_t getNoNodes() const { return nno; }
44 
45 protected:
46  size_t nelm;
47  size_t nno;
49 };
50 
51 #endif
Base class for scalar fields.
Base class for scalar fields.
Definition: FieldBase.h:30
size_t getNoNodes() const
Returns the number of nodal/control points.
Definition: FieldBase.h:43
size_t nno
Number of nodes/control points.
Definition: FieldBase.h:47
size_t getNoElm() const
Returns the number of elements.
Definition: FieldBase.h:41
Vector values
Nodal field values.
Definition: FieldBase.h:48
virtual ~FieldBase()
Empty destructor.
Definition: FieldBase.h:38
size_t nelm
Number of elements/knot-spans.
Definition: FieldBase.h:46
FieldBase(const char *name=nullptr)
The constructor sets the field name.
Definition: FieldBase.h:34
Interface class for scalar fields.
Definition: Field.h:30
A vector class with some added algebraic operations.
Definition: matrix.h:64