Index

NAME

DegFreeFDLattice


INCLUDE

include "DegFreeFDLattice.h"

SYNTAX

 class DegFreeFDLattice : public DegFreeFD
 {
 private:

 protected:

   virtual int calcPDEHalfBandWidth (StencilCollection& stencils);


 public:
   DegFreeFDLattice ();
   DegFreeFDLattice (const GridWithPts& grid, int ndof_per_node = 1);
   DegFreeFDLattice (const GridWithPts& grid, const IndexSet& indexset,
                     int ndof_per_node = 1);
   DegFreeFDLattice (const GridWithPts& grid,
                     const IndexSetCollection& indexsetcoll,
                     int ndof_per_node = 1);
   DegFreeFDLattice (FieldsWithPtValues& collection);
   DegFreeFDLattice (FieldsWithPtValues& collection,
                     const IndexSet& indexset);
   DegFreeFDLattice (FieldsWithPtValues& collection,
                     const IndexSetCollection& indexsetcoll);
  ~DegFreeFDLattice ();

   virtual bool ok () const;

   virtual int  loc2glob (const Ptv(int)& node_idx, int node_dof);
   virtual void loc2glob (VecSimple(int)& l2g, const Ptv(int)& node_idx) const;
   virtual int  loc2glob (int node_no, int node_dof) const
     { return DegFreeFD:: loc2glob( node_no, node_dof); }
   virtual void loc2glob (VecSimple(int)& l2g, int node_no) const
     { DegFreeFD:: loc2glob( l2g, node_no); }


   // Utility functions for computation of sparsity patterns

   virtual void findSparsePatternFromIndexSet
     (
      IndexSet& indexset,
      StencilCollection& stencils,
      VecSimple(VecSimple(int))& col_idx,
      int indexset_no
     );

   virtual void findSparsePatternFromGrid
     (
      StencilCollection& stencils,
      VecSimple(VecSimple(int))& col_idx
     );

   virtual void findOffsetPatternFromIndexSet
     (
      IndexSet& indexset,
      StencilCollection& stencils,
      ArrayGenSimple(int)& offsetmarks,
      int indexset_no
     );

   virtual void findOffsetPatternFromGrid
     (
      StencilCollection& stencils,
      ArrayGenSimple(int)& offsetmarks
     );

   // default/dummy functions:

   COPY_CONSTRUCTOR(DegFreeFDLattice)
   ASSIGNMENT_OPERATOR(DegFreeFDLattice)

   CLASS_INFO
   VIRTUAL_CAST(DegFreeFDLattice)
 };



KEYWORDS

lattice  grid, finite differences, degree of freedom, grid, mesh,
linear system


DESCRIPTION

The class contains parts of DegFreeFD that are specific for  lat­
tice grid.


CONSTRUCTORS AND INITIALIZATION

See the base class DegFreeFD


MEMBER FUNCTIONS

Most of the functions are utility functions used by DegFreeFD for
lattice grids.  The  rest  of  the  functions  are  described  in
DegFreeFD.



DEVELOPED BY

Numerical Objects AS


AUTHOR

Elizabeth Acklam, NO