A class for all elements that solve the simple one-dimensional eigenvalue problem. More...
Public Member Functions | |
HarmonicEquations () | |
Empty Constructor. | |
virtual double | u (const unsigned &n) const |
Access function: Eigenfunction value at local node n Note that solving the eigenproblem does not assign values to this storage space. It is used for output purposes only. | |
void | output (ostream &outfile) |
Output the eigenfunction with default number of plot points. | |
void | output (ostream &outfile, const unsigned &nplot) |
Output FE representation of soln: x,y,u or x,y,z,u at Nplot plot points. | |
void | fill_in_contribution_to_jacobian_and_mass_matrix (Vector< double > &residuals, DenseMatrix< double > &jacobian, DenseMatrix< double > &mass_matrix) |
Assemble the contributions to the jacobian and mass matrices. | |
double | interpolated_u (const Vector< double > &s) const |
Return FE representation of function value u(s) at local coordinate s. | |
Protected Member Functions | |
virtual double | dshape_eulerian (const Vector< double > &s, Shape &psi, DShape &dpsidx) const =0 |
Shape/test functions and derivs w.r.t. to global coords at local coord. s; return Jacobian of mapping. | |
virtual double | dshape_eulerian_at_knot (const unsigned &ipt, Shape &psi, DShape &dpsidx) const =0 |
Shape/test functions and derivs w.r.t. to global coords at integration point ipt; return Jacobian of mapping. | |
virtual int | u_local_eqn (const unsigned &n) |
Access function that returns the local equation number of the unknown in the problem. Default is to assume that it is the first (only) value stored at the node. | |
A class for all elements that solve the simple one-dimensional eigenvalue problem.
These elements are very closely related to the Poisson elements and could inherit from them. They are here developed from scratch for pedagogical purposes. This class contains the generic maths. Shape functions, geometric mapping etc. must get implemented in derived class.
Definition at line 68 of file harmonic.cc.
|
inline |
Empty Constructor.
Definition at line 73 of file harmonic.cc.
|
protectedpure virtual |
Shape/test functions and derivs w.r.t. to global coords at local coord. s; return Jacobian of mapping.
Implemented in QHarmonicElement< NNODE_1D >.
|
protectedpure virtual |
Shape/test functions and derivs w.r.t. to global coords at integration point ipt; return Jacobian of mapping.
Implemented in QHarmonicElement< NNODE_1D >.
Referenced by fill_in_contribution_to_jacobian_and_mass_matrix().
|
inline |
Assemble the contributions to the jacobian and mass matrices.
Definition at line 113 of file harmonic.cc.
References dshape_eulerian_at_knot(), and u_local_eqn().
|
inline |
Return FE representation of function value u(s) at local coordinate s.
Definition at line 168 of file harmonic.cc.
References interpolated_u(), and u().
Referenced by interpolated_u(), and output().
|
inline |
Output the eigenfunction with default number of plot points.
Definition at line 82 of file harmonic.cc.
References output().
Referenced by output(), QHarmonicElement< NNODE_1D >::output(), and QHarmonicElement< NNODE_1D >::output().
|
inline |
Output FE representation of soln: x,y,u or x,y,z,u at Nplot plot points.
Definition at line 90 of file harmonic.cc.
References interpolated_u().
|
inlinevirtual |
Access function: Eigenfunction value at local node n Note that solving the eigenproblem does not assign values to this storage space. It is used for output purposes only.
Definition at line 78 of file harmonic.cc.
Referenced by interpolated_u().
|
inlineprotectedvirtual |
Access function that returns the local equation number of the unknown in the problem. Default is to assume that it is the first (only) value stored at the node.
Definition at line 205 of file harmonic.cc.
Referenced by fill_in_contribution_to_jacobian_and_mass_matrix().