OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Prescribes an average displacement gradient based on microperiodicity. More...
#include <transportgradientperiodic.h>
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 DofManager * | giveInternalDofManager (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 Dof * | giveMasterDof (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... | |
Function * | giveTimeFunction () |
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 IntArray & | giveDofIDs () 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... | |
Domain * | giveDomain () 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 Interface * | giveInterface (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< Node > | grad |
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... | |
Domain * | domain |
Link to domain object, useful for communicating with other FEM components. More... | |
Prescribes an average displacement gradient based on microperiodicity.
Definition at line 62 of file transportgradientperiodic.h.
oofem::TransportGradientPeriodic::TransportGradientPeriodic | ( | int | n, |
Domain * | d | ||
) |
Definition at line 63 of file transportgradientperiodic.C.
References oofem::IntArray::followedBy(), oofem::Domain::giveNextFreeDofID(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveNumberOfSpatialDimensions(), grad, and grad_ids.
|
virtual |
Definition at line 80 of file transportgradientperiodic.C.
|
virtual |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 323 of file transportgradientperiodic.C.
References oofem::FloatArray::at(), oofem::FloatArray::beDifferenceOf(), oofem::FEMComponent::domain, oofem::DofManager::giveCoordinates(), oofem::Dof::giveDofManager(), oofem::Domain::giveDofManager(), oofem::FEMComponent::giveNumber(), oofem::FloatArray::giveSize(), oofem::FloatArray::resize(), and slavemap.
|
virtual |
Definition at line 186 of file transportgradientperiodic.C.
References oofem::EngngModel::assembleVector(), oofem::FEMComponent::domain, domainSize(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveEngngModel(), oofem::IntArray::giveSize(), grad_ids, masterSet, oofem::FloatArray::resize(), oofem::FloatArray::subtract(), oofem::FloatArray::times(), and oofem::FloatArray::zero().
|
virtual |
Definition at line 205 of file transportgradientperiodic.C.
References oofem::FloatMatrix::assemble(), oofem::EngngModel::assemble(), oofem::FloatArray::at(), oofem::FloatMatrix::at(), oofem::FloatMatrix::beSubMatrixOf(), oofem::classFactory, oofem::ClassFactory::createSparseLinSolver(), oofem::ClassFactory::createSparseMtrx(), oofem::GeneralBoundaryCondition::dofs, oofem::FEMComponent::domain, domainSize(), oofem::Element_remote, oofem::Domain::giveDofManagers(), oofem::FEMComponent::giveDomain(), oofem::Domain::giveElement(), oofem::Domain::giveEngngModel(), oofem::Domain::giveNumber(), oofem::Domain::giveNumberOfElements(), oofem::Domain::giveNumberOfSpatialDimensions(), oofem::Element::giveParallelMode(), oofem::Element::giveRotationMatrix(), grad, grad_ids, oofem::Element::isActivated(), oofem::FloatMatrix::isNotEmpty(), masterSet, mCenterCoord, NM_NoSuccess, OOFEM_ERROR, oofem::FloatMatrix::rotatedWith(), oofem::ST_Petsc, oofem::FloatMatrix::subtract(), and oofem::FloatMatrix::times().
|
protectedvirtual |
Definition at line 145 of file transportgradientperiodic.C.
References oofem::IntArray::at(), oofem::FEInterpolation::evalNXIntegral(), oofem::Domain::giveElement(), oofem::Element::giveInterpolation(), oofem::Domain::giveNumberOfSpatialDimensions(), oofem::Domain::giveSet(), and oofem::IntArray::giveSize().
Referenced by computeField(), and computeTangent().
|
protected |
This is the central support function, which finds the corresponding slave nodes for each master node.
Definition at line 97 of file transportgradientperiodic.C.
References oofem::FloatArray::at(), oofem::FloatArray::beDifferenceOf(), oofem::FloatArray::computeNorm(), oofem::FEMComponent::domain, oofem::Node::giveCoordinates(), oofem::Domain::giveNode(), oofem::SpatialLocalizer::giveNodeClosestToPoint(), oofem::Set::giveNodeList(), oofem::FEMComponent::giveNumber(), oofem::Domain::giveSet(), oofem::FloatArray::giveSize(), oofem::Domain::giveSpatialLocalizer(), jump, OOFEM_ERROR, and slavemap.
Referenced by postInitialize().
|
virtual |
Returns the prescribed value of a dof (if any).
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 388 of file transportgradientperiodic.C.
References oofem::Function::evaluateAtTime(), oofem::IntArray::findFirstIndexOf(), oofem::Dof::giveDofID(), oofem::TimeStep::giveTargetTime(), oofem::GeneralBoundaryCondition::giveTimeFunction(), grad_ids, and mGradient.
|
inlinevirtual |
Implements oofem::FEMComponent.
Definition at line 110 of file transportgradientperiodic.h.
|
virtual |
Setups the input record string of receiver.
input | Dynamic input record to be filled by receiver. |
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 423 of file transportgradientperiodic.C.
References _IFT_TransportGradientPeriodic_centerCoords, _IFT_TransportGradientPeriodic_gradient, _IFT_TransportGradientPeriodic_jump, _IFT_TransportGradientPeriodic_masterSet, oofem::GeneralBoundaryCondition::giveInputRecord(), jump, masterSet, mCenterCoord, mGradient, and oofem::DynamicInputRecord::setField().
|
inlinevirtual |
Implements oofem::FEMComponent.
Definition at line 111 of file transportgradientperiodic.h.
References _IFT_TransportGradientPeriodic_Name.
|
virtual |
Gives an internal dof manager from receiver.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 91 of file transportgradientperiodic.C.
References grad.
Give the pointer to master dof belonging to active DOF.
dof | Active dof belonging to receiver. |
mdof | Local master dof number. |
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.
|
virtual |
Gives the number of internal dof managers.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 85 of file transportgradientperiodic.C.
|
virtual |
Allows for active boundary conditions to handle their own special DOF.
dof | Active dof belonging to receiver. |
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 | ( | double | val, |
ValueModeType | mode, | ||
TimeStep * | tStep, | ||
ActiveDof * | dof | ||
) |
Definition at line 341 of file transportgradientperiodic.C.
References oofem::FloatArray::beDifferenceOf(), oofem::FEMComponent::domain, oofem::FloatArray::dotProduct(), oofem::DofManager::giveCoordinates(), oofem::Dof::giveDofManager(), oofem::Domain::giveDofManager(), oofem::FEMComponent::giveNumber(), grad, grad_ids, and slavemap.
Referenced by giveUnknown().
|
virtual |
Computes the value of the dof.
field | Field to take value from. |
mode | Mode of unknown value. |
tStep | Time step. |
dof | Active dof for which to obtain the value. |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 351 of file transportgradientperiodic.C.
References oofem::FEMComponent::domain, oofem::Function::evaluateAtTime(), oofem::IntArray::findFirstIndexOf(), oofem::Dof::giveDofID(), oofem::Dof::giveDofManager(), oofem::Domain::giveDofManager(), oofem::DofManager::giveDofWithID(), oofem::FEMComponent::giveNumber(), oofem::TimeStep::giveTargetTime(), oofem::GeneralBoundaryCondition::giveTimeFunction(), giveUnknown(), grad_ids, isGradDof(), mGradient, and slavemap.
|
virtual |
Computes the value of the dof.
mode | Mode of unknown value. |
tStep | Time step. |
dof | Active dof for which to obtain the value. |
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 364 of file transportgradientperiodic.C.
References oofem::FEMComponent::domain, oofem::Function::evaluateAtTime(), oofem::IntArray::findFirstIndexOf(), oofem::Dof::giveDofID(), oofem::Dof::giveDofManager(), oofem::Domain::giveDofManager(), oofem::DofManager::giveDofWithID(), oofem::FEMComponent::giveNumber(), oofem::TimeStep::giveTargetTime(), oofem::GeneralBoundaryCondition::giveTimeFunction(), giveUnknown(), grad_ids, isGradDof(), mGradient, and slavemap.
Returns the prescribed value of a dof (if any).
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 395 of file transportgradientperiodic.C.
References isGradDof().
|
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.
ir | Input record to initialize from. |
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 | ) |
Definition at line 401 of file transportgradientperiodic.C.
References oofem::Dof::giveDofManager(), and grad.
Referenced by giveMasterDof(), giveNumberOfMasterDofs(), giveUnknown(), hasBc(), and isPrimaryDof().
|
virtual |
Checks to see if the dof is a primary DOF.
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 382 of file transportgradientperiodic.C.
References isGradDof().
|
virtual |
Performs post initialization steps.
Reimplemented from oofem::GeneralBoundaryCondition.
Definition at line 435 of file transportgradientperiodic.C.
References findSlaveToMasterMap().
|
inlinevirtual |
Checks to see if active boundary condition requires special DOFs.
Reimplemented from oofem::ActiveBoundaryCondition.
Definition at line 108 of file transportgradientperiodic.h.
|
protected |
Definition at line 68 of file transportgradientperiodic.h.
Referenced by computeTangent(), giveInternalDofManager(), giveMasterDof(), giveUnknown(), isGradDof(), and TransportGradientPeriodic().
|
protected |
Definition at line 69 of file transportgradientperiodic.h.
Referenced by computeField(), computeTangent(), giveBcValue(), giveMasterDof(), giveUnknown(), and TransportGradientPeriodic().
|
protected |
Definition at line 72 of file transportgradientperiodic.h.
Referenced by findSlaveToMasterMap(), giveInputRecord(), and initializeFrom().
|
protected |
Definition at line 74 of file transportgradientperiodic.h.
Referenced by computeField(), computeTangent(), giveInputRecord(), and initializeFrom().
|
protected |
Definition at line 66 of file transportgradientperiodic.h.
Referenced by computeTangent(), giveInputRecord(), and initializeFrom().
|
protected |
Definition at line 65 of file transportgradientperiodic.h.
Referenced by giveBcValue(), giveInputRecord(), giveUnknown(), and initializeFrom().
|
protected |
Definition at line 71 of file transportgradientperiodic.h.
Referenced by computeDofTransformation(), findSlaveToMasterMap(), giveMasterDof(), and giveUnknown().