MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
MAST::PhysicsDisciplineBase Class Reference

Detailed Description

Definition at line 56 of file physics_discipline_base.h.

#include <physics_discipline_base.h>

Inheritance diagram for MAST::PhysicsDisciplineBase:

Public Member Functions

 PhysicsDisciplineBase (libMesh::EquationSystems &eq_sys)
 
virtual ~PhysicsDisciplineBase ()
 virtual destructor More...
 
void add_dirichlet_bc (libMesh::boundary_id_type bid, MAST::DirichletBoundaryCondition &load)
 adds the specified Dirichlet boundary condition for the boundary with tag b_id More...
 
void add_point_load (MAST::PointLoadCondition &load)
 adds the specified point load More...
 
void add_side_load (libMesh::boundary_id_type bid, MAST::BoundaryConditionBase &load)
 adds the specified side loads for the boudnary with tag b_id More...
 
void add_volume_load (libMesh::subdomain_id_type bid, MAST::BoundaryConditionBase &load)
 adds the specified volume loads for the elements with subdomain tag s_id More...
 
void clear_loads ()
 clear the loads and pointer to static solution system for this structural model More...
 
void clear_system_dirichlet_bc (MAST::NonlinearSystem &sys) const
 clears the system dirichlet boundary conditions More...
 
void clear_volume_load (libMesh::subdomain_id_type sid, MAST::BoundaryConditionBase &load)
 clear the specified volume load from the applied loads More...
 
void constrain_subdomain_dofs_for_var (const libMesh::subdomain_id_type sid, const unsigned int var)
 constrain dofs on a subdomain to zero More...
 
libMesh::EquationSystems & get_equation_systems ()
 returns a reference to the libMesh::System object More...
 
const MAST::ElementPropertyCardBaseget_property_card (const libMesh::Elem &elem) const
 get property card for the specified element More...
 
const MAST::ElementPropertyCardBaseget_property_card (const MAST::GeomElem &elem) const
 get property card for the specified element More...
 
const MAST::ElementPropertyCardBaseget_property_card (const unsigned int sid) const
 get property card for the specified subdomain id i More...
 
void get_system_dirichlet_bc_dofs (libMesh::System &sys, std::set< unsigned int > &dof_ids) const
 Prepares a list of the constrained dofs for system sys and returns in dof_ids. More...
 
void init_system_dirichlet_bc (MAST::NonlinearSystem &sys) const
 initializes the system for dirichlet boundary conditions More...
 
const MAST::PointLoadSetTypepoint_loads () const
 
MAST::PointLoadSetTypepoint_loads ()
 
void remove_side_load (libMesh::boundary_id_type bid, MAST::BoundaryConditionBase &load)
 remove the specified side loads for the boudnary with tag b_id More...
 
void remove_volume_load (libMesh::subdomain_id_type bid, MAST::BoundaryConditionBase &load)
 remove the specified volume loads for the elements with subdomain tag s_id More...
 
void set_property_for_subdomain (const libMesh::subdomain_id_type sid, const MAST::ElementPropertyCardBase &prop)
 sets the same property for all elements in the specified subdomain More...
 
const MAST::SideBCMapTypeside_loads () const
 
MAST::SideBCMapTypeside_loads ()
 
const MAST::VolumeBCMapTypevolume_loads () const
 
MAST::VolumeBCMapTypevolume_loads ()
 

Protected Attributes

MAST::DirichletBCMapType _dirichlet_bc_map
 Dirichlet boundary condition map of boundary id and load. More...
 
MAST::PropertyCardMapType _element_property
 map of element property cards for each element More...
 
libMesh::EquationSystems & _eq_systems
 libMesh::System for which analysis is to be performed More...
 
MAST::PointLoadSetType _point_loads
 point loads More...
 
MAST::SideBCMapType _side_bc_map
 side boundary condition map of boundary id and load More...
 
std::map< libMesh::subdomain_id_type, std::vector< unsigned int > > _subdomain_var_constraint
 variables constrained on subdomain More...
 
MAST::VolumeBCMapType _vol_bc_map
 volume boundary condition map of boundary id and load More...
 

Constructor & Destructor Documentation

◆ PhysicsDisciplineBase()

MAST::PhysicsDisciplineBase::PhysicsDisciplineBase ( libMesh::EquationSystems &  eq_sys)
inline

Definition at line 61 of file physics_discipline_base.h.

◆ ~PhysicsDisciplineBase()

virtual MAST::PhysicsDisciplineBase::~PhysicsDisciplineBase ( )
inlinevirtual

virtual destructor

Definition at line 68 of file physics_discipline_base.h.

Member Function Documentation

◆ add_dirichlet_bc()

void MAST::PhysicsDisciplineBase::add_dirichlet_bc ( libMesh::boundary_id_type  bid,
MAST::DirichletBoundaryCondition load 
)

adds the specified Dirichlet boundary condition for the boundary with tag b_id

Definition at line 81 of file physics_discipline_base.cpp.

◆ add_point_load()

void MAST::PhysicsDisciplineBase::add_point_load ( MAST::PointLoadCondition load)

adds the specified point load

Definition at line 143 of file physics_discipline_base.cpp.

◆ add_side_load()

void MAST::PhysicsDisciplineBase::add_side_load ( libMesh::boundary_id_type  bid,
MAST::BoundaryConditionBase load 
)

adds the specified side loads for the boudnary with tag b_id

Definition at line 46 of file physics_discipline_base.cpp.

◆ add_volume_load()

void MAST::PhysicsDisciplineBase::add_volume_load ( libMesh::subdomain_id_type  bid,
MAST::BoundaryConditionBase load 
)

adds the specified volume loads for the elements with subdomain tag s_id

Definition at line 112 of file physics_discipline_base.cpp.

◆ clear_loads()

void MAST::PhysicsDisciplineBase::clear_loads ( )

clear the loads and pointer to static solution system for this structural model

Definition at line 38 of file physics_discipline_base.cpp.

◆ clear_system_dirichlet_bc()

void MAST::PhysicsDisciplineBase::clear_system_dirichlet_bc ( MAST::NonlinearSystem sys) const

clears the system dirichlet boundary conditions

Definition at line 236 of file physics_discipline_base.cpp.

◆ clear_volume_load()

void MAST::PhysicsDisciplineBase::clear_volume_load ( libMesh::subdomain_id_type  sid,
MAST::BoundaryConditionBase load 
)

clear the specified volume load from the applied loads

Definition at line 153 of file physics_discipline_base.cpp.

◆ constrain_subdomain_dofs_for_var()

void MAST::PhysicsDisciplineBase::constrain_subdomain_dofs_for_var ( const libMesh::subdomain_id_type  sid,
const unsigned int  var 
)

constrain dofs on a subdomain to zero

Definition at line 94 of file physics_discipline_base.cpp.

◆ get_equation_systems()

libMesh::EquationSystems& MAST::PhysicsDisciplineBase::get_equation_systems ( )
inline

returns a reference to the libMesh::System object

Definition at line 75 of file physics_discipline_base.h.

◆ get_property_card() [1/3]

const MAST::ElementPropertyCardBase & MAST::PhysicsDisciplineBase::get_property_card ( const libMesh::Elem &  elem) const

get property card for the specified element

Definition at line 196 of file physics_discipline_base.cpp.

◆ get_property_card() [2/3]

const MAST::ElementPropertyCardBase & MAST::PhysicsDisciplineBase::get_property_card ( const MAST::GeomElem elem) const

get property card for the specified element

Definition at line 207 of file physics_discipline_base.cpp.

◆ get_property_card() [3/3]

const MAST::ElementPropertyCardBase & MAST::PhysicsDisciplineBase::get_property_card ( const unsigned int  sid) const

get property card for the specified subdomain id i

Definition at line 184 of file physics_discipline_base.cpp.

◆ get_system_dirichlet_bc_dofs()

void MAST::PhysicsDisciplineBase::get_system_dirichlet_bc_dofs ( libMesh::System &  sys,
std::set< unsigned int > &  dof_ids 
) const

Prepares a list of the constrained dofs for system sys and returns in dof_ids.

Definition at line 251 of file physics_discipline_base.cpp.

◆ init_system_dirichlet_bc()

void MAST::PhysicsDisciplineBase::init_system_dirichlet_bc ( MAST::NonlinearSystem sys) const

initializes the system for dirichlet boundary conditions

Definition at line 220 of file physics_discipline_base.cpp.

◆ point_loads() [1/2]

const MAST::PointLoadSetType& MAST::PhysicsDisciplineBase::point_loads ( ) const
inline
Returns
a const reference to the point load boundary conditions

Definition at line 164 of file physics_discipline_base.h.

◆ point_loads() [2/2]

MAST::PointLoadSetType& MAST::PhysicsDisciplineBase::point_loads ( )
inline
Returns
a reference to the point load boundary conditions

Definition at line 171 of file physics_discipline_base.h.

◆ remove_side_load()

void MAST::PhysicsDisciplineBase::remove_side_load ( libMesh::boundary_id_type  bid,
MAST::BoundaryConditionBase load 
)

remove the specified side loads for the boudnary with tag b_id

Definition at line 62 of file physics_discipline_base.cpp.

◆ remove_volume_load()

void MAST::PhysicsDisciplineBase::remove_volume_load ( libMesh::subdomain_id_type  bid,
MAST::BoundaryConditionBase load 
)

remove the specified volume loads for the elements with subdomain tag s_id

Definition at line 125 of file physics_discipline_base.cpp.

◆ set_property_for_subdomain()

void MAST::PhysicsDisciplineBase::set_property_for_subdomain ( const libMesh::subdomain_id_type  sid,
const MAST::ElementPropertyCardBase prop 
)

sets the same property for all elements in the specified subdomain

Definition at line 172 of file physics_discipline_base.cpp.

◆ side_loads() [1/2]

const MAST::SideBCMapType& MAST::PhysicsDisciplineBase::side_loads ( ) const
inline
Returns
a const reference to the side boundary conditions

Definition at line 113 of file physics_discipline_base.h.

◆ side_loads() [2/2]

MAST::SideBCMapType& MAST::PhysicsDisciplineBase::side_loads ( )
inline
Returns
a reference to the side boundary conditions

Definition at line 121 of file physics_discipline_base.h.

◆ volume_loads() [1/2]

const MAST::VolumeBCMapType& MAST::PhysicsDisciplineBase::volume_loads ( ) const
inline
Returns
a const reference to the volume boundary conditions

Definition at line 149 of file physics_discipline_base.h.

◆ volume_loads() [2/2]

MAST::VolumeBCMapType& MAST::PhysicsDisciplineBase::volume_loads ( )
inline
Returns
a reference to the volume boundary conditions

Definition at line 156 of file physics_discipline_base.h.

Member Data Documentation

◆ _dirichlet_bc_map

MAST::DirichletBCMapType MAST::PhysicsDisciplineBase::_dirichlet_bc_map
protected

Dirichlet boundary condition map of boundary id and load.

Definition at line 246 of file physics_discipline_base.h.

◆ _element_property

MAST::PropertyCardMapType MAST::PhysicsDisciplineBase::_element_property
protected

map of element property cards for each element

Definition at line 236 of file physics_discipline_base.h.

◆ _eq_systems

libMesh::EquationSystems& MAST::PhysicsDisciplineBase::_eq_systems
protected

libMesh::System for which analysis is to be performed

Definition at line 231 of file physics_discipline_base.h.

◆ _point_loads

MAST::PointLoadSetType MAST::PhysicsDisciplineBase::_point_loads
protected

point loads

Definition at line 262 of file physics_discipline_base.h.

◆ _side_bc_map

MAST::SideBCMapType MAST::PhysicsDisciplineBase::_side_bc_map
protected

side boundary condition map of boundary id and load

Definition at line 241 of file physics_discipline_base.h.

◆ _subdomain_var_constraint

std::map<libMesh::subdomain_id_type, std::vector<unsigned int> > MAST::PhysicsDisciplineBase::_subdomain_var_constraint
protected

variables constrained on subdomain

Definition at line 252 of file physics_discipline_base.h.

◆ _vol_bc_map

MAST::VolumeBCMapType MAST::PhysicsDisciplineBase::_vol_bc_map
protected

volume boundary condition map of boundary id and load

Definition at line 257 of file physics_discipline_base.h.


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