OOF2: The Manual


DegreeOfFreedom — Degree of freedom at a Node


C++ Synopsis

#include "engine/freedom.h"
class DegreeOfFreedom {
  double value() const;
  double& value();

Python Synopsis

from oof2.SWIG.engine import freedom
class DegreeOfFreedom:
  def value(self)

Source Files

  • SRC/engine/freedom.C: C++ source code
  • SRC/engine/freedom.h: C++ header file
  • SRC/engine/freedom.swg: swig source code


The DegreeOfFreedom class holds the value of a degree of freedom (i.e, Field value) at a node (specifically a FuncNode) of a FEMesh. It also holds some other bookkeeping data, which isn't described here because it isn't directly useful to authors of OOF2 extensions.


Only methods relevant for OOF2 extensions are listed here.

double value() const, double& value()

value simply returns the numerical value of the degree of freedom. Usually this is a component of a Field.