OOFEM 3.0
Loading...
Searching...
No Matches
oofem::SolutionbasedShapeFunction Class Reference

#include <solutionbasedshapefunction.h>

Inheritance diagram for oofem::SolutionbasedShapeFunction:
Collaboration diagram for oofem::SolutionbasedShapeFunction:

Public Member Functions

 SolutionbasedShapeFunction (int n, Domain *d)
virtual ~SolutionbasedShapeFunction ()
void initializeFrom (InputRecord &ir) override
bool requiresActiveDofs () override
int giveNumberOfInternalDofManagers () override
 Gives the number of internal dof managers.
DofManagergiveInternalDofManager (int i) override
 Gives an internal dof manager from receiver.
double giveUnknown (PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof) override
double giveUnknown (ValueModeType mode, TimeStep *tStep, ActiveDof *dof) override
bool hasBc (Dof *dof, TimeStep *tStep) override
bool isPrimaryDof (ActiveDof *dof) override
void computeDofTransformation (ActiveDof *dof, FloatArray &masterContribs) override
int giveNumberOfMasterDofs (ActiveDof *dof) override
DofgiveMasterDof (ActiveDof *dof, int mdof) override
const char * giveClassName () const override
const char * giveInputRecordName () const override
double checkIncompressibility (EngngModel &myEngngModel)
Public Member Functions inherited from oofem::ActiveBoundaryCondition
 ActiveBoundaryCondition (int n, Domain *d)
virtual ~ActiveBoundaryCondition ()
 Destructor.
virtual void addElementSide (int elem, int side)
virtual void assemble (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale=1.0, void *lock=nullptr)
virtual void assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorms=nullptr, void *lock=nullptr)
virtual void giveLocationArrays (std ::vector< IntArray > &rows, std ::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s)
virtual double giveBcValue (Dof *dof, ValueModeType mode, TimeStep *tStep)
Public Member Functions inherited from oofem::GeneralBoundaryCondition
 GeneralBoundaryCondition (int n, Domain *d)
virtual ~GeneralBoundaryCondition ()
 Destructor.
int giveSetNumber () const
FunctiongiveTimeFunction ()
int getIsImposedTimeFunctionNumber () const
void setIsImposedTimeFunctionNumber (int funcIndx)
virtual bcValType giveBCValType () const
virtual bool isImposed (TimeStep *tStep)
virtual const IntArraygiveDofIDs () const
virtual bcType giveType () const
virtual bcGeomType giveBCGeoType () const
virtual void scale (double s)
virtual double giveProperty (int aProperty, TimeStep *tStep) const
void giveInputRecord (DynamicInputRecord &input) override
void saveContext (DataStream &stream, ContextMode mode) override
void restoreContext (DataStream &stream, ContextMode mode) override
virtual void updateYourself (TimeStep *tStep)
Public Member Functions inherited from oofem::FEMComponent
 FEMComponent (int n, Domain *d)
virtual ~FEMComponent ()=default
 Virtual destructor.
DomaingiveDomain () const
virtual void setDomain (Domain *d)
int giveNumber () const
void setNumber (int num)
virtual void updateLocalNumbering (EntityRenumberingFunctor &f)
virtual void initializeFrom (InputRecord &ir, int priority)
virtual void initializeFinish ()
virtual void postInitialize ()
 Performs post initialization steps. Called after all components are created and initialized.
virtual int checkConsistency ()
virtual void printOutputAt (FILE *file, TimeStep *tStep)
virtual void printYourself ()
 Prints receiver state on stdout. Useful for debugging.
virtual InterfacegiveInterface (InterfaceType t)
std::string errorInfo (const char *func) const
 Returns string for prepending output (used by error reporting macros).

Private Member Functions

bool isCoeff (ActiveDof *dof)
void updateModelWithFactors (modeStruct &m)
void setBoundaryConditionOnDof (Dof *d, double value)
void setLoads (EngngModel &myEngngModel, int d)
void loadProblem ()
void init ()
void computeCorrectionFactors (modeStruct &myMode, IntArray &Dofs, double &am, double &ap)
void giveValueAtPoint (FloatArray &answer, const FloatArray &coords, IntArray &dofID, EngngModel &myEngngModel)
 giveValueAtPoint
void giveCorrectedValueAtPoint (FloatArray &answer, const FloatArray &coords, IntArray &dofID, EngngModel &myEngngModel)
void splitBoundaryNodeIDs (modeStruct &mode, Element &e, IntArray &boundary, IntArray &pList, IntArray &mList, IntArray &zList, FloatMatrix &nodeValues)
void computeBaseFunctionValueAt (FloatArray &answer, const FloatArray &coords, IntArray &dofIDs, EngngModel &myEngngModel)
void initializeSurfaceData (modeStruct &mode)
void copyDofManagersToSurfaceData (modeStruct &mode, IntArray nodeList, bool isPlus, bool isMinus, bool isZero)
void whichBoundary (const FloatArray &coord, bool &isPlus, bool &isMinus, bool &isZero)

Private Attributes

NodemyNode
IntArray myDofIDs
int externalSet
int order
double TOL
std::string filename
bool useConstantBase
bool isLoaded
bool useCorrectionFactors
bool dumpSnapshot
double bigNorm
int worstIndex
std ::vector< modeStructmodes
TimeStepthisTimestep
FloatArray maxCoord
FloatArray minCoord

Additional Inherited Members

Protected Attributes inherited from oofem::GeneralBoundaryCondition
int timeFunction
 Associated load time function.
bcValType valType
 Physical meaning of BC value.
IntArray dofs
 Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s).
int isImposedTimeFunction
int set
 Set number for boundary condition to be applied to.
Protected Attributes inherited from oofem::FEMComponent
int number
 Component number.
Domaindomain
 Link to domain object, useful for communicating with other FEM components.

Detailed Description

Definition at line 88 of file solutionbasedshapefunction.h.

Constructor & Destructor Documentation

◆ SolutionbasedShapeFunction()

oofem::SolutionbasedShapeFunction::SolutionbasedShapeFunction ( int n,
Domain * d )

◆ ~SolutionbasedShapeFunction()

virtual oofem::SolutionbasedShapeFunction::~SolutionbasedShapeFunction ( )
inlinevirtual

Definition at line 146 of file solutionbasedshapefunction.h.

Member Function Documentation

◆ checkIncompressibility()

double oofem::SolutionbasedShapeFunction::checkIncompressibility ( EngngModel & myEngngModel)

◆ computeBaseFunctionValueAt()

◆ computeCorrectionFactors()

◆ computeDofTransformation()

◆ copyDofManagersToSurfaceData()

void oofem::SolutionbasedShapeFunction::copyDofManagersToSurfaceData ( modeStruct & mode,
IntArray nodeList,
bool isPlus,
bool isMinus,
bool isZero )
private

◆ giveClassName()

const char * oofem::SolutionbasedShapeFunction::giveClassName ( ) const
inlineoverridevirtual
Returns
Class name of the receiver.

Implements oofem::FEMComponent.

Definition at line 166 of file solutionbasedshapefunction.h.

◆ giveCorrectedValueAtPoint()

void oofem::SolutionbasedShapeFunction::giveCorrectedValueAtPoint ( FloatArray & answer,
const FloatArray & coords,
IntArray & dofID,
EngngModel & myEngngModel )
private

◆ giveInputRecordName()

const char * oofem::SolutionbasedShapeFunction::giveInputRecordName ( ) const
inlineoverridevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 167 of file solutionbasedshapefunction.h.

References _IFT_SolutionbasedShapeFunction_Name.

◆ giveInternalDofManager()

DofManager * oofem::SolutionbasedShapeFunction::giveInternalDofManager ( int i)
overridevirtual

Gives an internal dof manager from receiver.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 107 of file solutionbasedshapefunction.C.

References myNode.

Referenced by oofem::MatlabExportModule::doOutputSpecials().

◆ giveMasterDof()

Dof * oofem::SolutionbasedShapeFunction::giveMasterDof ( ActiveDof * dof,
int mdof )
overridevirtual

Give the pointer to master dof belonging to active DOF.

Parameters
dofActive dof belonging to receiver.
mdofLocal master dof number.
Returns
Master dof.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 350 of file solutionbasedshapefunction.C.

References myDofIDs, and myNode.

◆ giveNumberOfInternalDofManagers()

int oofem::SolutionbasedShapeFunction::giveNumberOfInternalDofManagers ( )
inlineoverridevirtual

Gives the number of internal dof managers.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 151 of file solutionbasedshapefunction.h.

◆ giveNumberOfMasterDofs()

int oofem::SolutionbasedShapeFunction::giveNumberOfMasterDofs ( ActiveDof * dof)
overridevirtual

Allows for active boundary conditions to handle their own special DOF.

Parameters
dofActive dof belonging to receiver.
Returns
Number of primary master DOFs.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 344 of file solutionbasedshapefunction.C.

References oofem::FEMComponent::giveDomain().

◆ giveUnknown() [1/2]

double oofem::SolutionbasedShapeFunction::giveUnknown ( PrimaryField & field,
ValueModeType mode,
TimeStep * tStep,
ActiveDof * dof )
overridevirtual

Computes the value of the dof.

Parameters
fieldField to take value from.
modeMode of unknown value.
tStepTime step.
dofActive dof for which to obtain the value.
Returns
Value of dof.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 272 of file solutionbasedshapefunction.C.

References giveUnknown().

Referenced by giveUnknown().

◆ giveUnknown() [2/2]

double oofem::SolutionbasedShapeFunction::giveUnknown ( ValueModeType mode,
TimeStep * tStep,
ActiveDof * dof )
overridevirtual

Computes the value of the dof.

Parameters
modeMode of unknown value.
tStepTime step.
dofActive dof for which to obtain the value.
Returns
Value of dof.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 278 of file solutionbasedshapefunction.C.

References computeDofTransformation(), oofem::FloatArray::dotProduct(), myDofIDs, and myNode.

◆ giveValueAtPoint()

void oofem::SolutionbasedShapeFunction::giveValueAtPoint ( FloatArray & answer,
const FloatArray & coords,
IntArray & dofID,
EngngModel & myEngngModel )
private

giveValueAtPoint

Parameters
answerValues as point corresponding to the coordinate and dofID
coordsCoordinated at which evaluation takes place
dofIDSpecifies DofIDs to evaluate
myEngngModelEngngModel

Definition at line 573 of file solutionbasedshapefunction.C.

References oofem::FloatArray::at(), oofem::IntArray::at(), oofem::Element::computeField(), oofem::EngngModel::giveDomain(), oofem::SpatialLocalizer::giveElementClosestToPoint(), oofem::Element::giveElementDofIDMask(), oofem::IntArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), OOFEM_WARNING, oofem::FloatArray::pY(), oofem::FloatArray::resize(), and thisTimestep.

Referenced by computeBaseFunctionValueAt().

◆ hasBc()

bool oofem::SolutionbasedShapeFunction::hasBc ( Dof * dof,
TimeStep * tStep )
inlineoverridevirtual

Returns the prescribed value of a dof (if any).

Returns
True if dof is prescribed.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 157 of file solutionbasedshapefunction.h.

◆ init()

void oofem::SolutionbasedShapeFunction::init ( )
private

◆ initializeFrom()

void oofem::SolutionbasedShapeFunction::initializeFrom ( InputRecord & ir)
overridevirtual

Initializes receiver according to object description stored in input record. This function is called immediately after creating object using constructor. Input record can be imagined as data record in component database belonging to receiver. Receiver may use value-name extracting functions to extract particular field from record. Note that initializeFrom may be called mutiple times.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
priorityPriority of the input record. This is used to determine the order of initialization
Todo
This should be in the constructor:

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 73 of file solutionbasedshapefunction.C.

References _IFT_SolutionbasedShapeFunction_DumpSnapshots, _IFT_SolutionbasedShapeFunction_Externalset, _IFT_SolutionbasedShapeFunction_ShapeFunctionFile, _IFT_SolutionbasedShapeFunction_UseCorrectionFactors, oofem::FEMComponent::domain, dumpSnapshot, externalSet, filename, oofem::FEMComponent::giveDomain(), init(), IR_GIVE_OPTIONAL_FIELD, myNode, useConstantBase, and useCorrectionFactors.

◆ initializeSurfaceData()

◆ isCoeff()

bool oofem::SolutionbasedShapeFunction::isCoeff ( ActiveDof * dof)
private

Definition at line 113 of file solutionbasedshapefunction.C.

References myNode.

◆ isPrimaryDof()

bool oofem::SolutionbasedShapeFunction::isPrimaryDof ( ActiveDof * dof)
inlineoverridevirtual

Checks to see if the dof is a primary DOF.

Returns
True if ActiveDof is a primary DOF.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 159 of file solutionbasedshapefunction.h.

◆ loadProblem()

◆ requiresActiveDofs()

bool oofem::SolutionbasedShapeFunction::requiresActiveDofs ( )
inlineoverridevirtual

Checks to see if active boundary condition requires special DOFs.

Returns
True if ActiveDof should be created.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 150 of file solutionbasedshapefunction.h.

◆ setBoundaryConditionOnDof()

◆ setLoads()

◆ splitBoundaryNodeIDs()

◆ updateModelWithFactors()

◆ whichBoundary()

void oofem::SolutionbasedShapeFunction::whichBoundary ( const FloatArray & coord,
bool & isPlus,
bool & isMinus,
bool & isZero )
private

Member Data Documentation

◆ bigNorm

double oofem::SolutionbasedShapeFunction::bigNorm
private

Definition at line 103 of file solutionbasedshapefunction.h.

◆ dumpSnapshot

bool oofem::SolutionbasedShapeFunction::dumpSnapshot
private

Definition at line 101 of file solutionbasedshapefunction.h.

Referenced by initializeFrom(), and loadProblem().

◆ externalSet

int oofem::SolutionbasedShapeFunction::externalSet
private

Definition at line 93 of file solutionbasedshapefunction.h.

Referenced by computeCorrectionFactors(), and initializeFrom().

◆ filename

std::string oofem::SolutionbasedShapeFunction::filename
private

Definition at line 96 of file solutionbasedshapefunction.h.

Referenced by initializeFrom(), and loadProblem().

◆ isLoaded

bool oofem::SolutionbasedShapeFunction::isLoaded
private

◆ maxCoord

FloatArray oofem::SolutionbasedShapeFunction::maxCoord
private

◆ minCoord

FloatArray oofem::SolutionbasedShapeFunction::minCoord
private

◆ modes

std :: vector< modeStruct > oofem::SolutionbasedShapeFunction::modes
private

Definition at line 108 of file solutionbasedshapefunction.h.

Referenced by computeDofTransformation(), and loadProblem().

◆ myDofIDs

IntArray oofem::SolutionbasedShapeFunction::myDofIDs
private

Definition at line 92 of file solutionbasedshapefunction.h.

Referenced by giveMasterDof(), and giveUnknown().

◆ myNode

Node* oofem::SolutionbasedShapeFunction::myNode
private

◆ order

int oofem::SolutionbasedShapeFunction::order
private

Definition at line 94 of file solutionbasedshapefunction.h.

Referenced by computeCorrectionFactors().

◆ thisTimestep

TimeStep* oofem::SolutionbasedShapeFunction::thisTimestep
private

Definition at line 111 of file solutionbasedshapefunction.h.

Referenced by giveValueAtPoint(), and loadProblem().

◆ TOL

double oofem::SolutionbasedShapeFunction::TOL
private

Definition at line 95 of file solutionbasedshapefunction.h.

Referenced by computeBaseFunctionValueAt(), and whichBoundary().

◆ useConstantBase

bool oofem::SolutionbasedShapeFunction::useConstantBase
private

Definition at line 97 of file solutionbasedshapefunction.h.

Referenced by computeBaseFunctionValueAt(), and initializeFrom().

◆ useCorrectionFactors

bool oofem::SolutionbasedShapeFunction::useCorrectionFactors
private

Definition at line 100 of file solutionbasedshapefunction.h.

Referenced by initializeFrom(), and loadProblem().

◆ worstIndex

int oofem::SolutionbasedShapeFunction::worstIndex
private

Definition at line 104 of file solutionbasedshapefunction.h.


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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011