Domain Class Reference

Class and object Domain. More...

#include <domain.h>

Collaboration diagram for Domain:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Domain (int n, int serNum, EngngModel *pm)
 Constructor.
 ~Domain ()
 Destructor.
int giveNumber ()
 Returns domain number.
void setNumber (int nn)
 Returns domain number.
int giveSerialNumber ()
 Returns domain serial (version) number.
ElementgiveElement (int n)
 Service for accessing particular domain fe element.
EngngModelgiveEngngModel ()
 Returns engineering model to which receiver is associated.
LoadgiveLoad (int n)
 Service for accessing particular domain load.
GeneralBoundaryConditiongiveBc (int n)
 Service for accessing particular domain bc.
InitialConditiongiveIc (int n)
 Service for accessing particular domain ic.
LoadTimeFunctiongiveLoadTimeFunction (int n)
 Service for accessing particular domain load time function.
MaterialgiveMaterial (int n)
 Service for accessing particular domain material model.
CrossSectiongiveCrossSection (int n)
 Service for accessing particular domain cross section model.
NonlocalBarriergiveNonlocalBarrier (int n)
 Service for accessing particular domain nonlocal barier representation.
RandomFieldGeneratorgiveRandomFieldGenerator (int n)
 Service for accessing particular domain andom field generator.
NodegiveNode (int n)
 Service for accessing particular domain node.
ElementSidegiveSide (int n)
 Service for accessing particular domain element side.
DofManagergiveDofManager (int n)
 Service for accessing particular domain dof manager.
int instanciateYourself (DataReader *dr)
 Reads receiver description from input stream and creates corresponding components accordingly.
int giveNumberOfDofManagers ()
 Returns number of dof managers in domain.
int giveNumberOfElements ()
 Returns number of elements in domain.
int giveNumberOfMaterialModels ()
 Returns number of material models in domain.
int giveNumberOfCrossSectionModels ()
 Returns number of cross section models in domain.
int giveNumberOfBoundaryConditions ()
 Returns number of boundary conditions in domain.
int giveNumberOfInitialConditions ()
 Returns number of initial conditions in domain.
int giveNumberOfLoadTimeFunctions ()
 Returns number of load time functions in domain.
int giveNumberOfRegions ()
 Returns number of regions. Currently regions corresponds to cross section models.
int giveNumberOfNonlocalBarriers ()
 Returns number of nonlocal integration barriers.
int giveCorrespondingCoordinateIndex (int)
const IntArraygiveDefaultNodeDofIDArry ()
 Returns default DofID array which defines physical meaning of partucular DOFs of nodal dofs.
const IntArraygiveDefaultSideDofIDArry ()
 Returns default DofID array which defines physical meaning of partucular DOFs of element side dofs.
int giveNumberOfDefaultNodeDofs ()
 Returns default number of dofs per node.
int giveNumberOfDefaultSideDofs ()
 Returns default number of dofs per side.
domainType giveDomainType ()
 Returns domain type.
void setDomainType (domainType _dType)
 Sets domain type.
int checkConsistency ()
 Checks internal consistency of domain and all domain componenets.
ConnectivityTablegiveConnectivityTable ()
 Returns receiver's associated connectivity table.
SpatialLocalizergiveSpatialLocalizer ()
 Returns receiver's associated spatial localizer.
OutputManagergiveOutputManager ()
 Returns domain output manager.
ErrorEstimatorgiveErrorEstimator ()
 Returns Error Estimator associated to receiver.
NodalRecoveryModelgiveSmoother ()
 Returns the actual Smoother associated to receiver.
void setSmoother (NodalRecoveryModel *smoother, int destroyOld=1)
 Sets the given smoother as an actual smoother for receiver.
const char * giveClassName () const
 Returns class name of the receiver.
StateCounterType giveNonlocalUpdateStateCounter ()
 Returns the value of nonlocalUpdateStateCounter.
void setNonlocalUpdateStateCounter (StateCounterType val)
 sets the value of nonlocalUpdateStateCounter
Advanced domain manipulation methods.
void resizeDofManagers (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize dofManagers.
void resizeElements (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize elements.
void resizeCrossSectionModels (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize cross section models.
void resizeMaterials (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize materials.
void resizeNonlocalBarriers (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize nonlocal barriers.
void resizeBoundaryConditions (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize boundary conditions.
void resizeInitialConditions (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize initial conditions.
void resizeLoadTimeFunctions (int _newSize)
 Resizes the internal data structure to accomodate space for _newSize load time functions.
void setDofManager (int i, DofManager *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setElement (int i, Element *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setCrossSection (int i, CrossSection *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setMaterial (int i, Material *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setNonlocalBarrier (int i, NonlocalBarrier *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setBoundaryCondition (int i, GeneralBoundaryCondition *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setInitialCondition (int i, InitialCondition *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setLoadTimeFunction (int i, LoadTimeFunction *obj)
 Sets i-th componet. The component will be futher managed and maintained by domain object.
void setXfemManager (XfemManager *xfemManager)
 Temporary function, sets xfemManager.
Domain transaction support methods.
The purpose of these methods is to privide a unified approach for changing domain at runtime (meaning mainly adding and deleting dofmanagers and elements).

The changes are recorded in transaction manager and untill the are commited, no change is reflected in domain itself.

DomainTransactionManagergiveTransactionManager ()
 Returns domain transaction manager.
int commitTransactions (DomainTransactionManager *tm)
 Commits transactions recorded in transaction manager.
void initGlobalDofManMap (bool forceinit=false)
void initGlobalElementMap (bool forceinit=false)
void renumberDofManagers ()
void renumberDofManData (DomainTransactionManager *tm)
void renumberElements ()
void renumberElementData (DomainTransactionManager *tm)
int LB_giveUpdatedLocalNumber (int oldnum, EntityRenumberingScheme scheme)
 Return updated local entity number after load balancing.
int LB_giveUpdatedGlobalNumber (int oldnum, EntityRenumberingScheme scheme)
 Return updated local entity number after load balancing.
Load Balancing support methods
int dofmanGlobal2Local (int _globnum)
int elementGlobal2Local (int _globnum)

Private Member Functions

void resolveDomainDofsDefaults (char *)
void error (const char *file, int line, const char *format,...)
void warning (const char *file, int line, const char *format,...)

Private Attributes

AList< Element > * elementList
 Element list.
AList< DofManager > * dofManagerList
 Dof manager list.
AList< Material > * materialList
 Material list.
AList< CrossSection > * crossSectionList
 Cross section list.
AList< GeneralBoundaryCondition > * bcList
 Boundary condition list.
AList< InitialCondition > * icList
 Initial condition list.
AList< LoadTimeFunction > * loadTimeFunctionList
 Load time function list.
AList< NonlocalBarrier > * nonlocalBarierList
 Nonlocal barier list.
AList< RandomFieldGenerator > * randomFieldGeneratorList
 List of Random generators.
int numberOfDefaultDofsPerNode
int numberOfDefaultDofsPerSide
IntArray defaultNodeDofIDArry
IntArray defaultSideDofIDArry
domainType dType
 Domain type.
EngngModelengineeringModel
 Associated Engineering model.
ConnectivityTableconnectivityTable
 Domain connectivity table.
SpatialLocalizerspatialLocalizer
 Spatial Localizer.
OutputManageroutputManager
 Output manager, allowing to filter the produced output.
int number
 Domain number.
int serialNumber
 Domain serial (version) number. Used for domain version identification during Adaptive computations.
NodalRecoveryModelsmoother
 nodal recovery object associated to receiver
StateCounterType nonlocalUpdateStateCounter
XfemManagerxfemManager
 xfemManager
DomainTransactionManagertransactionManager
 Transaction mamager.
std::map< int, DofManager * > dmanMap
 Global dof manager map (index is global of man number).
bool dmanMapInitialized
 dmanMap init flag
std::map< int, Element * > elementMap
 Global element map (index is global of man number).
bool elementMapInitialized
 dmanMap init flag
Load Balancing data structures
std::list< Element * > recvElemList
 List of received elements.


Detailed Description

Class and object Domain.

Domain contains mesh description, or if program runs in parrallel then it contains description of domain associated to particular processor or thread of execution. Generally, it contain and manages lists of Dof managers, elements, boundary conditions, cross sections and materials - these describe the geometry of problem, its constitutive properties and applied boundary conditions. Services for accessing these objects are provided. Domain is attribute of engineering model - which represent type of analysis which should be performed.

Domain also provides services for reading its description from input stream and instantiating corresponding components acordingly. The basic Domain task are following

Definition at line 109 of file domain.h.


Constructor & Destructor Documentation

Domain::Domain ( int  n,
int  serNum,
EngngModel pm 
)

Domain::~Domain (  ) 


Member Function Documentation

int Domain::giveNumber (  )  [inline]

void Domain::setNumber ( int  nn  )  [inline]

Returns domain number.

Definition at line 248 of file domain.h.

References number.

Referenced by AdaptiveNonLinearStatic::adaptiveRemap().

int Domain::giveSerialNumber (  )  [inline]

Returns domain serial (version) number.

Definition at line 250 of file domain.h.

References serialNumber.

Referenced by Subdivision::createMesh(), AdaptiveNonLinearStatic::initializeAdaptive(), EngngModel::restoreContext(), and EngngModel::saveContext().

Element * Domain::giveElement ( int  n  ) 

Service for accessing particular domain fe element.

Generates error if no such element is defined.

Parameters:
 n pointer to n-th element is returned

Definition at line 154 of file domain.C.

References _error2, AList< T >::at(), elementList, and AList< T >::includes().

Referenced by MMALeastSquareProjection::__init(), OutputManager::_testElementOutput(), AdaptiveNonLinearStatic::adaptiveRemap(), SUPG::applyIC(), NLTransientTransportProblem::applyIC(), CBS::applyIC(), NonLinearStatic::assemble(), EngngModel::assemble(), NonStationaryTransportProblem::assembleAlgorithmicPartOfRhs(), NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), StationaryTransportProblem::assembleDirichletBcRhsVector(), NonStationaryTransportProblem::assembleDirichletBcRhsVector(), EngngModel::assemblePrescribedVectorFromElements(), EngngModel::assembleVectorFromElements(), Subdivision::assignGlobalNumbersToElements(), Subdivision::RS_Tetra::bisect(), Subdivision::RS_Triangle::bisect(), SymCompCol::buildInternalStructure(), SkylineUnsym::buildInternalStructure(), Skyline::buildInternalStructure(), PetscSparseMtrx::buildInternalStructure(), DynCompRow::buildInternalStructure(), DynCompCol::buildInternalStructure(), CompCol::buildInternalStructure(), NonlocalMaterialExtensionInterface::buildNonlocalPointTable(), SUPG::checkConsistency(), StationaryTransportProblem::checkConsistency(), NonStationaryTransportProblem::checkConsistency(), LinearStatic::checkConsistency(), checkConsistency(), CBS::checkConsistency(), LEPlic::computeCriticalTimeStep(), PNlDEIDynamic::computeMassMtrx(), XfemManager::computeNodeEnrichmentType(), SPRNodalRecoveryModel::computePatch(), Targe2Interface::createInput(), T3DInterface::createInput(), FreemInterface::createInput(), Subdivision::createMesh(), WallClockLoadBalancerMonitor::decide(), LoadBalancer::deleteRemoteElements(), SPRNodalRecoveryModel::determinePatchAssemblyPoints(), LEPlic::doCellDLS(), OutputManager::doElementOutput(), LEPlic::doInterfaceReconstruction(), LEPlic::doInterfaceRemapping(), VTKXMLExportModule::doOutput(), VTKExportModule::doOutput(), HOMExportModule::doOutput(), ProblemCommunicator::ElemCmp(), PNlDEIDynamicComunicator::ElemCmp(), ZZErrorEstimator::estimateError(), HuertaErrorEstimator::estimateError(), PNlDEIDynamic::estimateMaxPackSize(), NonLinearStatic::estimateMaxPackSize(), LinearStatic::estimateMaxPackSize(), ZZRemeshingCriteria::estimateMeshDensities(), HuertaRemeshingCriteria::estimateMeshDensities(), LevelSetPCS::evalElemfContribution(), LevelSetPCS::evalElemFContribution(), SUPG::evaluateElementStabilizationCoeffs(), Subdivision::exchangeRemoteElements(), NonlocalMaterialWTP::fastRebuildNonlocalTables(), LEPlic::findCellLineConstant(), LevelSetPCS::FMMReinitialization(), SUPG::forceEquationNumbering(), EngngModel::forceEquationNumbering(), DummySpatialLocalizer::giveAllElementsWithIpWithinBox(), OctreeSpatialLocalizer::giveClosestIP(), DummySpatialLocalizer::giveClosestIP(), OctreeSpatialLocalizer::giveClosestIPWithinOctant(), ZZRemeshingCriteria::giveDofManDensity(), HuertaRemeshingCriteria::giveDofManDensity(), CombinedZZSIRemeshingCriteria::giveDofManDensity(), NonStationaryTransportProblem::giveElementCharacteristicMatrix(), EngngModel::giveElementCharacteristicMatrix(), DIIDynamic::giveElementCharacteristicMatrix(), SUPG::giveElementCharacteristicVector(), EngngModel::giveElementCharacteristicVector(), OctreeSpatialLocalizer::giveElementCloseToPoint(), DummySpatialLocalizer::giveElementCloseToPoint(), OctreeSpatialLocalizer::giveElementCloseToPointWithinOctant(), OctreeSpatialLocalizer::giveElementContainingPoint(), DummySpatialLocalizer::giveElementContainingPoint(), LevelSetPCS::giveElementMaterialMixture(), LEPlic::giveElementMaterialMixture(), ConnectivityTable::giveElementNeighbourList(), NonlocalMaterialWTP::giveElementNonlocalDepArry(), OctreeSpatialLocalizer::giveElementsWithIPWithinBox(), PNlDEIDynamic::giveInternalForces(), NonLinearStatic::giveInternalForces(), NlDEIDynamic::giveInternalForces(), DirectErrorIndicatorRC::giveLocalDofManDensity(), DirectErrorIndicatorRC::giveLocalDofManIndicator(), SUPG::giveNextStep(), CBS::giveNextStep(), LEPlic::giveNodalScalarRepresentation(), MicroMaterial::giveRealStressVector(), NodalRecoveryModel::giveRegionRecordMap(), NodalRecoveryModel::giveRegionRecordSize(), VTKExportModule::giveTotalRBRNumberOfNodes(), NonlocalMaterialWTP::init(), OctreeSpatialLocalizer::initElementIPDataStructure(), initGlobalElementMap(), SloanGraph::initialize(), FastMarchingMethod::initialize(), AdaptiveNonLinearStatic::initializeAdaptiveFrom(), SPRNodalRecoveryModel::initPatch(), ZZNodalRecoveryModel::initRegionMap(), SPRNodalRecoveryModel::initRegionMap(), NodalAveragingRecoveryModel::initRegionMap(), VTKXMLExportModule::initRegionNodeNumbering(), VTKExportModule::initRegionNodeNumbering(), NodalRecoveryModel::initRegionNodeNumbering(), EngngModel::initStepIncrements(), ConnectivityTable::instanciateConnectivityTable(), instanciateYourself(), LEPlicElementInterface::isBoundary(), EnrichmentItem::isDofManEnriched(), EIPrimaryUnknownMapper::mapAndUpdate(), NonlocalMaterialWTP::migrate(), LoadBalancer::migrateLoad(), LoadBalancer::packMigratingData(), NonlocalMaterialWTP::packMigratingElementDependencies(), StructuralEngngModel::packRemoteElementData(), Subdivision::packRemoteElements(), NonlocalMaterialWTP::packRemoteElements(), LevelSetPCS::pcs_stage1(), EngngModel::petsc_assemblePrescribedVectorFromElements(), EngngModel::petsc_assembleVectorFromElements(), LoadBalancer::printStatistics(), NonlocalMaterialExtensionInterface::rebuildNonlocalPointTable(), ZZNodalRecoveryModel::recoverValues(), NodalAveragingRecoveryModel::recoverValues(), LevelSetPCS::redistance(), RefinedElement::RefinedElement(), RefinedMesh::refineMeshGlobally(), EngngModel::restoreContext(), EngngModel::saveContext(), ProblemCommunicator::setUpCommunicationMapsForRemoteElementMode(), PNlDEIDynamicComunicator::setUpCommunicationMapsForRemoteElementMode(), Subdivision::smoothMesh(), FreemInterface::smoothNodalDensities(), FastMarchingMethod::solve(), HuertaErrorEstimator::solveRefinedElementProblem(), HuertaErrorEstimator::solveRefinedPatchProblem(), NlDEIDynamic::solveYourselfAt(), DEIDynamic::solveYourselfAt(), LinearStability::terminateLinStatic(), StructuralEngngModel::unpackRemoteElementData(), Subdivision::unpackSharedIrregulars(), NonlocalMaterialExtensionInterface::updateDomainBeforeNonlocAverage(), SUPG::updateElementsForNewInterfacePosition(), XfemManager::updateIntegrationRule(), SUPG::updateInternalState(), StructuralEngngModel::updateInternalState(), NLTransientTransportProblem::updateInternalState(), CBS::updateInternalState(), LevelSetPCS::updatePosition(), FastMarchingMethod::updateTrialValue(), and EngngModel::updateYourself().

EngngModel * Domain::giveEngngModel (  ) 

Returns engineering model to which receiver is associated.

Definition at line 376 of file domain.C.

References _error, and engineeringModel.

Referenced by MasterDof::askNewEquationNumber(), NonLinearStatic::assembleIncrementalReferenceLoadVectors(), Subdivision::assignGlobalNumbersToSharedIrregulars(), NewtonianFluidMaterial::checkConsistency(), BinghamFluidMaterial2::checkConsistency(), StructuralElement::computeBcLoadVectorAt(), PlaneStress2dXfem::computeBmatrixAt(), LIBeam3d2::computeBmatrixAt(), PlaneStress2dXfem::computeConstitutiveMatrixAt(), TR1_2D_SUPG::computeCriticalLEPlicTimeStep(), TR1_2D_CBS::computeCriticalTimeStep(), PY1_3D_SUPG::computeCriticalTimeStep(), MazarsMaterial::computeDamageParam(), TR1_2D_CBS::computeDensityRhsPressureTerms(), TR1_2D_CBS::computeDensityRhsVelocityTerms(), TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MB(), TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MB(), TR1_2D_SUPG2::computeDiffusionDerivativeTerm_MB(), TR1_2D_SUPG::computeDiffusionDerivativeTerm_MB(), SUPGElement2::computeDiffusionDerivativeTerm_MB(), TR1_2D_SUPG_AXI::computeDiffusionDerivativeTerm_MC(), TR1_2D_SUPG2_AXI::computeDiffusionDerivativeTerm_MC(), TR1_2D_SUPG_AXI::computeDiffusionTerm_MB(), TR1_2D_SUPG2_AXI::computeDiffusionTerm_MB(), TR1_2D_SUPG2::computeDiffusionTerm_MB(), TR1_2D_SUPG::computeDiffusionTerm_MB(), SUPGElement2::computeDiffusionTerm_MB(), TR1_2D_SUPG_AXI::computeDiffusionTerm_MC(), TR1_2D_SUPG2_AXI::computeDiffusionTerm_MC(), TR1_2D_CBS::computeDiffusionTermsI(), XfemManager::computeFictPosition(), LIBeam3d2::computeGtoLRotationMatrix(), Beam3d::computeKappaCoeffs(), TR1_2D_CBS::computePrescribedTractionPressure(), B3Material::computeShrinkageStrainVector(), MacroLSpace::computeStiffnessMatrix(), Q4Axisymm::computeStrainVector(), NLStructuralElement::computeStrainVector(), L4Axisymm::computeStrainVector(), Axisymm3d::computeStrainVector(), StructuralMaterial::computeStressIndependentStrainVector(), PlaneStress2dXfem::computeStressVector(), T3DInterface::createInput(), Subdivision::createMesh(), LoadBalancer::deleteRemoteDofManagers(), LoadBalancer::deleteRemoteElements(), LEPlic::doLagrangianPhase(), HuertaErrorEstimator::estimateError(), FETISolver::estimateMaxPackSize(), DirectErrorIndicatorRC::estimateMeshDensities(), DirectErrorIndicatorRC::exchangeDofManDensities(), DirectErrorIndicatorRC::exchangeDofManIndicatorVals(), ZZNodalRecoveryModel::exchangeDofManValues(), SPRNodalRecoveryModel::exchangeDofManValues(), NodalAveragingRecoveryModel::exchangeDofManValues(), Subdivision::exchangeRemoteElements(), Subdivision::exchangeSharedEdges(), Subdivision::exchangeSharedIrregulars(), TractionPressureBC::give(), PlaneStress2dXfem::giveDofManDofIDMask(), MaxwellChainMaterial::giveEndOfTimeOfInterest(), TR1_2D_SUPG::giveIPValue(), StructuralMaterial::giveIPValue(), RerShell::giveIPValue(), Beam2d::giveKappaCoeff(), PlaneStress2dXfem::giveLocationArray(), Subdivision::giveNumberOfProcesses(), DofManager::givePartitionsConnectivitySize(), Subdivision::giveRank(), TwoFluidMaterial::giveTempVOF(), MasterDof::giveUnknown(), MasterDof::giveUnknownsDictionaryValue(), NonlocalMaterialWTP::init(), ZZNodalRecoveryModel::initCommMaps(), SPRNodalRecoveryModel::initCommMaps(), NodalAveragingRecoveryModel::initCommMaps(), Node::initializeFrom(), EnrichmentItem::initializeFrom(), DirectErrorIndicatorRC::initializeFrom(), instanciateYourself(), PetscOrdering_Base::isLocal(), DofManager::isLocal(), EIPrimaryUnknownMapper::mapAndUpdate(), NonlocalMaterialWTP::migrate(), LoadBalancer::migrateLoad(), LoadBalancer::packMigratingData(), NonlocalMaterialWTP::packMigratingElementDependencies(), Subdivision::packRemoteElements(), NonlocalMaterialWTP::packRemoteElements(), RerShell::printOutputAt(), DofManager::printOutputAt(), LoadBalancer::printStatistics(), SPRNodalRecoveryModel::recoverValues(), MasterDof::restoreContext(), MasterDof::saveContext(), HuertaErrorEstimator::saveContext(), FETISolver::setUpCommunicationMaps(), HuertaErrorEstimator::setupRefinedProblemEpilog2(), HuertaErrorEstimator::setupRefinedProblemProlog(), SubspaceIteration::solve(), FETISolver::solve(), HuertaErrorEstimator::solveRefinedElementProblem(), HuertaErrorEstimator::solveRefinedPatchProblem(), OutputManager::testTimeStepOutput(), MasterDof::unpackAndUpdateUnknown(), LoadBalancer::unpackMigratingData(), NonlocalMaterialWTP::unpackMigratingElementDependencies(), Subdivision::unpackRemoteElements(), NonlocalMaterialWTP::unpackRemoteElements(), TR1_2D_SUPG_AXI::updateStabilizationCoeffs(), TR1_2D_SUPG2_AXI::updateStabilizationCoeffs(), TR1_2D_SUPG2::updateStabilizationCoeffs(), TR1_2D_SUPG::updateStabilizationCoeffs(), SUPGElement2::updateStabilizationCoeffs(), Concrete2::updateStirrups(), MasterDof::updateUnknownsDictionary(), Node::updateYourself(), XfemElementInterface::XfemElementInterface_prepareNodesForDelaunay(), and XfemElementInterface::XfemElementInterface_updateIntegrationRule().

Load * Domain::giveLoad ( int  n  ) 

GeneralBoundaryCondition * Domain::giveBc ( int  n  ) 

Service for accessing particular domain bc.

Generates error if no such bc is defined.

Parameters:
 n pointer to n-th bc is returned

Definition at line 212 of file domain.C.

References _error2, AList< T >::at(), bcList, and AList< T >::includes().

Referenced by SUPG::checkConsistency(), CBS::checkConsistency(), Subdivision::createMesh(), and MasterDof::giveBc().

InitialCondition * Domain::giveIc ( int  n  ) 

Service for accessing particular domain ic.

Generates error if no such ic is defined.

Parameters:
 n pointer to n-th ic is returned

Definition at line 224 of file domain.C.

References _error2, AList< T >::at(), icList, and AList< T >::includes().

Referenced by SUPG::checkConsistency(), CBS::checkConsistency(), Subdivision::createMesh(), and MasterDof::giveIc().

LoadTimeFunction * Domain::giveLoadTimeFunction ( int  n  ) 

Material * Domain::giveMaterial ( int  n  ) 

CrossSection * Domain::giveCrossSection ( int  n  ) 

Service for accessing particular domain cross section model.

Generates error if no such cross section model is defined.

Parameters:
 n pointer to n-th cross section is returned

Definition at line 321 of file domain.C.

References _error2, AList< T >::at(), crossSectionList, and AList< T >::includes().

Referenced by Subdivision::createMesh(), Element::giveCrossSection(), and HuertaErrorEstimator::setupRefinedProblemEpilog1().

NonlocalBarrier * Domain::giveNonlocalBarrier ( int  n  ) 

Service for accessing particular domain nonlocal barier representation.

Generates error if no such barrier model is defined.

Parameters:
 n pointer to n-th barrier is returned

Definition at line 335 of file domain.C.

References _error2, AList< T >::at(), AList< T >::includes(), and nonlocalBarierList.

Referenced by NonlocalMaterialExtensionInterface::applyBarrierConstraints(), and Subdivision::createMesh().

RandomFieldGenerator * Domain::giveRandomFieldGenerator ( int  n  ) 

Service for accessing particular domain andom field generator.

Generates error if no such generator is defined.

Parameters:
 n pointer to n-th object is returned

Definition at line 348 of file domain.C.

References _error2, AList< T >::at(), AList< T >::includes(), and randomFieldGeneratorList.

Node * Domain::giveNode ( int  n  ) 

Service for accessing particular domain node.

Generates error if no such node is defined. Note: nodes and element sides share common numbering (they are numbered as DofManagers).

Parameters:
 n pointer to n-th node is returned

Definition at line 269 of file domain.C.

References _error2, AList< T >::at(), dofManagerList, DofManager::giveClassID(), HangingNodeClass, AList< T >::includes(), NodeClass, and RigidArmNodeClass.

Referenced by PlaneStress2d::computeLoadLEToLRotationMatrix(), L4Axisymm::computeLoadLEToLRotationMatrix(), QSpace::computeLoadLSToLRotationMatrix(), LSpace::computeLoadLSToLRotationMatrix(), InterfaceElem1d::computeLocalSlipDir(), CylindricalALM::convertHPCMap(), T3DInterface::createInput(), FreemInterface::createInput(), Subdivision::createMesh(), SPRNodalRecoveryModel::determineValuesFromPatch(), VTKXMLExportModule::doOutput(), VTKExportModule::doOutput(), VTKXMLExportModule::exportIntVarAs(), VTKExportModule::exportIntVarAs(), VTKXMLExportModule::exportPrimVarAs(), VTKExportModule::exportPrimVarAs(), LIBeam3dNL2::giveLocalCoordinateSystem(), LIBeam3dNL::giveLocalCoordinateSystem(), LIBeam3d2::giveLocalCoordinateSystem(), LIBeam3d::giveLocalCoordinateSystem(), Beam3d::giveLocalCoordinateSystem(), Element::giveNode(), OctreeSpatialLocalizer::giveNodesWithinBox(), LevelSetPCS::initialize(), NRSolver::initPrescribedEqs(), PolylineNonlocalBarrier::isActivated(), EIPrimaryUnknownMapper::mapAndUpdate(), FEInterpolation::nodes2coords(), FastMarchingMethod::updateTrialValue(), and EngngModel::updateYourself().

ElementSide * Domain::giveSide ( int  n  ) 

Service for accessing particular domain element side.

Generates error if no such element side is defined. Note: nodes and element sides share common numbering (they are numbered as DofManagers).

Parameters:
 n pointer to n-th element side is returned

Definition at line 288 of file domain.C.

References _error2, AList< T >::at(), dofManagerList, ElementSideClass, DofManager::giveClassID(), and AList< T >::includes().

Referenced by Element::giveSide().

DofManager * Domain::giveDofManager ( int  n  ) 

Service for accessing particular domain dof manager.

Generates error if no such dof manager is defined. Note: nodes and element sides share common numbering (they are numbered as DofManagers).

Parameters:
 n pointer to n-th dof manager is returned

Definition at line 305 of file domain.C.

References _error2, AList< T >::at(), dofManagerList, and AList< T >::includes().

Referenced by OutputManager::_testDofManOutput(), SUPG::applyIC(), NonStationaryTransportProblem::applyIC(), CBS::applyIC(), PLinearStatic::assembleVectorFromDofManagers(), EngngModel::assembleVectorFromDofManagers(), EngngModel::balanceLoad(), OctreeSpatialLocalizer::buildOctreeDataStructure(), StructuralEngngModel::buildReactionTable(), RigidArmNode::checkConsistency(), Node::checkConsistency(), HangingNode::checkConsistency(), checkConsistency(), PlaneStress2dXfem::computeBmatrixAt(), PlaneStress2dXfem::computeNumberOfDofs(), LoadBalancer::deleteRemoteDofManagers(), SPRNodalRecoveryModel::determinePatchAssemblyPoints(), OutputManager::doDofManOutput(), ProblemCommunicator::DofManCmp(), PNlDEIDynamicComunicator::DofManCmp(), LEPlic::doLagrangianPhase(), PNlDEIDynamic::estimateMaxPackSize(), NonLinearStatic::estimateMaxPackSize(), LinearStatic::estimateMaxPackSize(), FETISolver::estimateMaxPackSize(), DirectErrorIndicatorRC::exchangeDofManDensities(), DirectErrorIndicatorRC::exchangeDofManIndicatorVals(), Subdivision::exchangeRemoteElements(), SUPG::forceEquationNumbering(), EngngModel::forceEquationNumbering(), DummySpatialLocalizer::giveAllNodesWithinBox(), Element::giveDofManager(), DirectErrorIndicatorRC::giveDofManDensity(), DirectErrorIndicatorRC::giveDofManIndicator(), PlaneStress2dXfem::giveLocationArray(), SlaveDof::giveMasterDof(), SimpleSlaveDof::giveMasterDof(), PetscNatural2LocalOrdering::init(), PetscNatural2GlobalOrdering::init(), initGlobalDofManMap(), SloanGraph::initialize(), OctreeSpatialLocalizer::insertNodeIntoOctree(), instanciateYourself(), LB_giveUpdatedLocalNumber(), FETISolver::masterMapDirectionVector(), FETISolver::masterMapPPVector(), FETISolver::masterMapRBM(), FETISolver::masterMapResiduals(), FETISolver::masterMapSolution(), LoadBalancer::migrateLoad(), StructuralEngngModel::packInternalForces(), StructuralEngngModel::packLoad(), PNlDEIDynamic::packMasses(), NonLinearStatic::packMigratingData(), LoadBalancer::packMigratingData(), FETISolver::packPPVector(), FETISolver::packRBM(), StructuralEngngModel::packReactions(), Subdivision::packRemoteElements(), NonlocalMaterialWTP::packRemoteElements(), FETISolver::packResiduals(), EngngModel::petsc_assemblePrescribedVectorFromDofManagers(), EngngModel::petsc_assembleVectorFromDofManagers(), StructuralEngngModel::printReactionForces(), LoadBalancer::printStatistics(), SPRNodalRecoveryModel::recoverValues(), EngngModel::restoreContext(), SlaveDof::saveContext(), SimpleSlaveDof::saveContext(), EngngModel::saveContext(), FETISolver::setUpCommunicationMaps(), FETICommunicator::setUpCommunicationMaps(), ProblemCommunicator::setUpCommunicationMapsForElementCut(), PNlDEIDynamicComunicator::setUpCommunicationMapsForElementCut(), ProblemCommunicator::setUpCommunicationMapsForNodeCut(), PNlDEIDynamicComunicator::setUpCommunicationMapsForNodeCut(), FreemInterface::smoothNodalDensities(), HuertaErrorEstimator::solveRefinedPatchProblem(), SUPG::solveYourselfAt(), PNlDEIDynamic::solveYourselfAt(), NlDEIDynamic::solveYourselfAt(), DIIDynamic::solveYourselfAt(), DEIDynamic::solveYourselfAt(), LinearStability::terminate(), EigenValueDynamic::terminate(), LinearStability::terminateLinStatic(), FETISolver::unpackDirectionVector(), StructuralEngngModel::unpackInternalForces(), StructuralEngngModel::unpackLoad(), PNlDEIDynamic::unpackMasses(), NonLinearStatic::unpackMigratingData(), StructuralEngngModel::unpackReactions(), DirectErrorIndicatorRC::unpackSharedDofManLocalDensities(), DirectErrorIndicatorRC::unpackSharedDofManLocalIndicatorVals(), FETISolver::unpackSolution(), SUPG::updateDofUnknownsDictionary_corrector(), SUPG::updateDofUnknownsDictionary_predictor(), SUPG::updateInternalState(), StructuralEngngModel::updateInternalState(), NLTransientTransportProblem::updateInternalState(), CBS::updateInternalState(), LevelSetPCS::updatePosition(), and EngngModel::updateYourself().

int Domain::instanciateYourself ( DataReader dr  ) 

Reads receiver description from input stream and creates corresponding components accordingly.

It scans input file, each line is assumed to be single record describing type and parameters for specific entity in domain. The record line is converted to lowercase letters. Corresponding component is created using ofType member function of corresponding base class, sending component name (extracted from corresponding record) as parameter. After new object is created, its initializeFrom member function is called with its record as parameter. The ofType member functions are using global user modifiable functions to allow simple extension of library. See base classes documentation for details.

Parameters:
inputStream input stream with domain description
Returns:
nonzero if o.k.
See also:
FemComponent::initializeFrom

Definition at line 407 of file domain.C.

References _error2, bcList, CreateUsrDefNonlocalBarrierOfType(), CreateUsrDefRandomFieldGenerator(), crossSectionList, dofManagerList, elementList, InputRecord::finish(), giveClassName(), giveDofManager(), giveElement(), giveEngngModel(), InputRecord::giveField(), DataReader::giveInputRecord(), giveNumberOfDefaultNodeDofs(), giveNumberOfDefaultSideDofs(), InputRecord::giveOptionalField(), EngngModel::giveOutputStream(), AList< T >::growTo(), icList, IFT_Domain_nbarrier, IFT_Domain_nbc, IFT_Domain_ncrosssect, IFT_Domain_ndofman, IFT_Domain_nelem, IFT_Domain_nic, IFT_Domain_nloadtimefunct, IFT_Domain_nmat, IFT_Domain_nrfg, IFT_Domain_type, AList< T >::includes(), InitialCondition::initializeFrom(), RandomFieldGenerator::initializeFrom(), FEMComponent::initializeFrom(), OutputManager::initializeFrom(), DataReader::IR_bcRec, DataReader::IR_crosssectRec, DataReader::IR_dofmanRec, DataReader::IR_domainCompRec, DataReader::IR_domainRec, DataReader::IR_elemRec, IR_GIVE_FIELD, IR_GIVE_RECORD_KEYWORD_FIELD, DataReader::IR_icRec, IR_IOERR, DataReader::IR_ltfRec, DataReader::IR_matRec, DataReader::IR_nlocBarRec, DataReader::IR_nRandomFieldGenRec, DataReader::IR_outManRec, IRRT_OK, loadTimeFunctionList, materialList, MAX_NAME_LENGTH, nonlocalBarierList, number, outputManager, AList< T >::put(), randomFieldGeneratorList, resolveDomainDofsDefaults(), Element::setGlobalNumber(), Element::updateLocalNumbering(), DofManager::updateLocalNumbering(), and VERBOSE_PRINT0.

Referenced by AdaptiveNonLinearStatic::initializeAdaptive(), EngngModel::instanciateDomains(), and EngngModel::restoreContext().

int Domain::giveNumberOfDofManagers (  )  [inline]

Returns number of dof managers in domain.

Definition at line 354 of file domain.h.

References dofManagerList, and AList< T >::giveSize().

Referenced by SUPG::applyIC(), NonStationaryTransportProblem::applyIC(), CBS::applyIC(), PLinearStatic::assembleVectorFromDofManagers(), EngngModel::assembleVectorFromDofManagers(), SloanGraph::assignNewNumbers(), SloanGraph::assignOldNumbers(), EngngModel::balanceLoad(), OctreeSpatialLocalizer::buildOctreeDataStructure(), StructuralEngngModel::buildReactionTable(), checkConsistency(), XfemManager::computeFictPosition(), SloanGraph::computeProfileSize(), CylindricalALM::convertHPCMap(), T3DInterface::createInput(), FreemInterface::createInput(), Subdivision::createMesh(), LoadBalancer::deleteRemoteDofManagers(), SPRNodalRecoveryModel::determinePatchAssemblyPoints(), OutputManager::doDofManOutput(), LEPlic::doLagrangianPhase(), VTKExportModule::doOutput(), HuertaErrorEstimator::estimateError(), ZZRemeshingCriteria::estimateMeshDensities(), HuertaRemeshingCriteria::estimateMeshDensities(), DirectErrorIndicatorRC::estimateMeshDensities(), DirectErrorIndicatorRC::exchangeDofManDensities(), DirectErrorIndicatorRC::exchangeDofManIndicatorVals(), Subdivision::exchangeRemoteElements(), VTKExportModule::exportIntVarAs(), POIExportModule::exportPrimaryVars(), VTKExportModule::exportPrimVarAs(), SloanGraph::findBestRoot(), SloanGraph::findPeripheralNodes(), SloanGraph::findTopPriorityInQueue(), LevelSetPCS::FMMReinitialization(), SUPG::forceEquationNumbering(), EngngModel::forceEquationNumbering(), DummySpatialLocalizer::giveAllNodesWithinBox(), SloanGraph::giveFullProfileSize(), SloanGraph::giveNodeWithMinDegree(), SloanGraph::giveOptimalProfileDensity(), VTKExportModule::giveTotalRBRNumberOfNodes(), PetscNatural2LocalOrdering::init(), PetscNatural2GlobalOrdering::init(), NodalRecoveryModel::init(), initGlobalDofManMap(), SloanGraph::initialize(), LevelSetPCS::initialize(), FastMarchingMethod::initialize(), NRSolver::initPrescribedEqs(), VTKXMLExportModule::initRegionNodeNumbering(), VTKExportModule::initRegionNodeNumbering(), NodalRecoveryModel::initRegionNodeNumbering(), SloanGraph::initStatusAndPriority(), ConnectivityTable::instanciateConnectivityTable(), EIPrimaryUnknownMapper::mapAndUpdate(), LoadBalancer::migrateLoad(), SloanGraph::numberIsolatedNodes(), NonLinearStatic::packMigratingData(), LoadBalancer::packMigratingData(), LevelSetPCS::pcs_stage1(), EngngModel::petsc_assemblePrescribedVectorFromDofManagers(), EngngModel::petsc_assembleVectorFromDofManagers(), LoadBalancer::printStatistics(), ZZNodalRecoveryModel::recoverValues(), SPRNodalRecoveryModel::recoverValues(), NodalAveragingRecoveryModel::recoverValues(), LevelSetPCS::redistance(), RefinedMesh::refineMeshGlobally(), EngngModel::restoreContext(), EngngModel::saveContext(), FETISolver::setUpCommunicationMaps(), FETICommunicator::setUpCommunicationMaps(), ProblemCommunicator::setUpCommunicationMapsForElementCut(), PNlDEIDynamicComunicator::setUpCommunicationMapsForElementCut(), ProblemCommunicator::setUpCommunicationMapsForNodeCut(), PNlDEIDynamicComunicator::setUpCommunicationMapsForNodeCut(), FreemInterface::smoothNodalDensities(), SUPG::solveYourselfAt(), PNlDEIDynamic::solveYourselfAt(), NlDEIDynamic::solveYourselfAt(), DIIDynamic::solveYourselfAt(), DEIDynamic::solveYourselfAt(), LinearStability::terminate(), EigenValueDynamic::terminate(), LinearStability::terminateLinStatic(), SloanGraph::tryParameters(), NonLinearStatic::unpackMigratingData(), SUPG::updateDofUnknownsDictionary_corrector(), SUPG::updateDofUnknownsDictionary_predictor(), SUPG::updateInternalState(), StructuralEngngModel::updateInternalState(), NLTransientTransportProblem::updateInternalState(), CBS::updateInternalState(), LevelSetPCS::updatePosition(), NodalRecoveryModel::updateRegionRecoveredValues(), EngngModel::updateYourself(), SloanGraph::writeOptimalRenumberingTable(), and SloanGraph::writeRenumberingTable().

int Domain::giveNumberOfElements (  )  [inline]

Returns number of elements in domain.

Definition at line 356 of file domain.h.

References elementList, and AList< T >::giveSize().

Referenced by AdaptiveNonLinearStatic::adaptiveRemap(), SUPG::applyIC(), NLTransientTransportProblem::applyIC(), CBS::applyIC(), NonLinearStatic::assemble(), EngngModel::assemble(), NonStationaryTransportProblem::assembleAlgorithmicPartOfRhs(), NLTransientTransportProblem::assembleAlgorithmicPartOfRhs(), StationaryTransportProblem::assembleDirichletBcRhsVector(), NonStationaryTransportProblem::assembleDirichletBcRhsVector(), EngngModel::assemblePrescribedVectorFromElements(), EngngModel::assembleVectorFromElements(), Subdivision::assignGlobalNumbersToElements(), SymCompCol::buildInternalStructure(), SkylineUnsym::buildInternalStructure(), Skyline::buildInternalStructure(), PetscSparseMtrx::buildInternalStructure(), DynCompRow::buildInternalStructure(), DynCompCol::buildInternalStructure(), CompCol::buildInternalStructure(), HuertaErrorEstimator::buildRefinedMesh(), SUPG::checkConsistency(), StationaryTransportProblem::checkConsistency(), NonStationaryTransportProblem::checkConsistency(), LinearStatic::checkConsistency(), checkConsistency(), CBS::checkConsistency(), LEPlic::computeCriticalTimeStep(), PNlDEIDynamic::computeMassMtrx(), Targe2Interface::createInput(), T3DInterface::createInput(), FreemInterface::createInput(), Subdivision::createMesh(), WallClockLoadBalancerMonitor::decide(), LoadBalancer::deleteRemoteElements(), SPRNodalRecoveryModel::determinePatchAssemblyPoints(), OutputManager::doElementOutput(), LEPlic::doInterfaceReconstruction(), LEPlic::doInterfaceRemapping(), VTKXMLExportModule::doOutput(), VTKExportModule::doOutput(), HOMExportModule::doOutput(), ZZErrorEstimator::estimateError(), HuertaErrorEstimator::estimateError(), ZZRemeshingCriteria::estimateMeshDensities(), HuertaRemeshingCriteria::estimateMeshDensities(), SUPG::evaluateElementStabilizationCoeffs(), Subdivision::exchangeRemoteElements(), NonlocalMaterialWTP::fastRebuildNonlocalTables(), LevelSetPCS::FMMReinitialization(), SUPG::forceEquationNumbering(), EngngModel::forceEquationNumbering(), DummySpatialLocalizer::giveAllElementsWithIpWithinBox(), DummySpatialLocalizer::giveClosestIP(), DummySpatialLocalizer::giveElementCloseToPoint(), DummySpatialLocalizer::giveElementContainingPoint(), LevelSetPCS::giveElementMaterialMixture(), PNlDEIDynamic::giveInternalForces(), NonLinearStatic::giveInternalForces(), NlDEIDynamic::giveInternalForces(), SUPG::giveNextStep(), CBS::giveNextStep(), MicroMaterial::giveRealStressVector(), NodalRecoveryModel::giveRegionRecordMap(), NodalRecoveryModel::giveRegionRecordSize(), VTKExportModule::giveTotalRBRNumberOfNodes(), NonlocalMaterialWTP::init(), OctreeSpatialLocalizer::initElementIPDataStructure(), initGlobalElementMap(), SloanGraph::initialize(), AdaptiveNonLinearStatic::initializeAdaptiveFrom(), ZZNodalRecoveryModel::initRegionMap(), SPRNodalRecoveryModel::initRegionMap(), NodalAveragingRecoveryModel::initRegionMap(), VTKXMLExportModule::initRegionNodeNumbering(), VTKExportModule::initRegionNodeNumbering(), NodalRecoveryModel::initRegionNodeNumbering(), EngngModel::initStepIncrements(), ConnectivityTable::instanciateConnectivityTable(), NonlocalMaterialWTP::migrate(), LoadBalancer::migrateLoad(), LoadBalancer::packMigratingData(), NonlocalMaterialWTP::packMigratingElementDependencies(), Subdivision::packRemoteElements(), LevelSetPCS::pcs_stage1(), EngngModel::petsc_assemblePrescribedVectorFromElements(), EngngModel::petsc_assembleVectorFromElements(), LoadBalancer::printStatistics(), ZZNodalRecoveryModel::recoverValues(), NodalAveragingRecoveryModel::recoverValues(), LevelSetPCS::redistance(), RefinedMesh::refineMeshGlobally(), EngngModel::restoreContext(), EngngModel::saveContext(), ProblemCommunicator::setUpCommunicationMapsForRemoteElementMode(), PNlDEIDynamicComunicator::setUpCommunicationMapsForRemoteElementMode(), NlDEIDynamic::solveYourselfAt(), DEIDynamic::solveYourselfAt(), LinearStability::terminateLinStatic(), NonlocalMaterialExtensionInterface::updateDomainBeforeNonlocAverage(), SUPG::updateElementsForNewInterfacePosition(), XfemManager::updateIntegrationRule(), SUPG::updateInternalState(), StructuralEngngModel::updateInternalState(), NLTransientTransportProblem::updateInternalState(), CBS::updateInternalState(), and EngngModel::updateYourself().

int Domain::giveNumberOfMaterialModels (  )  [inline]

int Domain::giveNumberOfCrossSectionModels (  )  [inline]

int Domain::giveNumberOfBoundaryConditions (  )  [inline]

int Domain::giveNumberOfInitialConditions (  )  [inline]

Returns number of initial conditions in domain.

Definition at line 364 of file domain.h.

References AList< T >::giveSize(), and icList.

Referenced by SUPG::checkConsistency(), CBS::checkConsistency(), and Subdivision::createMesh().

int Domain::giveNumberOfLoadTimeFunctions (  )  [inline]

Returns number of load time functions in domain.

Definition at line 367 of file domain.h.

References AList< T >::giveSize(), and loadTimeFunctionList.

Referenced by Subdivision::createMesh(), HuertaErrorEstimator::solveRefinedElementProblem(), and HuertaErrorEstimator::solveRefinedPatchProblem().

int Domain::giveNumberOfRegions (  )  [inline]

int Domain::giveNumberOfNonlocalBarriers (  )  [inline]

int Domain::giveCorrespondingCoordinateIndex ( int  idof  ) 

Definition at line 1155 of file domain.C.

References _error, and dType.

Referenced by Node::giveUpdatedCoordinate(), and Node::updateYourself().

void Domain::resizeDofManagers ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize dofManagers.

Definition at line 389 of file domain.C.

References dofManagerList, and AList< T >::growTo().

void Domain::resizeElements ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize elements.

Definition at line 390 of file domain.C.

References elementList, and AList< T >::growTo().

void Domain::resizeCrossSectionModels ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize cross section models.

Definition at line 391 of file domain.C.

References crossSectionList, and AList< T >::growTo().

void Domain::resizeMaterials ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize materials.

Definition at line 392 of file domain.C.

References AList< T >::growTo(), and materialList.

void Domain::resizeNonlocalBarriers ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize nonlocal barriers.

Definition at line 393 of file domain.C.

References AList< T >::growTo(), and nonlocalBarierList.

void Domain::resizeBoundaryConditions ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize boundary conditions.

Definition at line 394 of file domain.C.

References bcList, and AList< T >::growTo().

void Domain::resizeInitialConditions ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize initial conditions.

Definition at line 395 of file domain.C.

References AList< T >::growTo(), and icList.

void Domain::resizeLoadTimeFunctions ( int  _newSize  ) 

Resizes the internal data structure to accomodate space for _newSize load time functions.

Definition at line 396 of file domain.C.

References AList< T >::growTo(), and loadTimeFunctionList.

void Domain::setDofManager ( int  i,
DofManager obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 398 of file domain.C.

References dofManagerList, and AList< T >::put().

void Domain::setElement ( int  i,
Element obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 399 of file domain.C.

References elementList, and AList< T >::put().

void Domain::setCrossSection ( int  i,
CrossSection obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 400 of file domain.C.

References crossSectionList, and AList< T >::put().

void Domain::setMaterial ( int  i,
Material obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 401 of file domain.C.

References materialList, and AList< T >::put().

void Domain::setNonlocalBarrier ( int  i,
NonlocalBarrier obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 402 of file domain.C.

References nonlocalBarierList, and AList< T >::put().

void Domain::setBoundaryCondition ( int  i,
GeneralBoundaryCondition obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 403 of file domain.C.

References bcList, and AList< T >::put().

void Domain::setInitialCondition ( int  i,
InitialCondition obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 404 of file domain.C.

References icList, and AList< T >::put().

void Domain::setLoadTimeFunction ( int  i,
LoadTimeFunction obj 
)

Sets i-th componet. The component will be futher managed and maintained by domain object.

Definition at line 405 of file domain.C.

References loadTimeFunctionList, and AList< T >::put().

void Domain::setXfemManager ( XfemManager xfemManager  ) 

Temporary function, sets xfemManager.

Definition at line 1684 of file domain.C.

const IntArray & Domain::giveDefaultNodeDofIDArry (  ) 

const IntArray & Domain::giveDefaultSideDofIDArry (  ) 

Returns default DofID array which defines physical meaning of partucular DOFs of element side dofs.

Default values are determined using current domain type.

Definition at line 929 of file domain.C.

References __domainTypeToString(), _error2, defaultSideDofIDArry, dType, and IntArray::resize().

int Domain::giveNumberOfDefaultNodeDofs (  ) 

int Domain::giveNumberOfDefaultSideDofs (  ) 

Returns default number of dofs per side.

Determined using current domain type.

Definition at line 992 of file domain.C.

References _warning, and numberOfDefaultDofsPerSide.

Referenced by instanciateYourself().

domainType Domain::giveDomainType (  )  [inline]

Returns domain type.

Definition at line 436 of file domain.h.

References dType.

Referenced by Subdivision::createMesh(), and HuertaErrorEstimator::setupRefinedProblemProlog().

void Domain::setDomainType ( domainType  _dType  )  [inline]

Sets domain type.

Definition at line 438 of file domain.h.

References dType.

int Domain::checkConsistency (  ) 

Checks internal consistency of domain and all domain componenets.

The checkConsistency of all domain components is invoked.

Returns:
nonzero if test is o.k.
See also:
FEMComponent::checkConsistency

Definition at line 1303 of file domain.C.

References FEMComponent::checkConsistency(), Element::checkConsistency(), DofManager::checkConsistency(), giveDofManager(), giveElement(), giveMaterial(), giveNumberOfDofManagers(), giveNumberOfElements(), and giveNumberOfMaterialModels().

Referenced by EngngModel::checkProblemConsistency().

ConnectivityTable * Domain::giveConnectivityTable (  ) 

SpatialLocalizer * Domain::giveSpatialLocalizer (  ) 

OutputManager* Domain::giveOutputManager (  )  [inline]

ErrorEstimator * Domain::giveErrorEstimator (  ) 

Returns Error Estimator associated to receiver.

Calls corresponding EngngModel Service.

Definition at line 1339 of file domain.C.

References engineeringModel, EngngModel::giveDomainErrorEstimator(), and number.

Referenced by Targe2Interface::createInput(), T3DInterface::createInput(), FreemInterface::createInput(), Subdivision::createMesh(), and Element::giveIPValue().

NodalRecoveryModel * Domain::giveSmoother (  ) 

Returns the actual Smoother associated to receiver.

Creates the default, if no one associated.

Definition at line 1108 of file domain.C.

References smoother.

Referenced by ZZErrorEstimator::estimateError(), and ZZErrorEstimatorInterface::ZZErrorEstimatorI_computeElementContributions().

void Domain::setSmoother ( NodalRecoveryModel smoother,
int  destroyOld = 1 
)

Sets the given smoother as an actual smoother for receiver.

Deletes the old one, unless the destroyOld flag has zero value. In the latter case, the reference to old smoother must be kept outside, the receiver does not provide any support for this at the moment.

Definition at line 1114 of file domain.C.

Referenced by ZZErrorEstimator::estimateError().

DomainTransactionManager * Domain::giveTransactionManager (  ) 

int Domain::commitTransactions ( DomainTransactionManager tm  ) 

Commits transactions recorded in transaction manager.

The purpose of transaction manager is to make the domain modification (adding and deleting components) possible and versatile.

The changes are recorded in transaction manager and untill the are commited, no change is reflected in domain itself. After transactions are commited, the local numbering can change. A message to the system is sent to update the numbering.

Definition at line 1361 of file domain.C.

References AList< T >::clear(), dmanMap, dofManagerList, DomainTransactionManager::dofmanTransactions, elementList, elementMap, DomainTransactionManager::elementTransactions, giveConnectivityTable(), giveSpatialLocalizer(), AList< T >::growTo(), SpatialLocalizer::init(), initGlobalDofManMap(), initGlobalElementMap(), AList< T >::put(), renumberDofManagers(), renumberDofManData(), renumberElementData(), renumberElements(), ConnectivityTable::reset(), and AList< T >::unlink().

Referenced by DomainTransactionManager::commitTransactions(), NonlocalMaterialWTP::migrate(), and LoadBalancer::migrateLoad().

void Domain::initGlobalDofManMap ( bool  forceinit = false  ) 

void Domain::initGlobalElementMap ( bool  forceinit = false  ) 

void Domain::renumberDofManagers (  ) 

Definition at line 1604 of file domain.C.

References dmanMap.

Referenced by commitTransactions().

void Domain::renumberDofManData ( DomainTransactionManager tm  ) 

void Domain::renumberElements (  ) 

Definition at line 1616 of file domain.C.

References elementMap.

Referenced by commitTransactions().

void Domain::renumberElementData ( DomainTransactionManager tm  ) 

int Domain::LB_giveUpdatedLocalNumber ( int  oldnum,
EntityRenumberingScheme  scheme 
)

Return updated local entity number after load balancing.

Definition at line 1626 of file domain.C.

References _error, _error2, ERS_DofManager, giveDofManager(), and FEMComponent::giveNumber().

Referenced by renumberDofManData(), and renumberElementData().

int Domain::LB_giveUpdatedGlobalNumber ( int  oldnum,
EntityRenumberingScheme  scheme 
)

Return updated local entity number after load balancing.

Definition at line 1643 of file domain.C.

References _error, _error2, dmanMap, ERS_DofManager, and FEMComponent::giveNumber().

Referenced by renumberDofManData(), and renumberElementData().

int Domain::dofmanGlobal2Local ( int  _globnum  ) 

int Domain::elementGlobal2Local ( int  _globnum  ) 

Definition at line 1673 of file domain.C.

References elementMap, and giveNumber().

Referenced by NonlocalMaterialWTP::fastRebuildNonlocalTables().

const char* Domain::giveClassName (  )  const [inline]

Returns class name of the receiver.

Definition at line 527 of file domain.h.

Referenced by instanciateYourself().

StateCounterType Domain::giveNonlocalUpdateStateCounter (  )  [inline]

Returns the value of nonlocalUpdateStateCounter.

Definition at line 530 of file domain.h.

References nonlocalUpdateStateCounter.

Referenced by NonlocalMaterialExtensionInterface::updateDomainBeforeNonlocAverage().

void Domain::setNonlocalUpdateStateCounter ( StateCounterType  val  )  [inline]

sets the value of nonlocalUpdateStateCounter

Definition at line 532 of file domain.h.

References nonlocalUpdateStateCounter.

Referenced by NonlocalMaterialExtensionInterface::updateDomainBeforeNonlocAverage().

void Domain::resolveDomainDofsDefaults ( char *  typeName  )  [private]

void Domain::error ( const char *  file,
int  line,
const char *  format,
  ... 
) [private]

Definition at line 800 of file domain.C.

References __OOFEM_ERROR3, MAX_ERROR_MSG_LENGTH, and number.

void Domain::warning ( const char *  file,
int  line,
const char *  format,
  ... 
) [private]

Definition at line 813 of file domain.C.

References __OOFEM_WARNING3, MAX_ERROR_MSG_LENGTH, and number.


Member Data Documentation

List of Random generators.

Definition at line 154 of file domain.h.

Referenced by Domain(), giveRandomFieldGenerator(), instanciateYourself(), and ~Domain().

Definition at line 159 of file domain.h.

Referenced by Domain(), giveNumberOfDefaultNodeDofs(), and resolveDomainDofsDefaults().

Definition at line 160 of file domain.h.

Referenced by Domain(), giveNumberOfDefaultSideDofs(), and resolveDomainDofsDefaults().

Definition at line 161 of file domain.h.

Referenced by giveDefaultNodeDofIDArry().

Definition at line 162 of file domain.h.

Referenced by giveDefaultSideDofIDArry().

Domain type.

Determined by input data. It determines the problem type (like plane stress or plane strain mode). According to this mode the default number of Dofs per node (or side) and their physical meaning are determined. These default settings can be redefined by particular node or side. See related documentation for details.

See also:
Node

ElementSide

Definition at line 170 of file domain.h.

Referenced by Domain(), giveCorrespondingCoordinateIndex(), giveDefaultNodeDofIDArry(), giveDefaultSideDofIDArry(), giveDomainType(), resolveDomainDofsDefaults(), and setDomainType().

Associated Engineering model.

An abstraction for type of analysis which will be prformed.

See also:
EngngModel

Definition at line 176 of file domain.h.

Referenced by Domain(), giveEngngModel(), and giveErrorEstimator().

Domain connectivity table.

Table is build upon request. Provides connectivity information of current domain.

See also:
ConnectivityTable

Definition at line 183 of file domain.h.

Referenced by Domain(), giveConnectivityTable(), and ~Domain().

Spatial Localizer.

It is build upon request. Provides the spatial localization services.

See also:
SpatialLocalizer class

Definition at line 189 of file domain.h.

Referenced by Domain(), giveSpatialLocalizer(), and ~Domain().

Output manager, allowing to filter the produced output.

Definition at line 193 of file domain.h.

Referenced by Domain(), giveOutputManager(), instanciateYourself(), and ~Domain().

int Domain::number [private]

Domain number.

Definition at line 195 of file domain.h.

Referenced by Domain(), error(), giveErrorEstimator(), giveNumber(), instanciateYourself(), setNumber(), and warning().

int Domain::serialNumber [private]

Domain serial (version) number. Used for domain version identification during Adaptive computations.

Definition at line 197 of file domain.h.

Referenced by Domain(), and giveSerialNumber().

nodal recovery object associated to receiver

Definition at line 199 of file domain.h.

Referenced by Domain(), giveSmoother(), and ~Domain().

Definition at line 210 of file domain.h.

Referenced by Domain(), giveNonlocalUpdateStateCounter(), and setNonlocalUpdateStateCounter().

xfemManager

Definition at line 212 of file domain.h.

Referenced by Domain(), and ~Domain().

Transaction mamager.

The purpose of this class is to make the domain modification (in terms of adding and deleting components) versatile.

Definition at line 219 of file domain.h.

Referenced by Domain(), giveTransactionManager(), and ~Domain().

std :: map< int, DofManager * > Domain::dmanMap [private]

Global dof manager map (index is global of man number).

Definition at line 221 of file domain.h.

Referenced by commitTransactions(), dofmanGlobal2Local(), initGlobalDofManMap(), LB_giveUpdatedGlobalNumber(), renumberDofManagers(), and renumberDofManData().

dmanMap init flag

Definition at line 223 of file domain.h.

Referenced by Domain(), and initGlobalDofManMap().

std :: map< int, Element * > Domain::elementMap [private]

Global element map (index is global of man number).

Definition at line 225 of file domain.h.

Referenced by commitTransactions(), elementGlobal2Local(), initGlobalElementMap(), renumberElementData(), and renumberElements().

dmanMap init flag

Definition at line 227 of file domain.h.

Referenced by Domain(), and initGlobalElementMap().

std :: list< Element * > Domain::recvElemList [private]

List of received elements.

Definition at line 233 of file domain.h.


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2003 Borek Patzak
Project e-mail: info@oofem.org
Generated at Mon Aug 24 11:52:19 2009 for OOFEM by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2001