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

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

#include <transportgradientperiodic.h>

+ Inheritance diagram for oofem::TransportGradientPeriodic:
+ Collaboration diagram for oofem::TransportGradientPeriodic:

Public Member Functions

 TransportGradientPeriodic (int n, Domain *d)
 
virtual ~TransportGradientPeriodic ()
 
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...
 
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)
 
virtual void computeTangent (FloatMatrix &E, TimeStep *tStep)
 
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 isGradDof (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...
 

Protected Member Functions

void findSlaveToMasterMap ()
 This is the central support function, which finds the corresponding slave nodes for each master node. More...
 
virtual double domainSize (Domain *d, int setNum)
 

Protected Attributes

FloatArray mGradient
 
FloatArray mCenterCoord
 
std::unique_ptr< Nodegrad
 
IntArray grad_ids
 
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...
 

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 62 of file transportgradientperiodic.h.

Constructor & Destructor Documentation

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

Definition at line 80 of file transportgradientperiodic.C.

Member Function Documentation

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

Implements oofem::FEMComponent.

Definition at line 110 of file transportgradientperiodic.h.

void oofem::TransportGradientPeriodic::giveInputRecord ( DynamicInputRecord input)
virtual
virtual const char* oofem::TransportGradientPeriodic::giveInputRecordName ( ) const
inlinevirtual
Returns
Input record name of the receiver.

Implements oofem::FEMComponent.

Definition at line 111 of file transportgradientperiodic.h.

References _IFT_TransportGradientPeriodic_Name.

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

Gives an internal dof manager from receiver.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 91 of file transportgradientperiodic.C.

References grad.

Dof * oofem::TransportGradientPeriodic::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 172 of file transportgradientperiodic.C.

References oofem::FEMComponent::domain, oofem::Dof::giveDofID(), oofem::Dof::giveDofManager(), oofem::Domain::giveDofManager(), oofem::DofManager::giveDofWithID(), oofem::FEMComponent::giveNumber(), grad, grad_ids, isGradDof(), and slavemap.

int oofem::TransportGradientPeriodic::giveNumberOfInternalDofManagers ( )
virtual

Gives the number of internal dof managers.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 85 of file transportgradientperiodic.C.

int oofem::TransportGradientPeriodic::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 163 of file transportgradientperiodic.C.

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

double oofem::TransportGradientPeriodic::giveUnknown ( PrimaryField field,
ValueModeType  mode,
TimeStep tStep,
ActiveDof dof 
)
virtual
double oofem::TransportGradientPeriodic::giveUnknown ( ValueModeType  mode,
TimeStep tStep,
ActiveDof dof 
)
virtual
bool oofem::TransportGradientPeriodic::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 395 of file transportgradientperiodic.C.

References isGradDof().

IRResultType oofem::TransportGradientPeriodic::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 407 of file transportgradientperiodic.C.

References _IFT_TransportGradientPeriodic_centerCoords, _IFT_TransportGradientPeriodic_gradient, _IFT_TransportGradientPeriodic_jump, _IFT_TransportGradientPeriodic_masterSet, oofem::ActiveBoundaryCondition::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, jump, masterSet, mCenterCoord, and mGradient.

bool oofem::TransportGradientPeriodic::isGradDof ( Dof dof)
bool oofem::TransportGradientPeriodic::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 382 of file transportgradientperiodic.C.

References isGradDof().

void oofem::TransportGradientPeriodic::postInitialize ( )
virtual

Performs post initialization steps.

Reimplemented from oofem::GeneralBoundaryCondition.

Definition at line 435 of file transportgradientperiodic.C.

References findSlaveToMasterMap().

virtual bool oofem::TransportGradientPeriodic::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 108 of file transportgradientperiodic.h.

Member Data Documentation

std :: unique_ptr< Node > oofem::TransportGradientPeriodic::grad
protected
IntArray oofem::TransportGradientPeriodic::grad_ids
protected
FloatArray oofem::TransportGradientPeriodic::jump
protected
int oofem::TransportGradientPeriodic::masterSet
protected
FloatArray oofem::TransportGradientPeriodic::mCenterCoord
protected

Definition at line 66 of file transportgradientperiodic.h.

Referenced by computeTangent(), giveInputRecord(), and initializeFrom().

FloatArray oofem::TransportGradientPeriodic::mGradient
protected
std :: map< int, int > oofem::TransportGradientPeriodic::slavemap
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:43 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011