NLMech  0.1.0
uLoading.h
1 // Copyright (c) 2019 Prashant K. Jha
3 // Copyright (c) 2019 Patrick Diehl
4 //
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef LOADING_ULOADING_H
10 #define LOADING_ULOADING_H
11 
12 #include "loading.h" // base class Loading
13 #include "util/point.h" // definition of Point3
14 
15 // forward declaration
16 namespace fe {
17 class Mesh;
18 }
19 
20 namespace loading {
21 
25 class ULoading : public Loading {
26 
27 public:
33  ULoading(inp::LoadingDeck *deck, fe::Mesh *mesh);
34 
42  void apply(const double &time, std::vector<util::Point3> *u,
43  std::vector<util::Point3> *v, fe::Mesh *mesh);
44 
54  std::string printStr(int nt = 0, int lvl = 0) const;
55 
63  void print(int nt = 0, int lvl = 0) const { std::cout << printStr(nt, lvl); };
64 };
65 
66 } // namespace loading
67 
68 #endif // LOADING_ULOADING_H
A class for mesh data.
Definition: mesh.h:49
A base class to apply displacement and force boundary condition.
Definition: loading.h:37
A class to apply displacement boundary condition.
Definition: uLoading.h:25
void apply(const double &time, std::vector< util::Point3 > *u, std::vector< util::Point3 > *v, fe::Mesh *mesh)
Applies displacement boundary condition.
Definition: uLoading.cpp:166
ULoading(inp::LoadingDeck *deck, fe::Mesh *mesh)
Constructor.
Definition: uLoading.cpp:18
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing information about the instance of the object.
Definition: uLoading.cpp:255
void print(int nt=0, int lvl=0) const
Prints the information about the instance of the object.
Definition: uLoading.h:63
Collection of methods and data related to finite element and mesh.
Definition: baseElem.h:15
Collection of methods and database related to loading.
Definition: DataManager.h:38
Structure to read and store policy data.
Definition: loadingDeck.h:144