34 template <
typename _Type>
64 unsigned order = p_EQUATION -> get_order();
70 for(
unsigned ivec = 0; ivec < vals.
size(); ++ivec) {
77 for(
unsigned node = 0; node < NODES.
size(); ++node) {
81 for(
unsigned var = 0; var < order; ++var) {
82 vars_at_node[ var ] = vecs[ ivec ][ node * order + var ];
85 vars_at_node[ order ] = vals[ ivec ];
95 MESHES.push_back(eigfn);
101 if(i > MESHES.size()) {
103 problem =
"You have tried to extract an eigenfunction from the ODE_EVP class\n";
104 problem +=
"whose index is outside the range of stored meshes.\n";
114 void assemble_dense_problem();
132 std::vector< OneD_Node_Mesh<D_complex> > MESHES;
A matrix class that constructs a DENSE matrix as an STL Vector of DenseVectors.
Specification for a templated DenseVector class – a dense, dynamic, vector object.
A templated class for equations that can be inherited from to allow instantiation of PDE_double_IBVP ...
The collection of CppNoddy exceptions.
Specification of the linear eigensystem base class.
A specification for a one dimensional mesh object.
A specification of a (double/complex) VECTOR residual class.
A matrix class that constructs a DENSE matrix as a row major std::vector of DenseVectors.
An DenseVector class – a dense vector object.
std::size_t size() const
A pass-thru definition to get the size of the vector.
An equation object base class used in the PDE_double_IBVP class.
An exception to indicate that a CppNoddy container has been accessed with index/indices outside the m...
A linear Nth-order generalised eigensystem base class.
A templated object for real/complex vector system of first-order ordinary differential equations.
LinearEigenSystem_base * p_eigensystem()
Allow access to the underlying dense linear eigensystem through a pointer to the private member data.
void add_tagged_to_mesh()
OneD_Node_Mesh< D_complex > get_mesh(const unsigned &i) const
void eigensolve()
Formulate and solve the global eigenvalue problem for a linear system.
A one dimensional mesh utility object.
void set_nodes_vars(const std::size_t node, const DenseVector< _Type > &u)
Set the variables stored at A SPECIFIED node.
A base class to be inherited by objects that define residuals.
An object to block copying.
A collection of OO numerical routines aimed at simple (typical) applied problems in continuum mechani...