ug4
ug::IDataImport< dim > Class Template Referenceabstract

Base class for data import. More...

#include <data_import.h>

+ Inheritance diagram for ug::IDataImport< dim >:

Public Member Functions

virtual void add_jacobian (LocalMatrix &J, const number scale)=0
 add jacobian entries introduced by this import More...
 
virtual void check_setup ()=0
 checks if ready for evaluation More...
 
virtual void clear_ips ()=0
 removes the positions More...
 
virtual void compute_lin_defect (LocalVector &u)=0
 compute lin defect More...
 
const FunctionIndexMappingconn_map () const
 get function mapping of dependent data More...
 
virtual bool constant () const =0
 returns if data is constant More...
 
virtual SmartPtr< ICplUserData< dim > > data ()=0
 returns the connected user data More...
 
virtual bool data_given () const =0
 returns if data is set More...
 
 IDataImport (bool compLinDefect=true)
 Constructor. More...
 
const FunctionIndexMappingmap () const
 get function mapping More...
 
size_t num_fct () const
 number of functions More...
 
DiscPart part () const
 returns if import is located in mass part (for time dependent problems) More...
 
void set_comp_lin_defect (bool b)
 sets if lin defect is to be computed More...
 
void set_expl_part ()
 set to explicit part More...
 
void set_map (const FunctionIndexMapping &map)
 set function group for linearization of defect More...
 
void set_mass_part ()
 sets if import is located in mass part (for time dependent problems) More...
 
void set_none_part ()
 set to no part More...
 
void set_part (DiscPart part)
 sets part of import More...
 
void set_rhs_part ()
 sets if import is located in rhs part More...
 
virtual void set_roid (ReferenceObjectID id)=0
 sets the geometric object type More...
 
void set_stiff_part ()
 sets if import is located in stiff part (default) More...
 
virtual void update_dof_sizes (const LocalIndices &ind)=0
 resize arrays More...
 
bool zero_derivative () const
 returns if data depends on unknown functions More...
 
virtual ~IDataImport ()
 

Protected Attributes

bool m_bCompLinDefect
 indicates iff lin defect should be computed More...
 
FunctionIndexMapping m_map
 Mapping for import fct. More...
 
DiscPart m_part
 flag to indicate where import is located More...
 
SmartPtr< ICplUserData< dim > > m_spICplUserData
 connected iexport More...
 

Detailed Description

template<int dim>
class ug::IDataImport< dim >

Base class for data import.

An IDataImport is the base class for importing data to ElemDiscs

Constructor & Destructor Documentation

◆ IDataImport()

template<int dim>
ug::IDataImport< dim >::IDataImport ( bool  compLinDefect = true)
inline

Constructor.

◆ ~IDataImport()

template<int dim>
virtual ug::IDataImport< dim >::~IDataImport ( )
inlinevirtual

Member Function Documentation

◆ add_jacobian()

template<int dim>
virtual void ug::IDataImport< dim >::add_jacobian ( LocalMatrix J,
const number  scale 
)
pure virtual

◆ check_setup()

template<int dim>
virtual void ug::IDataImport< dim >::check_setup ( )
pure virtual

◆ clear_ips()

template<int dim>
virtual void ug::IDataImport< dim >::clear_ips ( )
pure virtual

◆ compute_lin_defect()

template<int dim>
virtual void ug::IDataImport< dim >::compute_lin_defect ( LocalVector u)
pure virtual

◆ conn_map()

template<int dim>
const FunctionIndexMapping& ug::IDataImport< dim >::conn_map ( ) const
inline

get function mapping of dependent data

References ug::IDataImport< dim >::m_spICplUserData.

◆ constant()

template<int dim>
virtual bool ug::IDataImport< dim >::constant ( ) const
pure virtual

returns if data is constant

This method, returns if the connected data is constant.

Implemented in ug::DataImport< TData, dim >, ug::DataImport< ug::MathMatrix< dim, dim >, dim >, ug::DataImport< ug::MathVector< dim >, dim >, and ug::DataImport< number, dim >.

◆ data()

◆ data_given()

◆ map()

template<int dim>
const FunctionIndexMapping& ug::IDataImport< dim >::map ( ) const
inline

◆ num_fct()

template<int dim>
size_t ug::IDataImport< dim >::num_fct ( ) const
inline

◆ part()

template<int dim>
DiscPart ug::IDataImport< dim >::part ( ) const
inline

returns if import is located in mass part (for time dependent problems)

References ug::IDataImport< dim >::m_part.

Referenced by ug::DataEvaluatorBase< TDomain, TElemDisc >::extract_imports_and_userdata(), and ug::IDataImport< dim >::set_part().

◆ set_comp_lin_defect()

template<int dim>
void ug::IDataImport< dim >::set_comp_lin_defect ( bool  b)
inline

sets if lin defect is to be computed

References ug::IDataImport< dim >::m_bCompLinDefect.

◆ set_expl_part()

template<int dim>
void ug::IDataImport< dim >::set_expl_part ( )
inline

set to explicit part

References ug::EXPL, and ug::IDataImport< dim >::m_part.

◆ set_map()

template<int dim>
void ug::IDataImport< dim >::set_map ( const FunctionIndexMapping map)
inline

set function group for linearization of defect

References ug::IDataImport< dim >::m_map, and ug::IDataImport< dim >::map().

◆ set_mass_part()

template<int dim>
void ug::IDataImport< dim >::set_mass_part ( )
inline

sets if import is located in mass part (for time dependent problems)

References ug::IDataImport< dim >::m_part, and ug::MASS.

◆ set_none_part()

template<int dim>
void ug::IDataImport< dim >::set_none_part ( )
inline

set to no part

References ug::IDataImport< dim >::m_part, and ug::NONE.

◆ set_part()

template<int dim>
void ug::IDataImport< dim >::set_part ( DiscPart  part)
inline

sets part of import

References ug::IDataImport< dim >::m_part, and ug::IDataImport< dim >::part().

◆ set_rhs_part()

template<int dim>
void ug::IDataImport< dim >::set_rhs_part ( )
inline

sets if import is located in rhs part

References ug::IDataImport< dim >::m_part, and ug::RHS.

◆ set_roid()

template<int dim>
virtual void ug::IDataImport< dim >::set_roid ( ReferenceObjectID  id)
pure virtual

◆ set_stiff_part()

template<int dim>
void ug::IDataImport< dim >::set_stiff_part ( )
inline

sets if import is located in stiff part (default)

References ug::IDataImport< dim >::m_part, and ug::STIFF.

◆ update_dof_sizes()

template<int dim>
virtual void ug::IDataImport< dim >::update_dof_sizes ( const LocalIndices ind)
pure virtual

◆ zero_derivative()

template<int dim>
bool ug::IDataImport< dim >::zero_derivative ( ) const
inline

returns if data depends on unknown functions

This method returns if the data depends on the unknown functions.

References ug::IDataImport< dim >::m_bCompLinDefect, and ug::IDataImport< dim >::m_spICplUserData.

Referenced by ug::DataEvaluatorBase< TDomain, TElemDisc >::extract_imports_and_userdata().

Member Data Documentation

◆ m_bCompLinDefect

template<int dim>
bool ug::IDataImport< dim >::m_bCompLinDefect
protected

indicates iff lin defect should be computed

Referenced by ug::IDataImport< dim >::set_comp_lin_defect(), and ug::IDataImport< dim >::zero_derivative().

◆ m_map

template<int dim>
FunctionIndexMapping ug::IDataImport< dim >::m_map
protected

◆ m_part

◆ m_spICplUserData

template<int dim>
SmartPtr<ICplUserData<dim> > ug::IDataImport< dim >::m_spICplUserData
protected

The documentation for this class was generated from the following file: