suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
SectionOS3D.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 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 <Material/Material.h>
37#include <Section/Section.h>
39
40class SectionOS3D : public Section {
41 static const mat weighing_mat;
42
43protected:
45 const double omega, py, pz, weight;
47 IntegrationPoint(double, double, double, double, unique_ptr<Material>&&);
48 };
49
50 std::vector<IntegrationPoint> int_pt;
51
52public:
54 unsigned, // tag
55 unsigned, // material tag
56 double = 0., // area
57 vec&& = {0., 0.} // eccentricity
58 );
59
60 void set_characteristic_length(double) const override;
61
62 int update_trial_status(const vec&) override;
63
64 int clear_status() override;
65 int commit_status() override;
66 int reset_status() override;
67
68 [[nodiscard]] std::vector<vec> record(OutputType) const override;
69};
70
71#endif
72
OutputType
Definition OutputType.h:23
Definition ResourceHolder.h:32
A Section class.
Definition Section.h:77
A SectionOS3D class.
Definition SectionOS3D.h:40
int commit_status() override
Definition SectionOS3D.cpp:145
std::vector< IntegrationPoint > int_pt
Definition SectionOS3D.h:50
std::vector< vec > record(OutputType) const override
Definition SectionOS3D.cpp:165
void set_characteristic_length(double) const override
Definition SectionOS3D.cpp:40
int clear_status() override
Definition SectionOS3D.cpp:135
int update_trial_status(const vec &) override
The deformation is assumed to contain the following.
Definition SectionOS3D.cpp:62
int reset_status() override
Definition SectionOS3D.cpp:155
Definition SectionOS3D.h:44
ResourceHolder< Material > s_material
Definition SectionOS3D.h:46
const double weight
Definition SectionOS3D.h:45
const double py
Definition SectionOS3D.h:45
const double pz
Definition SectionOS3D.h:45
const double omega
Definition SectionOS3D.h:45