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

Prescribes $ u_i = d_{ij}(x_j-\bar{x}_j) $ or $ s = d_{1j}(x_j - \bar{x}_j) $ where $ v_i $ are primary unknowns for the subscale. More...

#include <prescribedgenstrainshell7.h>

+ Inheritance diagram for oofem::PrescribedGenStrainShell7:
+ Collaboration diagram for oofem::PrescribedGenStrainShell7:

Public Member Functions

 PrescribedGenStrainShell7 (int n, Domain *d)
 Creates boundary condition with given number, belonging to given domain. More...
 
virtual ~PrescribedGenStrainShell7 ()
 Destructor. More...
 
virtual double give (Dof *dof, ValueModeType mode, double time)
 
virtual bcType giveType () const
 
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...
 
void evalCovarBaseVectorsAt (FloatMatrix &gcov, FloatArray &genEps, double zeta)
 Constructs a coefficient matrix for all prescribed unknowns. More...
 
void evalInitialCovarBaseVectorsAt (FloatMatrix &Gcov, FloatArray &genEps, double zeta)
 
void setDeformationGradient (double zeta)
 
void evaluateHigherOrderContribution (FloatArray &answer, double zeta, FloatArray &dx)
 
virtual void setCenterCoordinate (const FloatArray &x)
 Set the center coordinate for the prescribed values to be set for. More...
 
virtual FloatArraygiveCenterCoordinate ()
 Returns the center coordinate. More...
 
virtual const char * giveClassName () const
 
virtual const char * giveInputRecordName () const
 
 PrescribedGenStrainShell7 (int n, Domain *d)
 Creates boundary condition with given number, belonging to given domain. More...
 
virtual ~PrescribedGenStrainShell7 ()
 Destructor. More...
 
virtual double give (Dof *dof, ValueModeType mode, double time)
 
virtual bcType giveType () const
 
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...
 
void updateCoefficientMatrix (FloatMatrix &C)
 Constructs a coefficient matrix for all prescribed unknowns. More...
 
void computeField (FloatArray &sigma, EquationID eid, TimeStep *tStep)
 Computes the homogenized, macroscopic, field (stress). More...
 
void computeTangent (FloatMatrix &tangent, EquationID eid, TimeStep *tStep)
 Computes the macroscopic tangent for homogenization problems through sensitivity analysis. More...
 
virtual void scale (double s)
 Scales the receiver according to given value. More...
 
virtual void setPrescribedGenStrainShell7 (const FloatMatrix &t)
 Set prescribed tensor. More...
 
virtual void setPrescribedGenStrainShell7Voigt (const FloatArray &t)
 Sets the prescribed tensor from the matrix from given voigt notation. More...
 
virtual void setCenterCoordinate (const FloatArray &x)
 Set the center coordinate for the prescribed values to be set for. More...
 
virtual FloatArraygiveCenterCoordinate ()
 Returns the center coordinate. More...
 
virtual const char * giveClassName () const
 
virtual const char * giveInputRecordName () const
 
- Public Member Functions inherited from oofem::BoundaryCondition
 BoundaryCondition (int i, Domain *d)
 Constructor. More...
 
virtual ~BoundaryCondition ()
 Destructor. More...
 
virtual double give (Dof *dof, ValueModeType mode, TimeStep *tStep)
 Returns the value of a prescribed unknown, respecting requested mode for given time. More...
 
void setPrescribedValue (double s)
 Set prescribed value at the input record string of receiver. 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::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...
 
virtual int giveNumberOfInternalDofManagers ()
 Gives the number of internal dof managers. More...
 
virtual DofManagergiveInternalDofManager (int i)
 Gives an internal dof manager from receiver. 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 bcGeomType giveBCGeoType () const
 Returns geometry character of boundary condition. More...
 
virtual void postInitialize ()
 Performs post initialization steps. 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

double domainSize ()
 
double domainSize ()
 

Protected Attributes

FloatMatrix gradient
 Prescribed gradient $ d_{ij} $. More...
 
FloatArray initialGenEps
 Initial generalized strain eps = [Xbar_{,alpha}, M_{,alpha}, M ] = [ (3 3) (3 3) 3] - 15 components. More...
 
FloatArray genEps
 Current generalized strain eps = [xbar_{,alpha}, m_{,alpha}, m, gamma_{,alpha}, gamma ] = [ (3 3) (3 3) 3 (1 1) 1] - 18 components. More...
 
FloatArray centerCoord
 Center coordinate $ \bar{x}_i $. More...
 
- Protected Attributes inherited from oofem::BoundaryCondition
FloatArray values
 Prescribed values for each resp. dof. More...
 
- 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 $ u_i = d_{ij}(x_j-\bar{x}_j) $ or $ s = d_{1j}(x_j - \bar{x}_j) $ where $ v_i $ are primary unknowns for the subscale.

Prescribes $ v_i = d_{ij}(x_j-\bar{x}_j) $ or $ s = d_{1j}(x_j - \bar{x}_j) $ where $ v_i $ are primary unknowns for the subscale.

This is typical boundary condition in multiscale analysis where $ d = \partial_x s$ would a macroscopic gradient at the integration point, i.e. this is a boundary condition for prolongation. It is also convenient to use when one wants to test a arbitrary specimen for shear.

Author
Jim Brouzoulis

Definition at line 62 of file prescribedgenstrainshell7.h.

Constructor & Destructor Documentation

oofem::PrescribedGenStrainShell7::PrescribedGenStrainShell7 ( int  n,
Domain d 
)
inline

Creates boundary condition with given number, belonging to given domain.

Parameters
nBoundary condition number.
dDomain to which new object will belongs.

Definition at line 88 of file prescribedgenstrainshell7.h.

virtual oofem::PrescribedGenStrainShell7::~PrescribedGenStrainShell7 ( )
inlinevirtual

Destructor.

Definition at line 91 of file prescribedgenstrainshell7.h.

oofem::PrescribedGenStrainShell7::PrescribedGenStrainShell7 ( int  n,
Domain d 
)
inline

Creates boundary condition with given number, belonging to given domain.

Parameters
nBoundary condition number.
dDomain to which new object will belongs.

Definition at line 76 of file prescribedgradientshell7base.h.

virtual oofem::PrescribedGenStrainShell7::~PrescribedGenStrainShell7 ( )
inlinevirtual

Destructor.

Definition at line 79 of file prescribedgradientshell7base.h.

Member Function Documentation

void oofem::PrescribedGenStrainShell7::computeField ( FloatArray sigma,
EquationID  eid,
TimeStep tStep 
)
double oofem::PrescribedGenStrainShell7::domainSize ( )
protected
void oofem::PrescribedGenStrainShell7::evalCovarBaseVectorsAt ( FloatMatrix gcov,
FloatArray genEps,
double  zeta 
)

Constructs a coefficient matrix for all prescribed unknowns.

Helper routine for computational homogenization.

Todo:
Perhaps this routine should only give results for the dof it prescribes?
Parameters
CCoefficient matrix to fill.

Definition at line 114 of file prescribedgenstrainshell7.C.

References oofem::Shell7Base::giveGeneralizedStrainComponents(), oofem::FloatMatrix::resize(), and oofem::FloatMatrix::setColumn().

Referenced by evaluateHigherOrderContribution(), and setDeformationGradient().

void oofem::PrescribedGenStrainShell7::evalInitialCovarBaseVectorsAt ( FloatMatrix Gcov,
FloatArray genEps,
double  zeta 
)
virtual double oofem::PrescribedGenStrainShell7::give ( Dof dof,
ValueModeType  mode,
double  time 
)
virtual

Reimplemented from oofem::BoundaryCondition.

virtual FloatArray& oofem::PrescribedGenStrainShell7::giveCenterCoordinate ( )
inlinevirtual

Returns the center coordinate.

Definition at line 128 of file prescribedgenstrainshell7.h.

Referenced by evaluateHigherOrderContribution(), and updateCoefficientMatrix().

virtual FloatArray& oofem::PrescribedGenStrainShell7::giveCenterCoordinate ( )
inlinevirtual

Returns the center coordinate.

Definition at line 141 of file prescribedgradientshell7base.h.

virtual const char* oofem::PrescribedGenStrainShell7::giveClassName ( ) const
inlinevirtual
Returns
Class name of the receiver.

Reimplemented from oofem::BoundaryCondition.

Definition at line 130 of file prescribedgenstrainshell7.h.

virtual const char* oofem::PrescribedGenStrainShell7::giveClassName ( ) const
inlinevirtual
Returns
Class name of the receiver.

Reimplemented from oofem::BoundaryCondition.

Definition at line 143 of file prescribedgradientshell7base.h.

virtual void oofem::PrescribedGenStrainShell7::giveInputRecord ( DynamicInputRecord input)
virtual

Setups the input record string of receiver.

Parameters
inputDynamic input record to be filled by receiver.

Reimplemented from oofem::BoundaryCondition.

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

Reimplemented from oofem::BoundaryCondition.

Definition at line 131 of file prescribedgenstrainshell7.h.

References _IFT_PrescribedGenStrainShell7_Name.

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

Reimplemented from oofem::BoundaryCondition.

Definition at line 144 of file prescribedgradientshell7base.h.

References _IFT_PrescribedGenStrainShell7_Name.

virtual bcType oofem::PrescribedGenStrainShell7::giveType ( ) const
inlinevirtual
Returns
Type of boundary condition. It allows to distinguish BC according its mathematical meaning, ie. like Dirichlet, Neumann, or Newton type.

Reimplemented from oofem::BoundaryCondition.

Definition at line 83 of file prescribedgradientshell7base.h.

References oofem::DirichletBT.

virtual bcType oofem::PrescribedGenStrainShell7::giveType ( ) const
inlinevirtual
Returns
Type of boundary condition. It allows to distinguish BC according its mathematical meaning, ie. like Dirichlet, Neumann, or Newton type.

Reimplemented from oofem::BoundaryCondition.

Definition at line 95 of file prescribedgenstrainshell7.h.

References oofem::DirichletBT.

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

Initializes receiver according to object description stored in input record.

The input record contains two fields;

  • gradient #rows #columns { d_11 d_12 ... ; d_21 ... } (required)
  • cCoords #columns x_1 x_2 ... (optional, default 0) The prescribed tensor's columns must be equal to the size of the center coordinates. The size of the center coordinates must be equal to the size of the coordinates in the applied nodes.

Reimplemented from oofem::BoundaryCondition.

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

Initializes receiver according to object description stored in input record.

The input record contains two fields;

  • gradient #rows #columns { d_11 d_12 ... ; d_21 ... } (required)
  • cCoords #columns x_1 x_2 ... (optional, default 0) The prescribed tensor's columns must be equal to the size of the center coordinates. The size of the center coordinates must be equal to the size of the coordinates in the applied nodes.

Reimplemented from oofem::BoundaryCondition.

Definition at line 290 of file prescribedgenstrainshell7.C.

References _IFT_PrescribedGenStrainShell7_centercoords, _IFT_PrescribedGenStrainShell7_generalizedstrain, _IFT_PrescribedGenStrainShell7_initialgeneralizedstrain, centerCoord, genEps, oofem::FloatMatrix::giveNumberOfColumns(), gradient, initialGenEps, oofem::GeneralBoundaryCondition::initializeFrom(), IR_GIVE_FIELD, IR_GIVE_OPTIONAL_FIELD, oofem::FloatArray::resize(), and oofem::FloatArray::zero().

Referenced by computeTangent().

virtual void oofem::PrescribedGenStrainShell7::scale ( double  s)
inlinevirtual

Scales the receiver according to given value.

Typically used in nondimensional analysis to scale down BCs and ICs.

Parameters
sScale factor.

Reimplemented from oofem::BoundaryCondition.

Definition at line 120 of file prescribedgradientshell7base.h.

virtual void oofem::PrescribedGenStrainShell7::setCenterCoordinate ( const FloatArray x)
inlinevirtual

Set the center coordinate for the prescribed values to be set for.

Parameters
xCenter coordinate.

Definition at line 126 of file prescribedgenstrainshell7.h.

virtual void oofem::PrescribedGenStrainShell7::setCenterCoordinate ( const FloatArray x)
inlinevirtual

Set the center coordinate for the prescribed values to be set for.

Parameters
xCenter coordinate.

Definition at line 139 of file prescribedgradientshell7base.h.

void oofem::PrescribedGenStrainShell7::setDeformationGradient ( double  zeta)
virtual void oofem::PrescribedGenStrainShell7::setPrescribedGenStrainShell7 ( const FloatMatrix t)
inlinevirtual

Set prescribed tensor.

Parameters
tNew prescribed value.

Definition at line 126 of file prescribedgradientshell7base.h.

void oofem::PrescribedGenStrainShell7::setPrescribedGenStrainShell7Voigt ( const FloatArray t)
virtual

Sets the prescribed tensor from the matrix from given voigt notation.

Assumes use of double values for off-diagonal, usually the way for strain in Voigt form.

Parameters
tVector in voigt format.

Definition at line 103 of file prescribedgradientshell7base.C.

References oofem::FloatArray::at(), oofem::FloatMatrix::at(), oofem::FloatArray::giveSize(), gradient, OOFEM_ERROR, and oofem::FloatMatrix::resize().

Member Data Documentation

FloatArray oofem::PrescribedGenStrainShell7::centerCoord
protected

Center coordinate $ \bar{x}_i $.

Definition at line 80 of file prescribedgenstrainshell7.h.

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

FloatArray oofem::PrescribedGenStrainShell7::genEps
protected

Current generalized strain eps = [xbar_{,alpha}, m_{,alpha}, m, gamma_{,alpha}, gamma ] = [ (3 3) (3 3) 3 (1 1) 1] - 18 components.

Definition at line 77 of file prescribedgenstrainshell7.h.

Referenced by evaluateHigherOrderContribution(), giveInputRecord(), initializeFrom(), and setDeformationGradient().

FloatMatrix oofem::PrescribedGenStrainShell7::gradient
protected
FloatArray oofem::PrescribedGenStrainShell7::initialGenEps
protected

Initial generalized strain eps = [Xbar_{,alpha}, M_{,alpha}, M ] = [ (3 3) (3 3) 3] - 15 components.

Definition at line 72 of file prescribedgenstrainshell7.h.

Referenced by evaluateHigherOrderContribution(), giveInputRecord(), initializeFrom(), and setDeformationGradient().


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