suanPan
SectionOS3D.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2024 Theodore Chang
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  ******************************************************************************/
33 #ifndef SECTIONOS3D_H
34 #define SECTIONOS3D_H
35 
36 #include <Section/Section.h>
37 #include <Material/Material.h>
38 #include <Toolbox/ResourceHolder.h>
39 
40 using std::vector;
41 
42 class SectionOS3D : public Section {
43  static const mat weighing_mat;
44 
45 protected:
47  const double omega, py, pz, weight;
49  IntegrationPoint(double, double, double, double, unique_ptr<Material>&&);
50  };
51 
52  vector<IntegrationPoint> int_pt;
53 
54 public:
56  unsigned, // tag
57  unsigned, // material tag
58  double = 0., // area
59  vec&& = {0., 0.} // eccentricity
60  );
61 
62  void set_characteristic_length(double) const override;
63 
64  int update_trial_status(const vec&) override;
65 
66  int clear_status() override;
67  int commit_status() override;
68  int reset_status() override;
69 
70  vector<vec> record(OutputType) override;
71 };
72 
73 #endif
74 
OutputType
Definition: OutputType.h:23
A Section class.
Definition: Section.h:77
A SectionOS3D class.
Definition: SectionOS3D.h:42
vector< vec > record(OutputType) override
Definition: SectionOS3D.cpp:164
int commit_status() override
Definition: SectionOS3D.cpp:144
vector< IntegrationPoint > int_pt
Definition: SectionOS3D.h:52
void set_characteristic_length(double) const override
Definition: SectionOS3D.cpp:39
SectionOS3D(unsigned, unsigned, double=0., vec &&={0., 0.})
Definition: SectionOS3D.cpp:36
int clear_status() override
Definition: SectionOS3D.cpp:134
int update_trial_status(const vec &) override
The deformation is assumed to contain the following.
Definition: SectionOS3D.cpp:61
int reset_status() override
Definition: SectionOS3D.cpp:154
std::vector< T > vector
Definition: container.h:53
Definition: SectionOS3D.h:46
ResourceHolder< Material > s_material
Definition: SectionOS3D.h:48
const double weight
Definition: SectionOS3D.h:47
IntegrationPoint(double, double, double, double, unique_ptr< Material > &&)
Definition: SectionOS3D.cpp:29
const double py
Definition: SectionOS3D.h:47
const double pz
Definition: SectionOS3D.h:47
const double omega
Definition: SectionOS3D.h:47