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

Prescribes an average displacement gradient based on microperiodicity. More...

#include <prescribedgradientbcperiodic.h>

+ Inheritance diagram for oofem::PrescribedGradientBCPeriodic:
+ Collaboration diagram for oofem::PrescribedGradientBCPeriodic:

Public Member Functions

 PrescribedGradientBCPeriodic (int n, Domain *d)
 
virtual ~PrescribedGradientBCPeriodic ()
 
virtual IRResultType initializeFrom (InputRecord *ir)
 Initializes receiver according to object description stored in input record. More...
 
virtual void giveInputRecord (DynamicInputRecord &input)
 
virtual void postInitialize ()
 Performs post initialization steps. More...
 
virtual int giveNumberOfInternalDofManagers ()
 Gives the number of internal dof managers. More...
 
virtual DofManagergiveInternalDofManager (int i)
 Gives an internal dof manager from receiver. More...
 
virtual int giveNumberOfMasterDofs (ActiveDof *dof)
 Allows for active boundary conditions to handle their own special DOF. More...
 
virtual DofgiveMasterDof (ActiveDof *dof, int mdof)
 Give the pointer to master dof belonging to active DOF. More...
 
virtual void computeDofTransformation (ActiveDof *dof, FloatArray &masterContribs)
 
virtual void computeField (FloatArray &sigma, TimeStep *tStep)
 Computes the homogenized, macroscopic, field (stress). More...
 
virtual void computeTangent (FloatMatrix &E, TimeStep *tStep)
 Computes the macroscopic tangent for homogenization problems through sensitivity analysis. More...
 
double giveUnknown (double val, ValueModeType mode, TimeStep *tStep, ActiveDof *dof)
 
virtual double giveUnknown (PrimaryField &field, ValueModeType mode, TimeStep *tStep, ActiveDof *dof)
 Computes the value of the dof. More...
 
virtual double giveUnknown (ValueModeType mode, TimeStep *tStep, ActiveDof *dof)
 Computes the value of the dof. More...
 
virtual bool isPrimaryDof (ActiveDof *dof)
 Checks to see if the dof is a primary DOF. More...
 
virtual double giveBcValue (Dof *dof, ValueModeType mode, TimeStep *tStep)
 Returns the prescribed value of a dof (if any). More...
 
virtual bool hasBc (Dof *dof, TimeStep *tStep)
 Returns the prescribed value of a dof (if any). More...
 
bool isStrainDof (Dof *dof)
 
virtual bool requiresActiveDofs ()
 Checks to see if active boundary condition requires special DOFs. More...
 
virtual const char * giveClassName () const
 
virtual const char * giveInputRecordName () const
 
- Public Member Functions inherited from oofem::ActiveBoundaryCondition
 ActiveBoundaryCondition (int n, Domain *d)
 Constructor. More...
 
virtual ~ActiveBoundaryCondition ()
 Destructor. More...
 
virtual void assemble (SparseMtrx &answer, TimeStep *tStep, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s, double scale=1.0)
 Assembles B.C. More...
 
virtual void assembleVector (FloatArray &answer, TimeStep *tStep, CharType type, ValueModeType mode, const UnknownNumberingScheme &s, FloatArray *eNorms=NULL)
 Assembles B.C. More...
 
virtual void giveLocationArrays (std::vector< IntArray > &rows, std::vector< IntArray > &cols, CharType type, const UnknownNumberingScheme &r_s, const UnknownNumberingScheme &c_s)
 Gives a list of location arrays that will be assembled. More...
 
virtual void addElementSide (int elem, int side)
 Adds element for active boundary condition. More...
 
- Public Member Functions inherited from oofem::GeneralBoundaryCondition
 GeneralBoundaryCondition (int n, Domain *d)
 Constructor. More...
 
virtual ~GeneralBoundaryCondition ()
 Destructor. More...
 
int giveSetNumber ()
 Gives the set number which boundary condition is applied to. More...
 
FunctiongiveTimeFunction ()
 
virtual bcValType giveBCValType () const
 Returns receiver load type. More...
 
virtual bool isImposed (TimeStep *tStep)
 Returns nonzero if receiver representing BC is imposed at given time, otherwise returns zero. More...
 
virtual const IntArraygiveDofIDs () const
 Array with default dofs which b.c. More...
 
virtual bcType giveType () const
 
virtual bcGeomType giveBCGeoType () const
 Returns geometry character of boundary condition. More...
 
virtual void scale (double s)
 Scales the receiver according to given value. 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...
 
- 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 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...
 
- Public Member Functions inherited from oofem::PrescribedGradientHomogenization
 PrescribedGradientHomogenization ()
 
virtual ~PrescribedGradientHomogenization ()
 
virtual double domainSize ()
 
void setPrescribedGradient (const FloatMatrix &t)
 Set prescribed gradient. More...
 
void setPrescribedGradientVoigt (const FloatArray &t)
 Sets the prescribed gradient from the matrix from given voigt notation. More...
 
void giveGradientVoigt (FloatArray &oGradient) const
 Gives back the applied gradient in Voigt form. More...
 
void setCenterCoordinate (FloatArray &x)
 Set the center coordinate for the prescribed values to be set for. More...
 
FloatArraygiveCenterCoordinate ()
 Returns the center coordinate. More...
 

Protected Member Functions

void findSlaveToMasterMap ()
 This is the central support function, which finds the corresponding slave nodes for each master node. More...
 
- Protected Member Functions inherited from oofem::PrescribedGradientHomogenization
virtual double domainSize (Domain *d, int set)
 

Protected Attributes

std::unique_ptr< Nodestrain
 
IntArray strain_id
 
std::map< int, int > slavemap
 
FloatArray jump
 
int masterSet
 
- Protected Attributes inherited from oofem::GeneralBoundaryCondition
int timeFunction
 Associated load time function. More...
 
bcValType valType
 Physical meaning of BC value. More...
 
IntArray dofs
 Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s). More...
 
int isImposedTimeFunction
 Zero by default - the BC is than always imposed. More...
 
int set
 Set number for boundary condition to be applied to. More...
 
- Protected Attributes inherited from oofem::FEMComponent
int number
 Component number. More...
 
Domaindomain
 Link to domain object, useful for communicating with other FEM components. More...
 
- Protected Attributes inherited from oofem::PrescribedGradientHomogenization
FloatMatrix mGradient
 Prescribed gradient $ d_{ij} $. More...
 
FloatArray mCenterCoord
 Center coordinate $ \bar{x}_i $. More...
 

Detailed Description

Prescribes an average displacement gradient based on microperiodicity.

Note
Nodes on either master or slave side may NOT have local coordinate systems.
Author
Mikael Öhman

Definition at line 60 of file prescribedgradientbcperiodic.h.

Constructor & Destructor Documentation

oofem::PrescribedGradientBCPeriodic::PrescribedGradientBCPeriodic ( int  n,
Domain d 
)
oofem::PrescribedGradientBCPeriodic::~PrescribedGradientBCPeriodic ( )
virtual

Definition at line 82 of file prescribedgradientbcperiodic.C.

Member Function Documentation

double oofem::PrescribedGradientBCPeriodic::giveBcValue ( Dof dof,
ValueModeType  mode,
TimeStep tStep 
)
virtual
virtual const char* oofem::PrescribedGradientBCPeriodic::giveClassName ( ) const
inlinevirtual
virtual const char* oofem::PrescribedGradientBCPeriodic::giveInputRecordName ( ) const
inlinevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 104 of file prescribedgradientbcperiodic.h.

References _IFT_PrescribedGradientBCPeriodic_Name.

DofManager * oofem::PrescribedGradientBCPeriodic::giveInternalDofManager ( int  i)
virtual

Gives an internal dof manager from receiver.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 93 of file prescribedgradientbcperiodic.C.

References strain.

Dof * oofem::PrescribedGradientBCPeriodic::giveMasterDof ( ActiveDof dof,
int  mdof 
)
virtual

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 154 of file prescribedgradientbcperiodic.C.

References oofem::FEMComponent::domain, oofem::DofManager::giveCoordinates(), oofem::Dof::giveDofID(), oofem::Dof::giveDofManager(), oofem::Domain::giveDofManager(), oofem::DofManager::giveDofWithID(), oofem::FEMComponent::giveNumber(), oofem::FloatArray::giveSize(), isStrainDof(), slavemap, strain, and strain_id.

int oofem::PrescribedGradientBCPeriodic::giveNumberOfInternalDofManagers ( )
virtual

Gives the number of internal dof managers.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 87 of file prescribedgradientbcperiodic.C.

int oofem::PrescribedGradientBCPeriodic::giveNumberOfMasterDofs ( ActiveDof dof)
virtual

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 145 of file prescribedgradientbcperiodic.C.

References oofem::FEMComponent::giveDomain(), oofem::Domain::giveNumberOfSpatialDimensions(), and isStrainDof().

double oofem::PrescribedGradientBCPeriodic::giveUnknown ( PrimaryField field,
ValueModeType  mode,
TimeStep tStep,
ActiveDof dof 
)
virtual
double oofem::PrescribedGradientBCPeriodic::giveUnknown ( ValueModeType  mode,
TimeStep tStep,
ActiveDof dof 
)
virtual
bool oofem::PrescribedGradientBCPeriodic::hasBc ( Dof dof,
TimeStep tStep 
)
virtual

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

Returns
True if dof is prescribed.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 359 of file prescribedgradientbcperiodic.C.

References isStrainDof().

IRResultType oofem::PrescribedGradientBCPeriodic::initializeFrom ( InputRecord ir)
virtual

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.

See also
IR_GIVE_FIELD
IR_GIVE_OPTIONAL_FIELD
Parameters
irInput record to initialize from.
Returns
IRResultType

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 371 of file prescribedgradientbcperiodic.C.

References _IFT_PrescribedGradientBCPeriodic_jump, _IFT_PrescribedGradientBCPeriodic_masterSet, oofem::ActiveBoundaryCondition::initializeFrom(), oofem::PrescribedGradientHomogenization::initializeFrom(), IR_GIVE_FIELD, jump, and masterSet.

bool oofem::PrescribedGradientBCPeriodic::isPrimaryDof ( ActiveDof dof)
virtual

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 342 of file prescribedgradientbcperiodic.C.

References isStrainDof().

bool oofem::PrescribedGradientBCPeriodic::isStrainDof ( Dof dof)
void oofem::PrescribedGradientBCPeriodic::postInitialize ( )
virtual

Performs post initialization steps.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 392 of file prescribedgradientbcperiodic.C.

References findSlaveToMasterMap().

virtual bool oofem::PrescribedGradientBCPeriodic::requiresActiveDofs ( )
inlinevirtual

Checks to see if active boundary condition requires special DOFs.

Returns
True if ActiveDof should be created.

Reimplemented from oofem::ActiveBoundaryCondition.

Definition at line 101 of file prescribedgradientbcperiodic.h.

Member Data Documentation

FloatArray oofem::PrescribedGradientBCPeriodic::jump
protected
int oofem::PrescribedGradientBCPeriodic::masterSet
protected
std :: map< int, int > oofem::PrescribedGradientBCPeriodic::slavemap
protected
std :: unique_ptr< Node > oofem::PrescribedGradientBCPeriodic::strain
protected
IntArray oofem::PrescribedGradientBCPeriodic::strain_id
protected

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:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011