Changed SplineField(s) to Field(s)
git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1049 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
parent
33ab57e523
commit
d451094a42
@ -1,18 +1,18 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
//!
|
//!
|
||||||
//! \file SplineField.h
|
//! \file Field.h
|
||||||
//!
|
//!
|
||||||
//! \date Mar 28 2011
|
//! \date Mar 28 2011
|
||||||
//!
|
//!
|
||||||
//! \author Runar Holdahl / SINTEF
|
//! \author Runar Holdahl / SINTEF
|
||||||
//!
|
//!
|
||||||
//! \brief Base class for spline-based finite element scalar fields.
|
//! \brief Base class for scalar fields.
|
||||||
//!
|
//!
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
||||||
#ifndef _SPLINE_FIELD_H
|
#ifndef _FIELD_H
|
||||||
#define _SPLINE_FIELD_H
|
#define _FIELD_H
|
||||||
|
|
||||||
#include "MatVec.h"
|
#include "MatVec.h"
|
||||||
|
|
||||||
@ -21,26 +21,26 @@ class Vec3;
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Base class for spline-based finite element scalar fields.
|
\brief Base class for scalar fields.
|
||||||
|
|
||||||
\details This class incapsulates the data and methods needed
|
\details This class incapsulates the data and methods needed
|
||||||
to store and evaluate a spline finite element scalar field.
|
to store and evaluate a scalar field. This is an abstract base
|
||||||
This is an abstract base class and the fields associated with
|
class and the fields associated with a specific field type is
|
||||||
specific spline objects are implemented as subclasses,
|
implemented as subclasses, for instance 1D, 2D and 3D spline
|
||||||
for instance 1D, 2D and 3D spline formulations.
|
formulations or Lagrange formulations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SplineField
|
class Field
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
//! \brief The constructor sets the number of space dimensions and fields.
|
//! \brief The constructor sets the number of space dimensions and fields.
|
||||||
//! \param[in] n Number of space dimensions (1, 2 or 3)
|
//! \param[in] n Number of space dimensions (1, 2 or 3)
|
||||||
//! \param[in] name Name of spline field
|
//! \param[in] name Name of field
|
||||||
SplineField(unsigned char n, char* name = NULL) : nsd(n), fieldname(name) {}
|
Field(unsigned char n, char* name = NULL) : nsd(n), fieldname(name) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! \brief Empty destructor
|
//! \brief Empty destructor
|
||||||
virtual ~SplineField() {}
|
virtual ~Field() {}
|
||||||
|
|
||||||
//! \brief Returns number of space dimensions.
|
//! \brief Returns number of space dimensions.
|
||||||
unsigned char getNoSpaceDim() const { return nsd; }
|
unsigned char getNoSpaceDim() const { return nsd; }
|
||||||
@ -51,10 +51,10 @@ public:
|
|||||||
//! \brief Returns number of control points.
|
//! \brief Returns number of control points.
|
||||||
int getNoNodes() const { return nno; }
|
int getNoNodes() const { return nno; }
|
||||||
|
|
||||||
//! \brief Returns name of spline field.
|
//! \brief Returns name of field.
|
||||||
const char* getFieldName() const { return fieldname; }
|
const char* getFieldName() const { return fieldname; }
|
||||||
|
|
||||||
//! \brief Sets the name of the spline field.
|
//! \brief Sets the name of the field.
|
||||||
void setFieldName(const char* name) { fieldname = const_cast<char*>(name); }
|
void setFieldName(const char* name) { fieldname = const_cast<char*>(name); }
|
||||||
|
|
||||||
//! \brief Initializes the field values.
|
//! \brief Initializes the field values.
|
||||||
@ -90,7 +90,7 @@ protected:
|
|||||||
unsigned char nsd; //!< Number of space dimensions
|
unsigned char nsd; //!< Number of space dimensions
|
||||||
int nelm; //!< Number of elements/knot-spans
|
int nelm; //!< Number of elements/knot-spans
|
||||||
int nno; //!< Number of nodes/control points
|
int nno; //!< Number of nodes/control points
|
||||||
char* fieldname; //!< Name of spline element field
|
char* fieldname; //!< Name of field
|
||||||
Vector values; //!< Field values
|
Vector values; //!< Field values
|
||||||
};
|
};
|
||||||
|
|
@ -1,18 +1,18 @@
|
|||||||
// $Id$
|
// $Id$
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
//!
|
//!
|
||||||
//! \file SplineFields.h
|
//! \file Fields.h
|
||||||
//!
|
//!
|
||||||
//! \date Mar 28 2011
|
//! \date Mar 28 2011
|
||||||
//!
|
//!
|
||||||
//! \author Runar Holdahl / SINTEF
|
//! \author Runar Holdahl / SINTEF
|
||||||
//!
|
//!
|
||||||
//! \brief Base class for spline-based finite element vector fields.
|
//! \brief Base class for vector fields.
|
||||||
//!
|
//!
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
||||||
#ifndef _SPLINE_FIELDS_H
|
#ifndef _FIELDS_H
|
||||||
#define _SPLINE_FIELDS_H
|
#define _FIELDS_H
|
||||||
|
|
||||||
#include "MatVec.h"
|
#include "MatVec.h"
|
||||||
|
|
||||||
@ -21,26 +21,26 @@ class Vec3;
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Base class for spline-based finite element vector fields.
|
\brief Base class for vector fields.
|
||||||
|
|
||||||
\details This class incapsulates the data and methods needed
|
\details This class incapsulates the data and methods needed
|
||||||
to store and evaluate a spline finite element vector field.
|
to store and evaluate a vector field. This is an abstract base
|
||||||
This is an abstract base class and the fields associated with
|
class and the fields of a specific type is implemented as a
|
||||||
specific spline objects are implemented as subclasses,
|
subclass, for instance 1D, 2D and 3D spline formulations or
|
||||||
for instance 1D, 2D and 3D spline formulations.
|
Lagrange formulations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SplineFields
|
class Fields
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
//! \brief The constructor sets the field name.
|
//! \brief The constructor sets the field name.
|
||||||
//! \param[in] n Number of space dimensions (1, 2 or 3)
|
//! \param[in] n Number of space dimensions (1, 2 or 3)
|
||||||
//! \param[in] name Name of spline field
|
//! \param[in] name Name of fields
|
||||||
SplineFields(unsigned char n, char* name = NULL) : nsd(n), fieldname(name) {}
|
Fields(unsigned char n, char* name = NULL) : nsd(n), fieldname(name) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! \brief Empty destructor.
|
//! \brief Empty destructor.
|
||||||
virtual ~SplineFields() {}
|
virtual ~Fields() {}
|
||||||
|
|
||||||
//! \brief Returns number of space dimensions.
|
//! \brief Returns number of space dimensions.
|
||||||
unsigned char getNoSpaceDim() const { return nsd; }
|
unsigned char getNoSpaceDim() const { return nsd; }
|
||||||
@ -54,10 +54,10 @@ public:
|
|||||||
//! \brief Returns number of control points.
|
//! \brief Returns number of control points.
|
||||||
int getNoNodes() const { return nno; }
|
int getNoNodes() const { return nno; }
|
||||||
|
|
||||||
//! \brief Returns name of spline field.
|
//! \brief Returns name of fields.
|
||||||
const char* getFieldName() const { return fieldname; }
|
const char* getFieldName() const { return fieldname; }
|
||||||
|
|
||||||
//! \brief Sets the name of the spline field.
|
//! \brief Sets the name of the field.
|
||||||
void setFieldName(char* name) { fieldname = name; }
|
void setFieldName(char* name) { fieldname = name; }
|
||||||
|
|
||||||
//! \brief Initializes the field values.
|
//! \brief Initializes the field values.
|
||||||
@ -97,7 +97,7 @@ protected:
|
|||||||
unsigned char nf; //!< Number of fields
|
unsigned char nf; //!< Number of fields
|
||||||
int nelm; //!< Number of elements/knot-spans
|
int nelm; //!< Number of elements/knot-spans
|
||||||
int nno; //!< Number of nodes/control points
|
int nno; //!< Number of nodes/control points
|
||||||
char* fieldname; //!< Name of spline element field
|
char* fieldname; //!< Name of fields
|
||||||
Vector values; //!< Field values
|
Vector values; //!< Field values
|
||||||
};
|
};
|
||||||
|
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
SplineField2D::SplineField2D(Go::SplineSurface *geometry, char* name)
|
SplineField2D::SplineField2D(Go::SplineSurface *geometry, char* name)
|
||||||
: SplineField(2,name), surf(geometry)
|
: Field(2,name), surf(geometry)
|
||||||
{
|
{
|
||||||
const int n1 = surf->numCoefs_u();
|
const int n1 = surf->numCoefs_u();
|
||||||
const int n2 = surf->numCoefs_v();
|
const int n2 = surf->numCoefs_v();
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#ifndef _SPLINE_FIELD_2D_H
|
#ifndef _SPLINE_FIELD_2D_H
|
||||||
#define _SPLINE_FIELD_2D_H
|
#define _SPLINE_FIELD_2D_H
|
||||||
|
|
||||||
#include "SplineField.h"
|
#include "Field.h"
|
||||||
|
|
||||||
namespace Go {
|
namespace Go {
|
||||||
class SplineSurface;
|
class SplineSurface;
|
||||||
@ -29,7 +29,7 @@ namespace Go {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
class SplineField2D : public SplineField
|
class SplineField2D : public Field
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! \brief The constructor sets the number of space dimensions and fields.
|
//! \brief The constructor sets the number of space dimensions and fields.
|
||||||
|
@ -24,7 +24,7 @@ namespace Go {
|
|||||||
|
|
||||||
|
|
||||||
SplineField3D::SplineField3D(Go::SplineVolume *geometry, char* name)
|
SplineField3D::SplineField3D(Go::SplineVolume *geometry, char* name)
|
||||||
: SplineField(3,name), vol(geometry)
|
: Field(3,name), vol(geometry)
|
||||||
{
|
{
|
||||||
const int n1 = vol->numCoefs(0);
|
const int n1 = vol->numCoefs(0);
|
||||||
const int n2 = vol->numCoefs(1);
|
const int n2 = vol->numCoefs(1);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#ifndef _SPLINE_FIELD_3D_H
|
#ifndef _SPLINE_FIELD_3D_H
|
||||||
#define _SPLINE_FIELD_3D_H
|
#define _SPLINE_FIELD_3D_H
|
||||||
|
|
||||||
#include "SplineField.h"
|
#include "Field.h"
|
||||||
|
|
||||||
namespace Go {
|
namespace Go {
|
||||||
class SplineVolume;
|
class SplineVolume;
|
||||||
@ -29,7 +29,7 @@ namespace Go {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
class SplineField3D : public SplineField
|
class SplineField3D : public Field
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! \brief The constructor sets the number of space dimensions and fields.
|
//! \brief The constructor sets the number of space dimensions and fields.
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
|
|
||||||
SplineFields2D::SplineFields2D(Go::SplineSurface *geometry, char* name)
|
SplineFields2D::SplineFields2D(Go::SplineSurface *geometry, char* name)
|
||||||
: SplineFields(2,name), surf(geometry)
|
: Fields(2,name), surf(geometry)
|
||||||
{
|
{
|
||||||
const int n1 = surf->numCoefs_u();
|
const int n1 = surf->numCoefs_u();
|
||||||
const int n2 = surf->numCoefs_v();
|
const int n2 = surf->numCoefs_v();
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#ifndef _SPLINE_FIELDS_2D_H
|
#ifndef _SPLINE_FIELDS_2D_H
|
||||||
#define _SPLINE_FIELDS_2D_H
|
#define _SPLINE_FIELDS_2D_H
|
||||||
|
|
||||||
#include "SplineFields.h"
|
#include "Fields.h"
|
||||||
|
|
||||||
namespace Go {
|
namespace Go {
|
||||||
class SplineSurface;
|
class SplineSurface;
|
||||||
@ -29,7 +29,7 @@ namespace Go {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
class SplineFields2D : public SplineFields
|
class SplineFields2D : public Fields
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! \brief The constructor sets the field name.
|
//! \brief The constructor sets the field name.
|
||||||
|
@ -25,7 +25,7 @@ namespace Go {
|
|||||||
|
|
||||||
|
|
||||||
SplineFields3D::SplineFields3D(Go::SplineVolume *geometry, char* name)
|
SplineFields3D::SplineFields3D(Go::SplineVolume *geometry, char* name)
|
||||||
: SplineFields(3,name), vol(geometry)
|
: Fields(3,name), vol(geometry)
|
||||||
{
|
{
|
||||||
const int n1 = vol->numCoefs(0);
|
const int n1 = vol->numCoefs(0);
|
||||||
const int n2 = vol->numCoefs(1);
|
const int n2 = vol->numCoefs(1);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#ifndef _SPLINE_FIELDS_3D_H
|
#ifndef _SPLINE_FIELDS_3D_H
|
||||||
#define _SPLINE_FIELDS_3D_H
|
#define _SPLINE_FIELDS_3D_H
|
||||||
|
|
||||||
#include "SplineFields.h"
|
#include "Fields.h"
|
||||||
|
|
||||||
namespace Go {
|
namespace Go {
|
||||||
class SplineVolume;
|
class SplineVolume;
|
||||||
@ -29,7 +29,7 @@ namespace Go {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
class SplineFields3D : public SplineFields
|
class SplineFields3D : public Fields
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//! \brief The constructor sets the field name.
|
//! \brief The constructor sets the field name.
|
||||||
|
Loading…
Reference in New Issue
Block a user