OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::HeavisideFunction Class Reference

Class representing Heaviside EnrichmentFunction. More...

#include <enrichmentfunction.h>

+ Inheritance diagram for oofem::HeavisideFunction:
+ Collaboration diagram for oofem::HeavisideFunction:

Public Member Functions

 HeavisideFunction (int n, Domain *aDomain)
 
virtual void evaluateEnrFuncAt (double &oEnrFunc, const FloatArray &iPos, const double &iLevelSet) const
 
virtual void evaluateEnrFuncDerivAt (FloatArray &oEnrFuncDeriv, const FloatArray &iPos, const double &iLevelSet, const FloatArray &iGradLevelSet) const
 
virtual void giveJump (std::vector< double > &oJumps) const
 Returns the discontinuous jump in the enrichment function when the lvel set function changes sign, e.g. More...
 
virtual const char * giveClassName () const
 
virtual const char * giveInputRecordName () const
 
- Public Member Functions inherited from oofem::EnrichmentFunction
 EnrichmentFunction (int n, Domain *aDomain)
 Constructor. More...
 
virtual ~EnrichmentFunction ()
 Destructor. More...
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
virtual void giveInputRecord (DynamicInputRecord &input)
 Setups the input record string of receiver. More...
 
int giveNumberOfDofs () const
 
- Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
 Regular constructor, creates component with given number and belonging to given domain. More...
 
virtual ~FEMComponent ()
 Virtual destructor. More...
 
DomaingiveDomain () const
 
virtual void setDomain (Domain *d)
 Sets associated Domain. More...
 
int giveNumber () const
 
void setNumber (int num)
 Sets number of receiver. More...
 
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
 Local renumbering support. More...
 
virtual contextIOResultType saveContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Stores receiver state to output stream. More...
 
virtual contextIOResultType restoreContext (DataStream &stream, ContextMode mode, void *obj=NULL)
 Restores the receiver state previously written in stream. More...
 
virtual int checkConsistency ()
 Allows programmer to test some internal data, before computation begins. More...
 
virtual void printOutputAt (FILE *file, TimeStep *tStep)
 Prints output of receiver to stream, for given time step. More...
 
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging. More...
 
virtual InterfacegiveInterface (InterfaceType t)
 Interface requesting service. More...
 
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros). More...
 

Additional Inherited Members

- Protected Attributes inherited from oofem::EnrichmentFunction
int numberOfDofs
 
- Protected Attributes inherited from oofem::FEMComponent
int number
 Component number. More...
 
Domaindomain
 Link to domain object, useful for communicating with other FEM components. More...
 

Detailed Description

Class representing Heaviside EnrichmentFunction.

Author
Erik Svenning

Definition at line 118 of file enrichmentfunction.h.

Constructor & Destructor Documentation

oofem::HeavisideFunction::HeavisideFunction ( int  n,
Domain aDomain 
)
inline

Definition at line 121 of file enrichmentfunction.h.

Member Function Documentation

void oofem::HeavisideFunction::evaluateEnrFuncAt ( double &  oEnrFunc,
const FloatArray iPos,
const double &  iLevelSet 
) const
virtual

Implements oofem::EnrichmentFunction.

Definition at line 68 of file enrichmentfunction.C.

void oofem::HeavisideFunction::evaluateEnrFuncDerivAt ( FloatArray oEnrFuncDeriv,
const FloatArray iPos,
const double &  iLevelSet,
const FloatArray iGradLevelSet 
) const
virtual
virtual const char* oofem::HeavisideFunction::giveClassName ( ) const
inlinevirtual
Returns
Class name of the receiver.

Reimplemented from oofem::EnrichmentFunction.

Definition at line 133 of file enrichmentfunction.h.

virtual const char* oofem::HeavisideFunction::giveInputRecordName ( ) const
inlinevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 134 of file enrichmentfunction.h.

References _IFT_HeavisideFunction_Name.

virtual void oofem::HeavisideFunction::giveJump ( std::vector< double > &  oJumps) const
inlinevirtual

Returns the discontinuous jump in the enrichment function when the lvel set function changes sign, e.g.

1.0 for Heaviside, 2.0 for Sign and 0.0 for abs enrichment. Used for combination of cohesive zones and XFEM.

Implements oofem::EnrichmentFunction.

Definition at line 128 of file enrichmentfunction.h.


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

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:36 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011