3D Beam Finite Element Code  1.0
summary.h
Go to the documentation of this file.
1 // Copyright 2015. All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are met:
5 //
6 // * Redistributions of source code must retain the above copyright notice,
7 // this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above copyright notice,
9 // this list of conditions and the following disclaimer in the documentation
10 // and/or other materials provided with the distribution.
11 //
12 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
13 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
16 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
17 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
18 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
19 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
20 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
21 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22 // POSSIBILITY OF SUCH DAMAGE.
23 //
24 // Author: ryan.latture@gmail.com (Ryan Latture)
25 
26 #ifndef THREEDBEAMFEA_SUMMARY_H
27 #define THREEDBEAMFEA_SUMMARY_H
28 
29 #include <string>
30 #include <vector>
31 
32 namespace fea {
33 
37  struct Summary {
38 
42  Summary();
43 
47  std::string FullReport() const;
48 
52  long long total_time_in_ms;
53 
58 
64 
69 
73  long long solve_time_in_ms;
74 
79 
84 
91 
95  unsigned long num_nodes;
96 
100  unsigned long num_elems;
101 
105  unsigned long num_bcs;
106 
110  unsigned long num_forces;
111 
115  unsigned long num_ties;
116 
123  std::vector<std::vector<double> > nodal_displacements;
124 
131  std::vector<std::vector<double> > nodal_forces;
132 
139  std::vector<std::vector<double> > tie_forces;
140 
141  };
142 
143 } //namespace fea
144 
145 
146 
147 #endif //THREEDBEAMFEA_SUMMARY_H
Contains the results of an analysis after calling fea::solve.
Definition: summary.h:37
long long tie_forces_solve_time_in_ms
Definition: summary.h:83
long long file_save_time_in_ms
Definition: summary.h:90
std::vector< std::vector< double > > tie_forces
Definition: summary.h:139
long long preprocessing_time_in_ms
Definition: summary.h:63
std::vector< std::vector< double > > nodal_forces
Definition: summary.h:131
unsigned long num_forces
Definition: summary.h:110
long long factorization_time_in_ms
Definition: summary.h:68
unsigned long num_elems
Definition: summary.h:100
long long total_time_in_ms
Definition: summary.h:52
long long nodal_forces_solve_time_in_ms
Definition: summary.h:78
unsigned long num_ties
Definition: summary.h:115
unsigned long num_nodes
Definition: summary.h:95
long long solve_time_in_ms
Definition: summary.h:73
unsigned long num_bcs
Definition: summary.h:105
long long assembly_time_in_ms
Definition: summary.h:57
Definition: containers.h:41
std::string FullReport() const
Returns a message containing the results of the analysis.
Definition: summary.cpp:105
Summary()
Definition: summary.cpp:85
std::vector< std::vector< double > > nodal_displacements
Definition: summary.h:123