82using StepQueue = std::map<unsigned, shared_ptr<Step>>;
116 [[nodiscard]]
virtual const shared_ptr<LongFactory>&
get_factory()
const = 0;
118 virtual bool insert(
const shared_ptr<future<void>>&) = 0;
122 virtual bool insert(
const shared_ptr<ExternalModule>&) = 0;
125 virtual bool insert(
const shared_ptr<Amplitude>&) = 0;
126 virtual bool insert(
const shared_ptr<Expression>&) = 0;
127 virtual bool insert(
const shared_ptr<Constraint>&) = 0;
128 virtual bool insert(
const shared_ptr<Converger>&) = 0;
129 virtual bool insert(
const shared_ptr<Criterion>&) = 0;
130 virtual bool insert(
const shared_ptr<Database>&) = 0;
131 virtual bool insert(
const shared_ptr<Element>&) = 0;
132 virtual bool insert(
const shared_ptr<Group>&) = 0;
133 virtual bool insert(
const shared_ptr<Integrator>&) = 0;
134 virtual bool insert(
const shared_ptr<Load>&) = 0;
135 virtual bool insert(
const shared_ptr<Material>&) = 0;
136 virtual bool insert(
const shared_ptr<Modifier>&) = 0;
137 virtual bool insert(
const shared_ptr<Node>&) = 0;
138 virtual bool insert(
const shared_ptr<Orientation>&) = 0;
139 virtual bool insert(
const shared_ptr<Recorder>&) = 0;
140 virtual bool insert(
const shared_ptr<Section>&) = 0;
141 virtual bool insert(
const shared_ptr<Solver>&) = 0;
142 virtual bool insert(
const shared_ptr<Step>&) = 0;
144 template<
typename T>
bool erase(
unsigned);
202 template<
typename T>
const shared_ptr<T>&
get(
unsigned);
203 template<
typename T>
const shared_ptr<T>&
get(uword);
204 template<
typename T> std::vector<shared_ptr<T>>
get(
const uvec&);
205 [[nodiscard]]
virtual const shared_ptr<Amplitude>&
get_amplitude(
unsigned)
const = 0;
206 [[nodiscard]]
virtual const shared_ptr<Expression>&
get_expression(
unsigned)
const = 0;
207 [[nodiscard]]
virtual const shared_ptr<Constraint>&
get_constraint(
unsigned)
const = 0;
208 [[nodiscard]]
virtual const shared_ptr<Converger>&
get_converger(
unsigned)
const = 0;
209 [[nodiscard]]
virtual const shared_ptr<Criterion>&
get_criterion(
unsigned)
const = 0;
210 [[nodiscard]]
virtual const shared_ptr<Database>&
get_database(
unsigned)
const = 0;
211 [[nodiscard]]
virtual const shared_ptr<Element>&
get_element(
unsigned)
const = 0;
212 [[nodiscard]]
virtual const shared_ptr<Group>&
get_group(
unsigned)
const = 0;
213 [[nodiscard]]
virtual const shared_ptr<Integrator>&
get_integrator(
unsigned)
const = 0;
214 [[nodiscard]]
virtual const shared_ptr<Load>&
get_load(
unsigned)
const = 0;
215 [[nodiscard]]
virtual const shared_ptr<Material>&
get_material(
unsigned)
const = 0;
216 [[nodiscard]]
virtual const shared_ptr<Modifier>&
get_modifier(
unsigned)
const = 0;
217 [[nodiscard]]
virtual const shared_ptr<Node>&
get_node(
unsigned)
const = 0;
218 [[nodiscard]]
virtual const shared_ptr<Orientation>&
get_orientation(
unsigned)
const = 0;
219 [[nodiscard]]
virtual const shared_ptr<Recorder>&
get_recorder(
unsigned)
const = 0;
220 [[nodiscard]]
virtual const shared_ptr<Section>&
get_section(
unsigned)
const = 0;
221 [[nodiscard]]
virtual const shared_ptr<Solver>&
get_solver(
unsigned)
const = 0;
222 [[nodiscard]]
virtual const shared_ptr<Step>&
get_step(
unsigned)
const = 0;
224 template<
typename T>
const std::vector<shared_ptr<T>>&
get_pool();
244 friend shared_ptr<Amplitude>&
get_amplitude(
const shared_ptr<DomainBase>&,
unsigned);
245 friend shared_ptr<Expression>&
get_expression(
const shared_ptr<DomainBase>&,
unsigned);
246 friend shared_ptr<Constraint>&
get_constraint(
const shared_ptr<DomainBase>&,
unsigned);
247 friend shared_ptr<Converger>&
get_converger(
const shared_ptr<DomainBase>&,
unsigned);
248 friend shared_ptr<Criterion>&
get_criterion(
const shared_ptr<DomainBase>&,
unsigned);
249 friend shared_ptr<Database>&
get_database(
const shared_ptr<DomainBase>&,
unsigned);
250 friend shared_ptr<Element>&
get_element(
const shared_ptr<DomainBase>&,
unsigned);
251 friend shared_ptr<Group>&
get_group(
const shared_ptr<DomainBase>&,
unsigned);
252 friend shared_ptr<Integrator>&
get_integrator(
const shared_ptr<DomainBase>&,
unsigned);
253 friend shared_ptr<Load>&
get_load(
const shared_ptr<DomainBase>&,
unsigned);
254 friend shared_ptr<Material>&
get_material(
const shared_ptr<DomainBase>&,
unsigned);
255 friend shared_ptr<Modifier>&
get_modifier(
const shared_ptr<DomainBase>&,
unsigned);
256 friend shared_ptr<Node>&
get_node(
const shared_ptr<DomainBase>&,
unsigned);
257 friend shared_ptr<Orientation>&
get_orientation(
const shared_ptr<DomainBase>&,
unsigned);
258 friend shared_ptr<Recorder>&
get_recorder(
const shared_ptr<DomainBase>&,
unsigned);
259 friend shared_ptr<Section>&
get_section(
const shared_ptr<DomainBase>&,
unsigned);
260 friend shared_ptr<Solver>&
get_solver(
const shared_ptr<DomainBase>&,
unsigned);
261 friend shared_ptr<Step>&
get_step(
const shared_ptr<DomainBase>&,
unsigned);
263 template<
typename T>
size_t get();
283 template<
typename T>
bool find(
unsigned);
284 template<
typename T>
bool find(uword);
285 template<
typename T>
bool find(
const uvec&);
295 [[nodiscard]]
virtual bool find_load(
unsigned)
const = 0;
298 [[nodiscard]]
virtual bool find_node(
unsigned)
const = 0;
303 [[nodiscard]]
virtual bool find_step(
unsigned)
const = 0;
359 [[nodiscard]]
virtual const std::vector<std::vector<unsigned>>&
get_color_map()
const = 0;
429 template<Statistics T>
void update(
const double value)
const {
update(
T, value); }
431 template<Statistics T> [[nodiscard]]
double stats()
const {
return stats(
T); }
442template<>
inline bool DomainBase::erase<Amplitude>(
const unsigned T) {
return erase_amplitude(
T); }
444template<>
inline bool DomainBase::erase<Expression>(
const unsigned T) {
return erase_expression(
T); }
446template<>
inline bool DomainBase::erase<Constraint>(
const unsigned T) {
return erase_constraint(
T); }
448template<>
inline bool DomainBase::erase<Converger>(
const unsigned T) {
return erase_converger(
T); }
450template<>
inline bool DomainBase::erase<Criterion>(
const unsigned T) {
return erase_criterion(
T); }
452template<>
inline bool DomainBase::erase<Database>(
const unsigned T) {
return erase_database(
T); }
454template<>
inline bool DomainBase::erase<Element>(
const unsigned T) {
return erase_element(
T); }
456template<>
inline bool DomainBase::erase<Group>(
const unsigned T) {
return erase_group(
T); }
458template<>
inline bool DomainBase::erase<Integrator>(
const unsigned T) {
return erase_integrator(
T); }
460template<>
inline bool DomainBase::erase<Load>(
const unsigned T) {
return erase_load(
T); }
462template<>
inline bool DomainBase::erase<Material>(
const unsigned T) {
return erase_material(
T); }
464template<>
inline bool DomainBase::erase<Modifier>(
const unsigned T) {
return erase_modifier(
T); }
466template<>
inline bool DomainBase::erase<Node>(
const unsigned T) {
return erase_node(
T); }
468template<>
inline bool DomainBase::erase<Orientation>(
const unsigned T) {
return erase_orientation(
T); }
470template<>
inline bool DomainBase::erase<Recorder>(
const unsigned T) {
return erase_recorder(
T); }
472template<>
inline bool DomainBase::erase<Section>(
const unsigned T) {
return erase_section(
T); }
474template<>
inline bool DomainBase::erase<Solver>(
const unsigned T) {
return erase_solver(
T); }
476template<>
inline bool DomainBase::erase<Step>(
const unsigned T) {
return erase_step(
T); }
478template<
typename T>
const shared_ptr<T>&
DomainBase::get(
unsigned) {
throw invalid_argument(
"unsupported"); }
480template<
typename T>
const shared_ptr<T>&
DomainBase::get(uword) {
throw invalid_argument(
"unsupported"); }
483 std::vector<shared_ptr<T>> output;
484 output.reserve(
P.n_elem);
486 for(
auto I :
P) output.emplace_back(get<T>(I));
491template<>
inline const shared_ptr<Amplitude>& DomainBase::get<Amplitude>(
const uword T) {
return get_amplitude(
static_cast<unsigned>(
T)); }
493template<>
inline const shared_ptr<Expression>& DomainBase::get<Expression>(
const uword T) {
return get_expression(
static_cast<unsigned>(
T)); }
495template<>
inline const shared_ptr<Constraint>& DomainBase::get<Constraint>(
const uword T) {
return get_constraint(
static_cast<unsigned>(
T)); }
497template<>
inline const shared_ptr<Converger>& DomainBase::get<Converger>(
const uword T) {
return get_converger(
static_cast<unsigned>(
T)); }
499template<>
inline const shared_ptr<Criterion>& DomainBase::get<Criterion>(
const uword T) {
return get_criterion(
static_cast<unsigned>(
T)); }
501template<>
inline const shared_ptr<Database>& DomainBase::get<Database>(
const uword T) {
return get_database(
static_cast<unsigned>(
T)); }
503template<>
inline const shared_ptr<Element>& DomainBase::get<Element>(
const uword T) {
return get_element(
static_cast<unsigned>(
T)); }
505template<>
inline const shared_ptr<Group>& DomainBase::get<Group>(
const uword T) {
return get_group(
static_cast<unsigned>(
T)); }
507template<>
inline const shared_ptr<Integrator>& DomainBase::get<Integrator>(
const uword T) {
return get_integrator(
static_cast<unsigned>(
T)); }
509template<>
inline const shared_ptr<Load>& DomainBase::get<Load>(
const uword T) {
return get_load(
static_cast<unsigned>(
T)); }
511template<>
inline const shared_ptr<Material>& DomainBase::get<Material>(
const uword T) {
return get_material(
static_cast<unsigned>(
T)); }
513template<>
inline const shared_ptr<Modifier>& DomainBase::get<Modifier>(
const uword T) {
return get_modifier(
static_cast<unsigned>(
T)); }
515template<>
inline const shared_ptr<Node>& DomainBase::get<Node>(
const uword T) {
return get_node(
static_cast<unsigned>(
T)); }
517template<>
inline const shared_ptr<Orientation>& DomainBase::get<Orientation>(
const uword T) {
return get_orientation(
static_cast<unsigned>(
T)); }
519template<>
inline const shared_ptr<Recorder>& DomainBase::get<Recorder>(
const uword T) {
return get_recorder(
static_cast<unsigned>(
T)); }
521template<>
inline const shared_ptr<Section>& DomainBase::get<Section>(
const uword T) {
return get_section(
static_cast<unsigned>(
T)); }
523template<>
inline const shared_ptr<Solver>& DomainBase::get<Solver>(
const uword T) {
return get_solver(
static_cast<unsigned>(
T)); }
525template<>
inline const shared_ptr<Step>& DomainBase::get<Step>(
const uword T) {
return get_step(
static_cast<unsigned>(
T)); }
527template<>
inline const shared_ptr<Amplitude>& DomainBase::get<Amplitude>(
const unsigned T) {
return get_amplitude(
T); }
529template<>
inline const shared_ptr<Expression>& DomainBase::get<Expression>(
const unsigned T) {
return get_expression(
T); }
531template<>
inline const shared_ptr<Constraint>& DomainBase::get<Constraint>(
const unsigned T) {
return get_constraint(
T); }
533template<>
inline const shared_ptr<Converger>& DomainBase::get<Converger>(
const unsigned T) {
return get_converger(
T); }
535template<>
inline const shared_ptr<Criterion>& DomainBase::get<Criterion>(
const unsigned T) {
return get_criterion(
T); }
537template<>
inline const shared_ptr<Database>& DomainBase::get<Database>(
const unsigned T) {
return get_database(
T); }
539template<>
inline const shared_ptr<Element>& DomainBase::get<Element>(
const unsigned T) {
return get_element(
T); }
541template<>
inline const shared_ptr<Group>& DomainBase::get<Group>(
const unsigned T) {
return get_group(
T); }
543template<>
inline const shared_ptr<Integrator>& DomainBase::get<Integrator>(
const unsigned T) {
return get_integrator(
T); }
545template<>
inline const shared_ptr<Load>& DomainBase::get<Load>(
const unsigned T) {
return get_load(
T); }
547template<>
inline const shared_ptr<Material>& DomainBase::get<Material>(
const unsigned T) {
return get_material(
T); }
549template<>
inline const shared_ptr<Modifier>& DomainBase::get<Modifier>(
const unsigned T) {
return get_modifier(
T); }
551template<>
inline const shared_ptr<Node>& DomainBase::get<Node>(
const unsigned T) {
return get_node(
T); }
553template<>
inline const shared_ptr<Orientation>& DomainBase::get<Orientation>(
const unsigned T) {
return get_orientation(
T); }
555template<>
inline const shared_ptr<Recorder>& DomainBase::get<Recorder>(
const unsigned T) {
return get_recorder(
T); }
557template<>
inline const shared_ptr<Section>& DomainBase::get<Section>(
const unsigned T) {
return get_section(
T); }
559template<>
inline const shared_ptr<Solver>& DomainBase::get<Solver>(
const unsigned T) {
return get_solver(
T); }
561template<>
inline const shared_ptr<Step>& DomainBase::get<Step>(
const unsigned T) {
return get_step(
T); }
563template<
typename T>
const std::vector<shared_ptr<T>>&
DomainBase::get_pool() {
throw invalid_argument(
"unsupported"); }
565template<>
inline const std::vector<shared_ptr<Amplitude>>& DomainBase::get_pool<Amplitude>() {
return get_amplitude_pool(); }
567template<>
inline const std::vector<shared_ptr<Expression>>& DomainBase::get_pool<Expression>() {
return get_expression_pool(); }
569template<>
inline const std::vector<shared_ptr<Constraint>>& DomainBase::get_pool<Constraint>() {
return get_constraint_pool(); }
571template<>
inline const std::vector<shared_ptr<Converger>>& DomainBase::get_pool<Converger>() {
return get_converger_pool(); }
573template<>
inline const std::vector<shared_ptr<Criterion>>& DomainBase::get_pool<Criterion>() {
return get_criterion_pool(); }
575template<>
inline const std::vector<shared_ptr<Database>>& DomainBase::get_pool<Database>() {
return get_database_pool(); }
577template<>
inline const std::vector<shared_ptr<Element>>& DomainBase::get_pool<Element>() {
return get_element_pool(); }
579template<>
inline const std::vector<shared_ptr<Group>>& DomainBase::get_pool<Group>() {
return get_group_pool(); }
581template<>
inline const std::vector<shared_ptr<Integrator>>& DomainBase::get_pool<Integrator>() {
return get_integrator_pool(); }
583template<>
inline const std::vector<shared_ptr<Load>>& DomainBase::get_pool<Load>() {
return get_load_pool(); }
585template<>
inline const std::vector<shared_ptr<Material>>& DomainBase::get_pool<Material>() {
return get_material_pool(); }
587template<>
inline const std::vector<shared_ptr<Modifier>>& DomainBase::get_pool<Modifier>() {
return get_modifier_pool(); }
589template<>
inline const std::vector<shared_ptr<Node>>& DomainBase::get_pool<Node>() {
return get_node_pool(); }
591template<>
inline const std::vector<shared_ptr<Orientation>>& DomainBase::get_pool<Orientation>() {
return get_orientation_pool(); }
593template<>
inline const std::vector<shared_ptr<Recorder>>& DomainBase::get_pool<Recorder>() {
return get_recorder_pool(); }
595template<>
inline const std::vector<shared_ptr<Section>>& DomainBase::get_pool<Section>() {
return get_section_pool(); }
597template<>
inline const std::vector<shared_ptr<Solver>>& DomainBase::get_pool<Solver>() {
return get_solver_pool(); }
599template<
typename T>
size_t DomainBase::get() {
throw invalid_argument(
"unsupported"); }
601template<>
inline size_t DomainBase::get<Amplitude>() {
return get_amplitude(); }
603template<>
inline size_t DomainBase::get<Expression>() {
return get_expression(); }
605template<>
inline size_t DomainBase::get<Constraint>() {
return get_constraint(); }
607template<>
inline size_t DomainBase::get<Converger>() {
return get_converger(); }
609template<>
inline size_t DomainBase::get<Criterion>() {
return get_criterion(); }
611template<>
inline size_t DomainBase::get<Database>() {
return get_database(); }
613template<>
inline size_t DomainBase::get<Element>() {
return get_element(); }
615template<>
inline size_t DomainBase::get<Group>() {
return get_group(); }
617template<>
inline size_t DomainBase::get<Integrator>() {
return get_integrator(); }
619template<>
inline size_t DomainBase::get<Load>() {
return get_load(); }
621template<>
inline size_t DomainBase::get<Material>() {
return get_material(); }
623template<>
inline size_t DomainBase::get<Modifier>() {
return get_modifier(); }
625template<>
inline size_t DomainBase::get<Node>() {
return get_node(); }
629template<>
inline size_t DomainBase::get<Recorder>() {
return get_recorder(); }
631template<>
inline size_t DomainBase::get<Section>() {
return get_section(); }
633template<>
inline size_t DomainBase::get<Solver>() {
return get_solver(); }
635template<>
inline size_t DomainBase::get<Step>() {
return get_step(); }
637template<
typename T>
bool DomainBase::find(
unsigned) {
throw invalid_argument(
"unsupported"); }
639template<
typename T>
bool DomainBase::find(uword) {
throw invalid_argument(
"unsupported"); }
642 for(
auto I :
P)
if(!find<T>(I))
return false;
647template<>
inline bool DomainBase::find<Amplitude>(
const uword T) {
return find_amplitude(
static_cast<unsigned>(
T)); }
649template<>
inline bool DomainBase::find<Expression>(
const uword T) {
return find_expression(
static_cast<unsigned>(
T)); }
651template<>
inline bool DomainBase::find<Constraint>(
const uword T) {
return find_constraint(
static_cast<unsigned>(
T)); }
653template<>
inline bool DomainBase::find<Converger>(
const uword T) {
return find_converger(
static_cast<unsigned>(
T)); }
655template<>
inline bool DomainBase::find<Criterion>(
const uword T) {
return find_criterion(
static_cast<unsigned>(
T)); }
657template<>
inline bool DomainBase::find<Database>(
const uword T) {
return find_database(
static_cast<unsigned>(
T)); }
659template<>
inline bool DomainBase::find<Element>(
const uword T) {
return find_element(
static_cast<unsigned>(
T)); }
661template<>
inline bool DomainBase::find<Group>(
const uword T) {
return find_group(
static_cast<unsigned>(
T)); }
663template<>
inline bool DomainBase::find<Integrator>(
const uword T) {
return find_integrator(
static_cast<unsigned>(
T)); }
665template<>
inline bool DomainBase::find<Load>(
const uword T) {
return find_load(
static_cast<unsigned>(
T)); }
667template<>
inline bool DomainBase::find<Material>(
const uword T) {
return find_material(
static_cast<unsigned>(
T)); }
669template<>
inline bool DomainBase::find<Modifier>(
const uword T) {
return find_modifier(
static_cast<unsigned>(
T)); }
671template<>
inline bool DomainBase::find<Node>(
const uword T) {
return find_node(
static_cast<unsigned>(
T)); }
673template<>
inline bool DomainBase::find<Orientation>(
const uword T) {
return find_orientation(
static_cast<unsigned>(
T)); }
675template<>
inline bool DomainBase::find<Recorder>(
const uword T) {
return find_recorder(
static_cast<unsigned>(
T)); }
677template<>
inline bool DomainBase::find<Section>(
const uword T) {
return find_section(
static_cast<unsigned>(
T)); }
679template<>
inline bool DomainBase::find<Solver>(
const uword T) {
return find_solver(
static_cast<unsigned>(
T)); }
681template<>
inline bool DomainBase::find<Step>(
const uword T) {
return find_step(
static_cast<unsigned>(
T)); }
683template<>
inline bool DomainBase::find<Amplitude>(
const unsigned T) {
return find_amplitude(
T); }
685template<>
inline bool DomainBase::find<Expression>(
const unsigned T) {
return find_expression(
T); }
687template<>
inline bool DomainBase::find<Constraint>(
const unsigned T) {
return find_constraint(
T); }
689template<>
inline bool DomainBase::find<Converger>(
const unsigned T) {
return find_converger(
T); }
691template<>
inline bool DomainBase::find<Criterion>(
const unsigned T) {
return find_criterion(
T); }
693template<>
inline bool DomainBase::find<Database>(
const unsigned T) {
return find_database(
T); }
695template<>
inline bool DomainBase::find<Element>(
const unsigned T) {
return find_element(
T); }
697template<>
inline bool DomainBase::find<Group>(
const unsigned T) {
return find_group(
T); }
699template<>
inline bool DomainBase::find<Integrator>(
const unsigned T) {
return find_integrator(
T); }
701template<>
inline bool DomainBase::find<Load>(
const unsigned T) {
return find_load(
T); }
703template<>
inline bool DomainBase::find<Material>(
const unsigned T) {
return find_material(
T); }
705template<>
inline bool DomainBase::find<Modifier>(
const unsigned T) {
return find_modifier(
T); }
707template<>
inline bool DomainBase::find<Node>(
const unsigned T) {
return find_node(
T); }
709template<>
inline bool DomainBase::find<Orientation>(
const unsigned T) {
return find_orientation(
T); }
711template<>
inline bool DomainBase::find<Recorder>(
const unsigned T) {
return find_recorder(
T); }
713template<>
inline bool DomainBase::find<Section>(
const unsigned T) {
return find_section(
T); }
715template<>
inline bool DomainBase::find<Solver>(
const unsigned T) {
return find_solver(
T); }
717template<>
inline bool DomainBase::find<Step>(
const unsigned T) {
return find_step(
T); }
An Amplitude class that can generate Amplitude pattern.
Definition: Amplitude.h:67
A Constraint class.
Definition: Constraint.h:36
The Converger class handles converger test to indicate if the iteration converges according to variou...
Definition: Converger.h:44
A Criterion class.
Definition: Criterion.h:38
A Database class is a top level container.
Definition: Database.h:33
The DomainBase class is a template.
Definition: DomainBase.h:104
virtual void disable_element(unsigned)=0
virtual const shared_ptr< LongFactory > & get_factory() const =0
virtual void disable_converger(unsigned)=0
virtual const shared_ptr< Converger > & get_current_converger() const =0
virtual bool find_element(unsigned) const =0
virtual bool erase_solver(unsigned)=0
virtual void enable_criterion(unsigned)=0
virtual void assemble_trial_stiffness() const =0
virtual void assemble_initial_stiffness() const =0
virtual void set_attribute(ModalAttribute)=0
virtual const shared_ptr< Database > & get_database(unsigned) const =0
virtual void enable_database(unsigned)=0
virtual const ElementQueue & get_element_pool() const =0
~DomainBase() override=default
virtual const shared_ptr< Step > & get_current_step() const =0
virtual void enable_step(unsigned)=0
virtual bool find_group(unsigned) const =0
virtual void disable_section(unsigned)=0
virtual int reorder_dof()=0
virtual int initialize_constraint()=0
virtual const RecorderQueue & get_recorder_pool() const =0
virtual size_t get_step() const =0
virtual void assemble_current_geometry() const =0
virtual const shared_ptr< Modifier > & get_modifier(unsigned) const =0
virtual void insert_restrained_dof(uword)=0
concurrently safe insertion method
virtual void enable_section(unsigned)=0
virtual bool insert(const shared_ptr< Amplitude > &)=0
virtual void save(string)=0
DomainBase & operator=(const DomainBase &)=delete
virtual void enable_load(unsigned)=0
virtual void enable_material(unsigned)=0
virtual bool find_modifier(unsigned) const =0
void update(const double value) const
Definition: DomainBase.h:429
virtual bool insert(const shared_ptr< Database > &)=0
virtual bool insert(const shared_ptr< Section > &)=0
virtual void disable_step(unsigned)=0
virtual void assemble_resistance() const =0
virtual void update_current_inertial_force() const =0
double stats() const
Definition: DomainBase.h:431
virtual bool erase_recorder(unsigned)=0
virtual const IntegratorQueue & get_integrator_pool() const =0
virtual const shared_ptr< Amplitude > & get_amplitude(unsigned) const =0
virtual int initialize_material()=0
virtual void stage_status()=0
virtual const shared_ptr< Constraint > & get_constraint(unsigned) const =0
virtual const suanpan::unordered_set< uword > & get_constrained_dof() const =0
virtual void disable_modifier(unsigned)=0
virtual void update(Statistics, double) const =0
virtual size_t get_constraint() const =0
virtual bool erase_integrator(unsigned)=0
virtual void summary() const =0
virtual void set_current_step_tag(unsigned)=0
virtual std::pair< unsigned, unsigned > get_current_solver_tag()=0
virtual bool insert(const shared_ptr< Expression > &)=0
virtual int initialize()=0
virtual bool insert(const shared_ptr< Recorder > &)=0
virtual const shared_ptr< Expression > & get_expression(unsigned) const =0
virtual void disable_load(unsigned)=0
virtual bool insert(const shared_ptr< Constraint > &)=0
virtual size_t get_orientation() const =0
virtual bool insert(const shared_ptr< Modifier > &)=0
virtual const StepQueue & get_step_pool() const =0
virtual void assemble_damping_force() const =0
virtual size_t get_node() const =0
virtual void enable_all()=0
virtual size_t get_expression() const =0
virtual size_t get_modifier() const =0
virtual bool find_criterion(unsigned) const =0
virtual bool erase_step(unsigned)=0
DomainBase(DomainBase &&)=delete
virtual void assemble_stiffness_container() const =0
virtual void disable_recorder(unsigned)=0
virtual void commit_status() const =0
virtual bool find_integrator(unsigned) const =0
virtual bool find_amplitude(unsigned) const =0
virtual const shared_ptr< Recorder > & get_recorder(unsigned) const =0
virtual const suanpan::unordered_set< uword > & get_restrained_dof() const =0
virtual const GroupQueue & get_group_pool() const =0
virtual bool insert(const shared_ptr< Material > &)=0
virtual bool insert(const shared_ptr< Node > &)=0
virtual size_t get_recorder() const =0
virtual bool erase_modifier(unsigned)=0
virtual void set_current_solver_tag(unsigned)=0
virtual size_t get_element() const =0
virtual void assemble_inertial_force() const =0
virtual const shared_ptr< Solver > & get_current_solver() const =0
virtual void disable_constraint(unsigned)=0
virtual bool is_updated() const =0
virtual void enable_integrator(unsigned)=0
virtual const shared_ptr< Step > & get_step(unsigned) const =0
virtual bool insert(const shared_ptr< Group > &)=0
virtual const shared_ptr< Material > & get_material(unsigned) const =0
virtual void insert_loaded_dof(const uvec &)=0
concurrently safe insertion method
virtual bool get_attribute(ModalAttribute)=0
virtual unsigned get_current_step_tag()=0
virtual void enable_node(unsigned)=0
virtual void assemble_trial_nonviscous() const =0
virtual bool find_database(unsigned) const =0
virtual const LoadQueue & get_load_pool() const =0
virtual void assemble_trial_damping() const =0
virtual size_t get_group() const =0
virtual bool find_constraint(unsigned) const =0
virtual bool erase_expression(unsigned)=0
virtual const shared_ptr< Criterion > & get_criterion(unsigned) const =0
virtual size_t get_database() const =0
virtual void update_current_nonviscous_force() const =0
virtual bool find_orientation(unsigned) const =0
virtual int initialize_load()=0
virtual void enable_recorder(unsigned)=0
virtual bool erase_database(unsigned)=0
virtual const shared_ptr< Orientation > & get_orientation(unsigned) const =0
virtual void enable_converger(unsigned)=0
virtual size_t get_converger() const =0
virtual void assemble_current_mass() const =0
virtual void disable_group(unsigned)=0
virtual void assemble_trial_mass() const =0
virtual bool insert(const shared_ptr< ExternalModule > &)=0
virtual bool erase_node(unsigned)=0
virtual void update_load()=0
virtual void assemble_initial_geometry() const =0
virtual int update_incre_status() const =0
virtual void disable_solver(unsigned)=0
virtual std::pair< std::vector< unsigned >, suanpan::graph< unsigned > > get_element_connectivity(bool)=0
virtual void set_current_converger_tag(unsigned)=0
virtual void assemble_initial_damping() const =0
DomainBase & operator=(DomainBase &&)=delete
virtual bool find_converger(unsigned) const =0
virtual bool erase_load(unsigned)=0
virtual void assemble_nonviscous_force() const =0
virtual const shared_ptr< Section > & get_section(unsigned) const =0
virtual const ModifierQueue & get_modifier_pool() const =0
virtual int process_modifier()=0
virtual const shared_ptr< Integrator > & get_integrator(unsigned) const =0
DomainBase(const unsigned T)
Definition: DomainBase.h:106
virtual bool insert(const shared_ptr< Load > &)=0
virtual const NodeQueue & get_node_pool() const =0
virtual int initialize_reference()=0
virtual std::pair< unsigned, unsigned > get_current_integrator_tag()=0
virtual void set_factory(const shared_ptr< LongFactory > &)=0
virtual void update_current_damping_force() const =0
virtual const shared_ptr< Converger > & get_converger(unsigned) const =0
virtual void set_color_model(ColorMethod)=0
virtual bool find_step(unsigned) const =0
virtual int soft_restart()=0
virtual bool insert(const shared_ptr< Element > &)=0
virtual void insert_constrained_dof(uword)=0
concurrently safe insertion method
virtual bool erase_constraint(unsigned)=0
virtual double stats(Statistics) const =0
virtual void reset_status() const =0
virtual const SectionQueue & get_section_pool() const =0
virtual void disable_material(unsigned)=0
virtual bool insert(const shared_ptr< Orientation > &)=0
virtual bool erase_element(unsigned)=0
virtual void enable_constraint(unsigned)=0
virtual void assemble_initial_nonviscous() const =0
virtual const OrientationQueue & get_orientation_pool() const =0
virtual bool insert(const shared_ptr< Integrator > &)=0
virtual bool find_section(unsigned) const =0
virtual bool find_load(unsigned) const =0
virtual void clear_status()=0
virtual void disable_database(unsigned)=0
virtual void enable_element(unsigned)=0
virtual bool erase_material(unsigned)=0
virtual std::pair< unsigned, unsigned > get_current_converger_tag()=0
virtual void enable_amplitude(unsigned)=0
virtual const shared_ptr< Group > & get_group(unsigned) const =0
virtual bool find_material(unsigned) const =0
virtual size_t get_integrator() const =0
virtual size_t get_amplitude() const =0
virtual void assemble_current_stiffness() const =0
virtual void enable_orientation(unsigned)=0
virtual int process_criterion()=0
virtual bool erase_section(unsigned)=0
virtual const DatabaseQueue & get_database_pool() const =0
virtual void assemble_trial_geometry() const =0
virtual bool find_recorder(unsigned) const =0
virtual void enable_expression(unsigned)=0
virtual void insert_restrained_dof(const uvec &)=0
concurrently safe insertion method
virtual const ConvergerQueue & get_converger_pool() const =0
virtual void erase_machine_error(vec &) const =0
virtual void set_current_integrator_tag(unsigned)=0
virtual bool insert(const shared_ptr< future< void > > &)=0
virtual void enable_group(unsigned)=0
virtual void disable_criterion(unsigned)=0
virtual const SolverQueue & get_solver_pool() const =0
DomainBase(const DomainBase &)=delete
virtual const shared_ptr< Solver > & get_solver(unsigned) const =0
virtual size_t get_solver() const =0
virtual void disable_expression(unsigned)=0
virtual void insert_constrained_dof(const uvec &)=0
concurrently safe insertion method
virtual bool insert(const shared_ptr< Solver > &)=0
virtual void assemble_initial_mass() const =0
virtual int update_current_status() const =0
virtual unique_ptr< Material > initialized_material_copy(uword)=0
virtual bool insert(const shared_ptr< Converger > &)=0
virtual int assign_color()=0
virtual const MaterialQueue & get_material_pool() const =0
virtual size_t get_section() const =0
virtual void assemble_load_stiffness()=0
virtual const shared_ptr< Node > & get_node(unsigned) const =0
virtual bool insert(const shared_ptr< Criterion > &)=0
virtual const ExpressionQueue & get_expression_pool() const =0
virtual size_t get_criterion() const =0
virtual bool is_sparse() const =0
virtual void disable_orientation(unsigned)=0
virtual bool erase_amplitude(unsigned)=0
virtual void enable_modifier(unsigned)=0
virtual void disable_integrator(unsigned)=0
virtual int process_constraint(bool)=0
virtual void assemble_current_nonviscous() const =0
virtual size_t get_material() const =0
virtual const std::vector< std::vector< unsigned > > & get_color_map() const =0
virtual void disable_node(unsigned)=0
virtual bool erase_criterion(unsigned)=0
virtual void assemble_constraint_stiffness()=0
virtual bool find_node(unsigned) const =0
virtual bool find_expression(unsigned) const =0
virtual const suanpan::unordered_set< uword > & get_loaded_dof() const =0
virtual const AmplitudeQueue & get_amplitude_pool() const =0
virtual bool erase_group(unsigned)=0
virtual int update_trial_status() const =0
virtual bool find_solver(unsigned) const =0
virtual size_t get_load() const =0
virtual int initialize_section()=0
virtual const ConstraintQueue & get_constraint_pool() const =0
virtual bool erase_orientation(unsigned)=0
virtual void disable_amplitude(unsigned)=0
virtual bool insert(const shared_ptr< Step > &)=0
virtual void enable_solver(unsigned)=0
virtual int process_load(bool)=0
virtual const shared_ptr< Element > & get_element(unsigned) const =0
virtual const CriterionQueue & get_criterion_pool() const =0
virtual void update_current_resistance() const =0
virtual void insert_loaded_dof(uword)=0
concurrently safe insertion method
virtual const std::vector< shared_ptr< ExternalModule > > & get_external_module_pool() const =0
virtual const shared_ptr< Load > & get_load(unsigned) const =0
virtual void assemble_mass_container() const =0
virtual bool erase_converger(unsigned)=0
virtual void update_constraint()=0
virtual const shared_ptr< Integrator > & get_current_integrator() const =0
virtual void assemble_current_damping() const =0
A Element class.
Definition: Element.h:117
A Expression class represents a maths expression.
Definition: Expression.h:34
A ExternalModule class handles communication between the main program and external library.
Definition: ExternalModule.h:45
A Factory class.
Definition: Factory.hpp:73
The Group class.
Definition: Group.h:36
The Integrator class is basically a wrapper of the DomainBase class with regard to some status changi...
Definition: Integrator.h:51
A Load class.
Definition: Load.h:37
A Material abstract base class.
Definition: Material.h:111
A Modifier class.
Definition: Modifier.h:36
The Node class holds the number of DoFs, coordinate, displacement, velocity and acceleration.
Definition: Node.h:80
A Orientation class.
Definition: Orientation.h:48
A Recorder class.
Definition: Recorder.h:35
A Section class.
Definition: Section.h:77
A Solver class defines solvers used in analysis.
Definition: Solver.h:38
A Step class.
Definition: Step.h:39
A base Tag class.
Definition: Tag.h:38
ColorMethod
Definition: DomainBase.h:86
std::vector< shared_ptr< Orientation > > OrientationQueue
Definition: DomainBase.h:78
std::vector< shared_ptr< Node > > NodeQueue
Definition: DomainBase.h:77
std::vector< shared_ptr< Database > > DatabaseQueue
Definition: DomainBase.h:70
std::vector< shared_ptr< Group > > GroupQueue
Definition: DomainBase.h:72
std::vector< shared_ptr< Material > > MaterialQueue
Definition: DomainBase.h:75
Statistics
Definition: DomainBase.h:96
std::vector< shared_ptr< Modifier > > ModifierQueue
Definition: DomainBase.h:76
const std::vector< shared_ptr< T > > & get_pool()
Definition: DomainBase.h:563
size_t get()
Definition: DomainBase.h:599
std::vector< shared_ptr< Integrator > > IntegratorQueue
Definition: DomainBase.h:73
std::vector< shared_ptr< Recorder > > RecorderQueue
Definition: DomainBase.h:79
std::vector< shared_ptr< Constraint > > ConstraintQueue
Definition: DomainBase.h:67
std::map< unsigned, shared_ptr< Step > > StepQueue
Definition: DomainBase.h:82
std::vector< shared_ptr< Element > > ElementQueue
Definition: DomainBase.h:71
std::vector< shared_ptr< Converger > > ConvergerQueue
Definition: DomainBase.h:68
std::vector< shared_ptr< Solver > > SolverQueue
Definition: DomainBase.h:81
std::vector< shared_ptr< Load > > LoadQueue
Definition: DomainBase.h:74
std::vector< shared_ptr< Section > > SectionQueue
Definition: DomainBase.h:80
std::vector< shared_ptr< Criterion > > CriterionQueue
Definition: DomainBase.h:69
bool erase(unsigned)
Definition: DomainBase.h:440
bool find(unsigned)
Definition: DomainBase.h:637
std::vector< shared_ptr< Expression > > ExpressionQueue
Definition: DomainBase.h:66
ModalAttribute
Definition: DomainBase.h:92
std::vector< shared_ptr< Amplitude > > AmplitudeQueue
Definition: DomainBase.h:65
std::unordered_set< T > unordered_set
Definition: container.h:55
vector< set< T > > graph
Definition: container.h:59