OpenBeam
C++ library for static analysis of mechanical structures
Public Types | Public Member Functions | Static Public Member Functions | List of all members
openbeam::CLoadOnBeam Struct Referenceabstract

#include <loads.h>

Inheritance diagram for openbeam::CLoadOnBeam:
Inheritance graph
[legend]

Public Types

using Ptr = std::shared_ptr< CLoadOnBeam >
 
using ConstPtr = std::shared_ptr< const CLoadOnBeam >
 

Public Member Functions

virtual void computeStressAndEquivalentLoads (const CElement *el, ElementStress &stress, std::vector< array6 > &loads)=0
 
virtual void loadParamsFromSet (const mrpt::containers::yaml &p, const EvaluationContext &ctx)=0
 
virtual void meshLoad (CStructureProblem &meshed_fem, const std::vector< size_t > &meshed_element_idxs, const size_t original_bar_idx, const CStructureProblem &original_fem) const =0
 
virtual mrpt::opengl::CSetOfObjects::Ptr getVisualization (const CFiniteElementProblem &fem, const DrawStructureOptions &options, const DrawElementExtraParams &draw_el_params, const MeshOutputInfo *meshing_info) const =0
 
virtual void getVisualization_init (const CFiniteElementProblem &fem, const DrawStructureOptions &options, const DrawElementExtraParams &draw_el_params, const MeshOutputInfo *meshing_info) const
 
virtual void getVisualization_pre (const CFiniteElementProblem &fem, const DrawStructureOptions &options, const DrawElementExtraParams &draw_el_params, const MeshOutputInfo *meshing_info) const
 

Static Public Member Functions

static CLoadOnBeam::Ptr createLoadByName (const std::string &sName)
 

Detailed Description

Base for all loads that can be applied to beam, distributed or applied to a single point.

Member Function Documentation

◆ createLoadByName()

static CLoadOnBeam::Ptr openbeam::CLoadOnBeam::createLoadByName ( const std::string &  sName)
static

Class factory from element name, or nullptr for an unknown element: Element names:

◆ loadParamsFromSet()

virtual void openbeam::CLoadOnBeam::loadParamsFromSet ( const mrpt::containers::yaml &  p,
const EvaluationContext ctx 
)
pure virtual

Parse a set of parameters by (casi insensitive) name and set the element values from them. Each element must document the supported parameters and their meaning.

Implemented in openbeam::CLoadConcentratedForce, openbeam::CLoadDistributedTriangular, openbeam::CLoadDistributedUniform, and openbeam::CLoadConstTemperature.

◆ meshLoad()

virtual void openbeam::CLoadOnBeam::meshLoad ( CStructureProblem meshed_fem,
const std::vector< size_t > &  meshed_element_idxs,
const size_t  original_bar_idx,
const CStructureProblem original_fem 
) const
pure virtual

Decompose the distributed load as needed into the set of elements in which the original element has been meshed

Implemented in openbeam::CLoadConcentratedForce, openbeam::CLoadDistributedTriangular, openbeam::CLoadDistributedUniform, and openbeam::CLoadConstTemperature.


The documentation for this struct was generated from the following file: