|
OOFEM 3.0
|
#include <crosssection.h>
Public Member Functions | |
| CrossSection (int n, Domain *d) | |
| virtual | ~CrossSection () |
| Destructor. | |
| int | giveSetNumber () const |
| virtual bool | hasProperty (CrossSectionProperty a) |
| virtual double | give (CrossSectionProperty a, GaussPoint *gp) const |
| virtual double | give (CrossSectionProperty a, const FloatArray &coords, Element *elem, bool local=true) const |
| virtual double | give (int aProperty, GaussPoint *gp) const |
| virtual bool | isCharacteristicMtrxSymmetric (MatResponseMode rMode) const |
| void | printYourself () override |
| Prints receiver state on stdout. Useful for debugging. | |
| virtual int | setupIntegrationPoints (IntegrationRule &irule, int npoints, Element *element) |
| virtual int | setupIntegrationPoints (IntegrationRule &irule, int npointsXY, int npointsZ, Element *element) |
| virtual int | testCrossSectionExtension (CrossSectExtension ext) |
| virtual int | giveIPValue (FloatArray &answer, GaussPoint *ip, InternalStateType type, TimeStep *tStep) |
| virtual int | packUnknowns (DataStream &buff, TimeStep *tStep, GaussPoint *ip)=0 |
| virtual int | unpackAndUpdateUnknowns (DataStream &buff, TimeStep *tStep, GaussPoint *ip)=0 |
| virtual int | estimatePackSize (DataStream &buff, GaussPoint *ip)=0 |
| virtual double | predictRelativeComputationalCost (GaussPoint *ip) |
| virtual double | giveRelativeSelfComputationalCost () |
| virtual double | predictRelativeRedistributionCost (GaussPoint *gp) |
| void | initializeFrom (InputRecord &ir) override |
| void | giveInputRecord (DynamicInputRecord &input) override |
| virtual Material * | giveMaterial (IntegrationPoint *ip) const =0 |
| hidden by virtual oofem::Material* TransportCrossSection::giveMaterial() const | |
| virtual void | saveIPContext (DataStream &stream, ContextMode mode, GaussPoint *gp) |
| virtual void | restoreIPContext (DataStream &stream, ContextMode mode, GaussPoint *gp) |
| void | saveContext (DataStream &stream, ContextMode mode) override |
| void | restoreContext (DataStream &stream, ContextMode mode) override |
| Public Member Functions inherited from oofem::FEMComponent | |
| FEMComponent (int n, Domain *d) | |
| virtual | ~FEMComponent ()=default |
| Virtual destructor. | |
| virtual const char * | giveClassName () const =0 |
| virtual const char * | giveInputRecordName () const =0 |
| Domain * | giveDomain () 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 Interface * | giveInterface (InterfaceType t) |
| std::string | errorInfo (const char *func) const |
| Returns string for prepending output (used by error reporting macros). | |
Protected Attributes | |
| Dictionary | propertyDictionary |
| int | setNumber |
| Protected Attributes inherited from oofem::FEMComponent | |
| int | number |
| Component number. | |
| Domain * | domain |
| Link to domain object, useful for communicating with other FEM components. | |
Base abstract class representing cross section in finite element mesh.
The main idea, why cross section has been introduced, is to hide all details of cross section description from particular element. Generally elements do not communicate directly with material but communicate through cross section interface, which therefore can perform necessary integration (for example over layers of fibers).
The cross section returns properties like thickness and area.
The derived classes are supposed to be base cross section classes for particular type of analysis. They should declare general interface methods necessary.
In particular cross section implementation, where is necessary to perform integration over cross section volume (over layers, fibers, ...) and therefore generally one must keep complete load history in these integration points, the concept of master-slave integration points should be used.
Integration point generally can contain list of slave integration points therefore is called as master point. Slaves are used for example to implement layered or fibered cross sections by cross section class. Then in one "macro" master Gauss point, cross section creates few slaves (one per layer) and puts them into master list. When cross sections completes requests for particular master integration point, it performs integration over layers. It therefore calls material class for each layer, sending corresponding slave as parameter and integrates results.
Definition at line 107 of file crosssection.h.
| oofem::CrossSection::CrossSection | ( | int | n, |
| Domain * | d ) |
Constructor. Creates cross section with number n belonging to domain d.
| n | Cross section number. |
| d | Domain. |
Definition at line 46 of file crosssection.C.
References oofem::FEMComponent::FEMComponent(), propertyDictionary, and setNumber.
Referenced by oofem::DummyCrossSection::DummyCrossSection(), oofem::EmptyCS::EmptyCS(), oofem::FluidCrossSection::FluidCrossSection(), oofem::LatticeCrossSection::LatticeCrossSection(), oofem::StructuralCrossSection::StructuralCrossSection(), oofem::StructuralInterfaceCrossSection::StructuralInterfaceCrossSection(), and oofem::TransportCrossSection::TransportCrossSection().
|
virtual |
Destructor.
Definition at line 50 of file crosssection.C.
|
pure virtual |
Estimates the necessary pack size to hold all packed data of receiver. The corresponding material model service is invoked. The nature of packed data is typically material model dependent.
| buff | Communication buffer. |
| ip | Integration point. |
Implemented in oofem::DummyCrossSection, oofem::EmptyCS, oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, and oofem::StructuralInterfaceCrossSection.
References predictRelativeComputationalCost().
|
virtual |
Returns the value of cross section property at given point (belonging to given element). the point coordinates can be specified using its local element coordinates or global coordinates (one of these two can be set to NULL) The default implementation assumes constant properties stored in propertyDictionary.
| a | Id of requested property. |
| coords | local or global coordinates (determined by local parameter) of point of interest |
| elem | reference to underlying element containing given point |
| gp | Integration point |
Reimplemented in oofem::LayeredCrossSection, oofem::SimpleCrossSection, and oofem::VariableCrossSection.
Definition at line 138 of file crosssection.C.
References OOFEM_ERROR, and propertyDictionary.
|
virtual |
Returns the value of cross section property at given point. The default implementation assumes constant properties stored in propertyDictionary.
| a | Id of requested property. |
| gp | Integration point |
Reimplemented in oofem::FiberedCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, and oofem::VariableCrossSection.
Definition at line 125 of file crosssection.C.
References OOFEM_ERROR, and propertyDictionary.
Referenced by oofem::Quasicontinuum::applyApproach3(), oofem::TR1_2D_SUPG::computeBCRhsTerm_MB(), oofem::CCTPlate3d::computeBodyLoadVectorAt(), oofem::CCTPlate::computeBodyLoadVectorAt(), oofem::DKTPlate3d::computeBodyLoadVectorAt(), oofem::DKTPlate::computeBodyLoadVectorAt(), oofem::QDKTPlate::computeBodyLoadVectorAt(), oofem::Quad1Mindlin::computeBodyLoadVectorAt(), oofem::Quad1MindlinShell3D::computeBodyLoadVectorAt(), oofem::XfemStructuralElementInterface::computeCohesiveForces(), oofem::XfemStructuralElementInterface::computeCohesiveTangent(), oofem::StructuralElementEvaluator::computeConsistentMassMatrix(), oofem::Truss3d::computeInitialStressMatrix(), oofem::TR1_2D_SUPG::computeLoadVector(), oofem::SurfaceTensionBoundaryCondition::computeLoadVectorFromElement(), oofem::CCTPlate3d::computeLocalCoordinates(), oofem::CCTPlate::computeLocalCoordinates(), oofem::DKTPlate3d::computeLocalCoordinates(), oofem::DKTPlate::computeLocalCoordinates(), oofem::MITC4Shell::computeLocalCoordinates(), oofem::QDKTPlate::computeLocalCoordinates(), oofem::RerShell::computeLocalCoordinates(), oofem::CCTPlate::computeLumpedMassMatrix(), oofem::DKTPlate::computeLumpedMassMatrix(), oofem::LIBeam2dNL::computeLumpedMassMatrix(), oofem::LIBeam3d2::computeLumpedMassMatrix(), oofem::LIBeam3dNL2::computeLumpedMassMatrix(), oofem::LIBeam3dNL::computeLumpedMassMatrix(), oofem::Quad1Mindlin::computeLumpedMassMatrix(), oofem::Quad1MindlinShell3D::computeLumpedMassMatrix(), oofem::Truss1d::computeLumpedMassMatrix(), oofem::Truss2d::computeLumpedMassMatrix(), oofem::Truss3d::computeLumpedMassMatrix(), oofem::MITC4Shell::computeStiffnessMatrix(), oofem::Quad1MindlinShell3D::computeStiffnessMatrix(), oofem::CCTPlate::computeStrainVectorInLayer(), oofem::DKTPlate::computeStrainVectorInLayer(), oofem::LIBeam2dNL::computeStrainVectorInLayer(), oofem::QDKTPlate::computeStrainVectorInLayer(), oofem::SurfaceTensionBoundaryCondition::computeTangentFromElement(), oofem::QClinearStatic::computeTotalVolumeOfInterpolationMesh(), oofem::QTruss1d::computeVolumeAround(), oofem::Structural2DElement::computeVolumeAround(), oofem::Truss1d::computeVolumeAround(), oofem::Truss2d::computeVolumeAround(), oofem::Truss3d::computeVolumeAround(), oofem::PrescribedDispSlipBCNeumannRC::computeWeightMatrix(), oofem::PrescribedDispSlipBCDirichletRC::domainSize(), oofem::PrescribedDispSlipBCNeumannRC::domainSize(), oofem::FiberedCrossSection::give(), oofem::LayeredCrossSection::give(), oofem::LayeredCrossSection::give(), oofem::SimpleCrossSection::give(), oofem::SimpleCrossSection::give(), oofem::MITC4Shell::giveDirectorVectors(), oofem::MITC4Shell::giveInternalForcesVector(), oofem::Quad1MindlinShell3D::giveInternalForcesVector(), oofem::Truss3d::giveIPValue(), oofem::MITC4Shell::giveMidplaneIPValue(), oofem::MITC4Shell::giveThickness(), oofem::PrescribedDispSlipBCNeumannRC::integrateTangentBStressSteel(), oofem::PrescribedDispSlipBCNeumannRC::integrateTangentRStressSteel(), and oofem::XfemStructuralElementInterface::XfemElementInterface_computeConsistentMassMatrix().
|
inlinevirtual |
Returns the value of cross section property.
| aProperty | Id of requested property. |
| gp | Integration point. |
Reimplemented in oofem::FiberedCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, and oofem::SimpleCrossSection.
Definition at line 163 of file crosssection.h.
|
overridevirtual |
Setups the input record string of receiver.
| input | Dynamic input record to be filled by receiver. |
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::DummyCrossSection, oofem::FluidCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, and oofem::VariableCrossSection.
Definition at line 76 of file crosssection.C.
References _IFT_CrossSection_SetNumber, oofem::DynamicInputRecord::setField(), and setNumber.
Referenced by oofem::LayeredCrossSection::giveInputRecord(), and oofem::SimpleCrossSection::giveInputRecord().
|
virtual |
Returns the integration point corresponding value in Reduced form.
| answer | contain corresponding ip value, zero sized if not available |
| ip | Integration point. |
| type | Determines the type of internal variable. |
| tStep | Time step. |
Reimplemented in oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, and oofem::StructuralInterfaceCrossSection.
Definition at line 83 of file crosssection.C.
References oofem::FloatArray::at(), giveMaterial(), oofem::FEMComponent::giveNumber(), and oofem::FloatArray::resize().
Referenced by oofem::Truss3d::NodalAveragingRecoveryMI_computeNodalValue().
|
pure virtual |
hidden by virtual oofem::Material* TransportCrossSection::giveMaterial() const
Returns the material associated with the GP. Default implementation uses gp->giveMaterial() for backwards compatibility, but it should be overloaded in each specialized cross-section.
Implemented in oofem::DummyCrossSection, oofem::EmptyCS, oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, oofem::StructuralCrossSection, and oofem::StructuralInterfaceCrossSection.
References restoreContext(), restoreIPContext(), saveContext(), and saveIPContext().
Referenced by oofem::Element::adaptiveMap(), oofem::LIBeam3dNL::computeTempCurv(), oofem::GPInitModule::doInit(), oofem::BTSigmaTerm2::evaluate(), oofem::BTSigTerm::evaluate(), oofem::gNTfTerm::evaluate(), oofem::InternalTMFluxSourceTerm::evaluate(), oofem::TMBTSigTerm::evaluate(), oofem::TMgNTfTerm::evaluate(), oofem::BDalphaPiTerm::evaluate_lin(), oofem::BTamNTerm::evaluate_lin(), oofem::BTdSigmadT::evaluate_lin(), oofem::BTmuBTerm::evaluate_lin(), oofem::BTmuVfBTerm::evaluate_lin(), oofem::BTSigmaTerm2::evaluate_lin(), oofem::BTSigTerm::evaluate_lin(), oofem::gNTfTerm::evaluate_lin(), oofem::NTamTBTerm::evaluate_lin(), oofem::NTcN::evaluate_lin(), oofem::NTmuVfSNTerm::evaluate_lin(), oofem::NLStructuralElement::giveInternalForcesVector(), giveIPValue(), oofem::IsotropicDamageMaterial1::MMI_map(), predictRelativeComputationalCost(), restoreIPContext(), and saveIPContext().
|
inlinevirtual |
Returns the weight representing relative computational cost of receiver The reference element is integral model in plane stress. Its weight is equal to 1.0. The other cross section models should compare to this reference.
Definition at line 261 of file crosssection.h.
Referenced by predictRelativeComputationalCost().
|
inline |
Definition at line 129 of file crosssection.h.
Referenced by oofem::Delamination::propagateFronts(), and oofem::PLCZdamageRadius::propagateInterface().
|
virtual |
Returns true if the dictionary contains the requested property.
| a | Id of requested property. |
Definition at line 119 of file crosssection.C.
References propertyDictionary.
|
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.
| ir | Input record to initialize from. |
| priority | Priority of the input record. This is used to determine the order of initialization |
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::DummyCrossSection, oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, oofem::StructuralInterfaceCrossSection, oofem::VariableCrossSection, and oofem::WarpingCrossSection.
Definition at line 68 of file crosssection.C.
References _IFT_CrossSection_SetNumber, IR_GIVE_OPTIONAL_FIELD, and setNumber.
Referenced by oofem::FiberedCrossSection::initializeFrom(), oofem::LayeredCrossSection::initializeFrom(), and oofem::SimpleCrossSection::initializeFrom().
|
inlinevirtual |
Check for symmetry of stiffness matrix. Default implementation returns true. It can be moved to base Cross section class in the future.
| rMode | Response mode of material. |
Reimplemented in oofem::DummyCrossSection, oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, and oofem::StructuralCrossSection.
Definition at line 172 of file crosssection.h.
Referenced by oofem::BaseMixedPressureElement::computeStiffnessMatrix_uu(), oofem::GradDpElement::computeStiffnessMatrix_uu(), and oofem::GradientDamageElement::computeStiffnessMatrix_uu().
|
pure virtual |
Pack all necessary data of integration point (according to element parallel_mode) into given communication buffer. The corresponding material model service for particular integration point is invoked. The nature of packed data is material model dependent. Typically, for material of "local" response (response depends only on integration point local state) no data are exchanged. For "nonlocal" constitutive models the send/receive of local values which undergo averaging is performed between local and corresponding remote elements.
| buff | Communication buffer. |
| tStep | Solution step. |
| ip | Integration point. |
Implemented in oofem::DummyCrossSection, oofem::EmptyCS, oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, and oofem::StructuralInterfaceCrossSection.
|
virtual |
Returns the weight representing relative computational cost of receiver The reference cross section is integral model in plane stress. Its weight is equal to 1.0 Default implementation computes average computational cost of material model and multiplies it by cross section type weight (obtained by giveRelativeSelfComputationalCost()) The other cross section models should compare to this reference.
| ip | Integration point. |
Definition at line 152 of file crosssection.C.
References giveMaterial(), and giveRelativeSelfComputationalCost().
Referenced by estimatePackSize().
|
inlinevirtual |
Definition at line 265 of file crosssection.h.
|
overridevirtual |
Prints receiver state on stdout. Useful for debugging.
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::FiberedCrossSection, and oofem::LayeredCrossSection.
Definition at line 95 of file crosssection.C.
References propertyDictionary.
|
overridevirtual |
Restores the receiver state previously written in stream.
| stream | Input stream. |
| mode | Determines amount of info available in stream (state, definition, ...). |
| throws | an ContextIOERR exception if error encountered. |
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::SimpleCrossSection.
Definition at line 172 of file crosssection.C.
References oofem::CIO_IOERR, CM_Definition, propertyDictionary, oofem::DataStream::read(), setNumber, and THROW_CIOERR.
Referenced by giveMaterial(), and oofem::SimpleCrossSection::restoreContext().
|
virtual |
Reads integration point state to output stream.
| stream | Output stream. |
| mode | Determines amount of info required in stream (state, definition, ...). |
| gp | integration point. |
| throws | an ContextIOERR exception if error encountered. |
Reimplemented in oofem::FiberedCrossSection, and oofem::LayeredCrossSection.
Definition at line 112 of file crosssection.C.
References giveMaterial(), and oofem::Material::restoreIPContext().
Referenced by giveMaterial(), oofem::FiberedCrossSection::restoreIPContext(), and oofem::LayeredCrossSection::restoreIPContext().
|
overridevirtual |
Stores receiver state to output stream.
| stream | Output stream. |
| mode | Determines amount of info required in stream (state, definition, ...). |
| throws | an ContextIOERR exception if error encountered. |
Reimplemented from oofem::FEMComponent.
Reimplemented in oofem::SimpleCrossSection.
Definition at line 158 of file crosssection.C.
References oofem::CIO_IOERR, CM_Definition, propertyDictionary, setNumber, THROW_CIOERR, and oofem::DataStream::write().
Referenced by giveMaterial(), and oofem::SimpleCrossSection::saveContext().
|
virtual |
Stores integration point state to output stream.
| stream | Output stream. |
| mode | Determines amount of info required in stream (state, definition, ...). |
| gp | integration point. |
| throws | an ContextIOERR exception if error encountered. |
Reimplemented in oofem::FiberedCrossSection, and oofem::LayeredCrossSection.
Definition at line 104 of file crosssection.C.
References giveMaterial(), and oofem::Material::saveIPContext().
Referenced by giveMaterial(), oofem::FiberedCrossSection::saveIPContext(), and oofem::LayeredCrossSection::saveIPContext().
|
virtual |
Sets up integration rule for the given element. Default behavior is just to call the Gauss integration rule, but for example the layered and fibered crosssections need to do their own thing.
| irule | Integration rule to set up. |
| npoints | Number of integration points. |
| element | Element which the integration rule belongs to. |
Reimplemented in oofem::LayeredCrossSection.
Definition at line 55 of file crosssection.C.
References oofem::Element::giveIntegrationDomain(), oofem::Element::giveMaterialMode(), and oofem::IntegrationRule::setUpIntegrationPoints().
Referenced by oofem::AxisymElement::computeGaussPoints(), oofem::CCTPlate::computeGaussPoints(), oofem::DKTPlate::computeGaussPoints(), oofem::LIBeam2dNL::computeGaussPoints(), oofem::LIBeam3d2::computeGaussPoints(), oofem::LIBeam3dNL2::computeGaussPoints(), oofem::LIBeam3dNL::computeGaussPoints(), oofem::MITC4Shell::computeGaussPoints(), oofem::QDKTPlate::computeGaussPoints(), oofem::QTruss1d::computeGaussPoints(), oofem::Quad1Mindlin::computeGaussPoints(), oofem::Quad1MindlinShell3D::computeGaussPoints(), oofem::Structural2DElement::computeGaussPoints(), oofem::Structural3DElement::computeGaussPoints(), oofem::tet21ghostsolid::computeGaussPoints(), oofem::Truss1d::computeGaussPoints(), oofem::Truss2d::computeGaussPoints(), oofem::Truss3d::computeGaussPoints(), and oofem::MITC4Shell::setupIRForMassMtrxIntegration().
|
virtual |
Sets up integration rule for the given element. Default behavior is just to call the Gauss integration rule, but for example the layered and fibered crosssections need to do their own thing.
| irule | Integration rule to set up. |
| npoints | Number of integration points. |
| element | Element which the integration rule belongs to. |
Reimplemented in oofem::LayeredCrossSection.
Definition at line 62 of file crosssection.C.
References oofem::Element::giveIntegrationDomain(), oofem::Element::giveMaterialMode(), and oofem::IntegrationRule::setUpIntegrationPoints().
|
inlinevirtual |
Returns nonzero, if receiver implements required extension.
| ext | Required extension. |
Reimplemented in oofem::LatticeCrossSection, oofem::StructuralCrossSection, and oofem::StructuralInterfaceCrossSection.
Definition at line 199 of file crosssection.h.
|
pure virtual |
Unpack and updates all necessary data of given integration point (according to element parallel_mode) into given communication buffer.
| buff | Communication buffer. |
| tStep | Solution step. |
| ip | Integration point. |
Implemented in oofem::DummyCrossSection, oofem::EmptyCS, oofem::FiberedCrossSection, oofem::FluidCrossSection, oofem::LatticeCrossSection, oofem::LayeredCrossSection, oofem::SimpleCrossSection, oofem::SimpleTransportCrossSection, and oofem::StructuralInterfaceCrossSection.
|
protected |
Dictionary for storing cross section parameters (like dimensions). More preferably, (due to slow access into dictionary values) one should use corresponding variables declared inside class
Definition at line 115 of file crosssection.h.
Referenced by CrossSection(), give(), give(), oofem::VariableCrossSection::give(), oofem::SimpleCrossSection::giveInputRecord(), hasProperty(), oofem::LatticeCrossSection::initializeFrom(), oofem::LayeredCrossSection::initializeFrom(), oofem::SimpleCrossSection::initializeFrom(), oofem::SimpleTransportCrossSection::initializeFrom(), oofem::StructuralInterfaceCrossSection::initializeFrom(), printYourself(), oofem::FiberedCrossSection::printYourself(), oofem::LayeredCrossSection::printYourself(), restoreContext(), and saveContext().
|
protected |
Definition at line 117 of file crosssection.h.
Referenced by CrossSection(), giveInputRecord(), initializeFrom(), restoreContext(), and saveContext().