#include <itkFEMSolverHyperbolic.h>
M*ddu + C*du + K*u=F
Definition at line 33 of file itkFEMSolverHyperbolic.h.
typedef Element::ArrayType itk::fem::Solver::ElementArray [inherited] |
Array that holds pointers to all elements. since we want to be able to manipulate the array we have to use special pointers
Definition at line 54 of file itkFEMSolver.h.
typedef Element::Float itk::fem::Solver::Float [inherited] |
Local float type
Definition at line 48 of file itkFEMSolver.h.
typedef itk::Image<Element::ConstPointer,MaxGridDimensions> itk::fem::Solver::InterpolationGridType [inherited] |
Type used to store interpolation grid
Definition at line 95 of file itkFEMSolver.h.
typedef Load::ArrayType itk::fem::Solver::LoadArray [inherited] |
Array that holds special pointers to all external loads
Definition at line 66 of file itkFEMSolver.h.
typedef Material::ArrayType itk::fem::Solver::MaterialArray [inherited] |
Array that holds pointers to the materials
Definition at line 72 of file itkFEMSolver.h.
typedef Node::ArrayType itk::fem::Solver::NodeArray [inherited] |
Array that holds special pointers to the nodes
Definition at line 60 of file itkFEMSolver.h.
typedef Element::VectorType itk::fem::Solver::VectorType [inherited] |
VectorType from the Element base class
Definition at line 78 of file itkFEMSolver.h.
anonymous enum |
Constants that specify, where matrices are strored.
Definition at line 75 of file itkFEMSolverHyperbolic.h.
anonymous enum |
Constants that specify, where vectors are strored.
Definition at line 80 of file itkFEMSolverHyperbolic.h.
anonymous enum |
Definition at line 81 of file itkFEMSolverHyperbolic.h.
itk::fem::SolverHyperbolic::SolverHyperbolic | ( | ) |
Default constructor
void itk::fem::Solver::ApplyBC | ( | int | dim = 0 , |
|
unsigned int | matrix = 0 | |||
) | [inherited] |
Apply the boundary conditions to the system.
matrix | Index of a matrix, to which the BCs should be applied (master stiffness matrix). Normally this is zero, but in derived classes many matrices may be used and this index must be specified. | |
dim | This is a parameter that can be passed to the function and is normally used with isotropic elements to specify the dimension in which the DOF is fixed. |
Referenced by itk::fem::Solver::FinalizeMatrixAfterAssembly().
virtual void itk::fem::SolverHyperbolic::AssembleElementMatrix | ( | Element::Pointer | e | ) | [virtual] |
When assembling the element matrix into master matrix, we need to assemble the mass matrix too.
Reimplemented from itk::fem::Solver.
void itk::fem::Solver::AssembleF | ( | int | dim = 0 |
) | [inherited] |
Assemble the master force vector.
dim | This is a parameter that can be passed to the function and is normally used with isotropic elements to specify the dimension for which the master force vector should be assembled. |
void itk::fem::Solver::AssembleK | ( | void | ) | [inherited] |
Assemble the master stiffness matrix (also apply the MFCs to K)
virtual void itk::fem::Solver::AssembleLandmarkContribution | ( | Element::Pointer | e, | |
float | ||||
) | [virtual, inherited] |
Add the contribution of the landmark-containing elements to the correct position in the master stiffess matrix. Since more complex Solver classes may need to assemble many matrices and may also do some funky stuff to them, this function is virtual and can be overriden in a derived solver class.
virtual void itk::fem::Solver::Clear | ( | void | ) | [virtual, inherited] |
Cleans all data members, and initializes the solver to initial state.
void itk::fem::Solver::DecomposeK | ( | void | ) | [inherited] |
Decompose matrix using svd, qr, whatever ...
virtual void itk::fem::SolverHyperbolic::FinalizeMatrixAfterAssembly | ( | void | ) | [virtual] |
Combines the M, C and K matrices into one big system of linear equations.
Reimplemented from itk::fem::Solver.
void itk::fem::Solver::GenerateGFN | ( | void | ) | [inherited] |
System solver functions. Call all six functions below (in listed order) to solve system. Assign a global freedom numbers to each DOF in a system. This must be done before any other solve function can be called.
Float itk::fem::Solver::GetDeformationEnergy | ( | unsigned int | SolutionIndex = 0 |
) | [inherited] |
Get the total deformation energy using the chosen solution
const Element* itk::fem::Solver::GetElementAtPoint | ( | const VectorType & | pt | ) | const [inherited] |
Returns the pointer to the element which contains global point pt.
pt | Point in global coordinate system. |
const InterpolationGridType* itk::fem::Solver::GetInterpolationGrid | ( | void | ) | const [inline, inherited] |
Returns pointer to interpolation grid, which is an itk::Image of pointers to Element objects. Normally you would use physical coordinates to get specific points (pointers to elements) from the image. You can then use the Elemenet::InterpolateSolution member function on the returned element to obtain the solution at this point.
Definition at line 132 of file itkFEMSolver.h.
References itk::SmartPointer< TObjectType >::GetPointer().
LinearSystemWrapper::Pointer itk::fem::Solver::GetLinearSystemWrapper | ( | ) | [inline, inherited] |
Gets the LinearSystemWrapper object.
Definition at line 298 of file itkFEMSolver.h.
References itk::fem::Solver::m_ls.
unsigned int itk::fem::Solver::GetNumberOfDegreesOfFreedom | ( | void | ) | [inline, inherited] |
Float itk::fem::Solver::GetSolution | ( | unsigned int | i, | |
unsigned int | which = 0 | |||
) | [inline, inherited] |
Definition at line 252 of file itkFEMSolver.h.
References itk::fem::Solution::GetSolutionValue(), and itk::fem::Solver::m_ls.
virtual Float itk::fem::SolverHyperbolic::GetTimeStep | ( | void | ) | const [inline, virtual] |
Returns the time step used for dynamic problems.
Reimplemented from itk::fem::Solver.
Definition at line 69 of file itkFEMSolverHyperbolic.h.
References m_deltaT.
void itk::fem::Solver::InitializeInterpolationGrid | ( | const VectorType & | size | ) | [inline, inherited] |
Same as InitializeInterpolationGrid(size, {0,0...}, size);
Definition at line 116 of file itkFEMSolver.h.
References itk::fem::Solver::InitializeInterpolationGrid().
void itk::fem::Solver::InitializeInterpolationGrid | ( | const VectorType & | size, | |
const VectorType & | bb1, | |||
const VectorType & | bb2 | |||
) | [inherited] |
Initialize the interpolation grid. The interpolation grid is used to find elements that containg specific points in a mesh. The interpolation grid stores pointers to elements for each point on a grid thereby providing a fast way (lookup table) to perform interpolation of results.
size | Vector that represents number of points on a grid in each dimension. | |
bb1 | Lower limit of a bounding box of a grid. | |
bb2 | Upper limit of a bounding box of a grid. |
Referenced by itk::fem::Solver::InitializeInterpolationGrid().
virtual void itk::fem::SolverHyperbolic::InitializeLinearSystemWrapper | ( | void | ) | [virtual] |
Initialize the linear system wrapper.
Reimplemented from itk::fem::Solver.
virtual void itk::fem::SolverHyperbolic::InitializeMatrixForAssembly | ( | unsigned int | N | ) | [virtual] |
Initializes the storasge for all master matrices.
Reimplemented from itk::fem::Solver.
itk::fem::Solver::itkStaticConstMacro | ( | MaxGridDimensions | , | |
unsigned | int, | |||
3 | ||||
) | [inherited] |
Since the itk::Image is templated over the number of dimensions, we have to know this at compile time. Solver class, however, can handle elements in any number of dimensions. In order to be able to use the Image, we choose the maximum number of space dimension that this function will be able to handle. Any unused dimensions are filled with zero.
For example: If a 2D node coordinates are {1.0,3.0} then the corresponding phisycal point in an image is {1.0,3.0,0.0};
void itk::fem::Solver::Read | ( | std::istream & | f | ) | [inherited] |
Reads the whole system (nodes, materials and elements) from input stream
void itk::fem::Solver::SetLinearSystemWrapper | ( | LinearSystemWrapper::Pointer | ls | ) | [inherited] |
Sets the LinearSystemWrapper object that will be used when solving the master equation. If this function is not called, a default VNL linear system representation will be used (class LinearSystemWrapperVNL).
ls | Pointer to an object of class which is derived from LinearSystemWrapper. |
virtual void itk::fem::SolverHyperbolic::SetTimeStep | ( | Float | ) | [inline, virtual] |
Sets the time step used for dynamic problems.
dt | New time step. |
Reimplemented from itk::fem::Solver.
Definition at line 70 of file itkFEMSolverHyperbolic.h.
References m_deltaT.
virtual void itk::fem::SolverHyperbolic::Solve | ( | void | ) | [virtual] |
Solves the system for the next time step.
Reimplemented from itk::fem::Solver.
void itk::fem::Solver::UpdateDisplacements | ( | void | ) | [inherited] |
Copy solution vector u to the corresponding nodal values, which are stored in node objects). This is standard post processing of the solution
void itk::fem::Solver::Write | ( | std::ostream & | f | ) | [inherited] |
Writes everything (nodes, materials and elements) to output stream
ElementArray itk::fem::Solver::el [inherited] |
Definition at line 55 of file itkFEMSolver.h.
LoadArray itk::fem::Solver::load [inherited] |
Definition at line 67 of file itkFEMSolver.h.
Definition at line 84 of file itkFEMSolverHyperbolic.h.
Definition at line 85 of file itkFEMSolverHyperbolic.h.
Referenced by GetTimeStep(), and SetTimeStep().
Definition at line 83 of file itkFEMSolverHyperbolic.h.
LinearSystemWrapper::Pointer itk::fem::Solver::m_ls [protected, inherited] |
Pointer to LinearSystemWrapper object.
Definition at line 332 of file itkFEMSolver.h.
Referenced by itk::fem::Solver::GetLinearSystemWrapper(), and itk::fem::Solver::GetSolution().
MaterialArray itk::fem::Solver::mat [inherited] |
Definition at line 73 of file itkFEMSolver.h.
unsigned int itk::fem::Solver::NGFN [protected, inherited] |
Number of global degrees of freedom in a system
Definition at line 323 of file itkFEMSolver.h.
Referenced by itk::fem::Solver::GetNumberOfDegreesOfFreedom().
unsigned int itk::fem::Solver::NMFC [protected, inherited] |
Number of multi freedom constraints in a system. This member is set in a AssembleK function.
Definition at line 329 of file itkFEMSolver.h.
NodeArray itk::fem::Solver::node [inherited] |
Definition at line 61 of file itkFEMSolver.h.