PRISMS-PF  v2.1
unitTest.h
Go to the documentation of this file.
1 #include <deal.II/base/quadrature.h>
2 #include <deal.II/base/timer.h>
3 #include <deal.II/lac/vector.h>
4 #include <deal.II/lac/constraint_matrix.h>
5 #include <deal.II/fe/fe_system.h>
6 #include <deal.II/fe/fe_q.h>
7 #include <deal.II/fe/fe_values.h>
8 #include <deal.II/grid/tria.h>
9 #include <deal.II/grid/tria_accessor.h>
10 #include <deal.II/grid/tria_iterator.h>
11 #include <deal.II/grid/grid_tools.h>
12 #include <deal.II/dofs/dof_tools.h>
13 #include <deal.II/dofs/dof_handler.h>
14 #include <deal.II/numerics/vector_tools.h>
15 #include <deal.II/lac/parallel_vector.h>
16 #include <deal.II/matrix_free/matrix_free.h>
17 #include <deal.II/matrix_free/fe_evaluation.h>
18 #include <deal.II/base/config.h>
19 #include <deal.II/base/exceptions.h>
20 #include <deal.II/distributed/tria.h>
21 #include <deal.II/distributed/solution_transfer.h>
22 #include <deal.II/grid/manifold_lib.h>
23 #include <iostream>
24 
25 //define data type
26 template <int dim>
27 void computeStress(const dealii::Table<2, double>& CIJ, const dealii::VectorizedArray<double> ux[][dim], const dealii::VectorizedArray<double> R[][dim]);
28 
29 #include "../../include/matrixFreePDE.h"
30 #include "../../include/parallelNucleationList.h"
31 
32 #include "../../src/matrixfree/matrixFreePDE.cc"
33 #include "../../src/matrixfree/init.cc"
34 #include "../../src/matrixfree/reinit.cc"
35 #include "../../src/matrixfree/initForTests.cc"
36 #include "../../src/matrixfree/refine.cc"
37 #include "../../src/matrixfree/invM.cc"
38 #include "../../src/matrixfree/computeLHS.cc"
39 #include "../../src/matrixfree/computeRHS.cc"
40 #include "../../src/matrixfree/solve.cc"
41 #include "../../src/matrixfree/solveIncrement.cc"
42 #include "../../src/matrixfree/outputResults.cc"
43 #include "../../src/matrixfree/markBoundaries.cc"
44 #include "../../src/matrixfree/boundaryConditions.cc"
45 #include "../../src/matrixfree/initialConditions.cc"
46 #include "../../src/matrixfree/utilities.cc"
47 #include "../../src/matrixfree/computeIntegral.cc"
48 #include "../../src/matrixfree/nucleation.cc"
49 #include "../../src/matrixfree/checkpoint.cc"
50 
51 #include "../../src/matrixfree/reassignGrains.cc"
52 
53 #include "../../src/matrixfree/setNonlinearEqInitialGuess.cc"
54 
55 #include "../../src/inputFileReader/inputFileReader.cc"
56 #include "../../src/parallelNucleationList/parallelNucleationList.cc"
57 
58 #include "../../src/models/mechanics/computeStress.h"
59 #include "../../src/matrixfree/postprocessor.cc"
60 
61 #include "../../src/utilities/sortIndexEntryPairList.cc"
62 
63 #include "../../src/variableContainer/variableContainer.cc"
64 
65 #include "../../src/userInputParameters/load_BC_list.cc"
66 #include "../../src/userInputParameters/load_user_constants.cc"
67 #include "../../src/userInputParameters/loadVariableAttributes.cc"
68 #include "../../src/userInputParameters/setTimeStepList.cc"
69 
70 #include "../../src/variableAttributeLoader/variableAttributeLoader.cc"
71 
72 #include "../../src/FloodFiller/FloodFiller.cc"
73 
74 #include "../../src/SimplifiedGrainRepresentation/SimplifiedGrainRepresentation.cc"
75 
76 #include "../../src/OrderParameterRemapper/OrderParameterRemapper.cc"
77 
78 template <int dim, typename T>
79 class unitTest
80 {
81  public:
82  bool test_computeInvM(int argc, char **argv, userInputParameters<dim>);
83  bool test_outputResults(int argc, char **argv, userInputParameters<dim> userInputs);
84  bool test_computeStress();
85  void assignCIJSize(dealii::VectorizedArray<double> CIJ[2*dim-1+dim/3][2*dim-1+dim/3]);
86  void assignCIJSize(dealii::Table<2, double> &CIJ);
87  bool test_setRigidBodyModeConstraints(std::vector<int>, userInputParameters<dim> userInputs);
88  bool test_parse_line();
91  bool test_load_BC_list();
98  bool test_FloodFiller();
103 };
104 
106 #include "test_invM.h"
107 #include "test_outputResults.h"
108 #include "test_computeStress.h"
109 #include "test_setOutputTimeSteps.h"
111 #include "test_parse_line.h"
114 #include "test_load_BC_list.h"
115 
116 
117 #include "../../include/SolverParameters.h"
118 #include "../../src/SolverParameters/SolverParameters.cc"
119 
122 
123 #include "../../src/EquationDependencyParser/EquationDependencyParser.cc"
125 
126 #include "test_FloodFiller.h"
void computeStress(const dealii::Table< 2, double > &CIJ, const dealii::VectorizedArray< double > ux[][dim], const dealii::VectorizedArray< double > R[][dim])
Definition: computeStress.h:46
bool test_LinearSolverParameters()
bool test_parse_line()
bool test_computeStress()
bool test_computeInvM(int argc, char **argv, userInputParameters< dim >)
Definition: test_invM.h:57
bool test_setOutputTimeSteps()
bool test_EquationDependencyParser_postprocessing()
bool test_setRigidBodyModeConstraints(std::vector< int >, userInputParameters< dim > userInputs)
bool test_OrderParameterRemapper()
bool test_EquationDependencyParser_nonlinear()
bool test_outputResults(int argc, char **argv, userInputParameters< dim > userInputs)
void assignCIJSize(dealii::VectorizedArray< double > CIJ[2 *dim-1+dim/3][2 *dim-1+dim/3])
bool test_FloodFiller()
bool test_SimplifiedGrainManipulator_transferGrainIds()
bool test_SimplifiedGrainManipulator_reassignGrains()
bool test_load_BC_list()
bool test_EquationDependencyParser_variables_and_residuals_needed()