Public Member Functions | Protected Member Functions | List of all members
ComplexHarmonicEquations Class Referenceabstract
Inheritance diagram for ComplexHarmonicEquations:
QComplexHarmonicElement< NNODE_1D >

Public Member Functions

 ComplexHarmonicEquations ()
 Empty Constructor. More...
 
virtual double u (const unsigned &n) const
 Access function: First 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. More...
 
virtual double w (const unsigned &n) const
 Second eigenfunction value at local node n. More...
 
void output (ostream &outfile)
 Output the eigenfunction with default number of plot points. More...
 
void output (ostream &outfile, const unsigned &nplot)
 Output FE representation of soln: x,y,u or x,y,z,u at Nplot plot points. More...
 
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. More...
 
double interpolated_u (const Vector< double > &s) const
 Return FE representation of function value u(s) at local coordinate s. More...
 
double interpolated_w (const Vector< double > &s) const
 Return FE representation of function value w(s) at local coordinate s. More...
 

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. More...
 
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. More...
 
virtual int u_local_eqn (const unsigned &n, const unsigned &i)
 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. More...
 

Detailed Description

A class for all elements that solve the eigenvalue problem

\[ \frac{\partial w}{\partial x} = \lambda u \]

\[ \frac{\partial u}{\partial x} = (\lambda - \mu) w \]

This class contains the generic maths. Shape functions, geometric mapping etc. must get implemented in derived class.

Definition at line 92 of file complex_harmonic.cc.

Constructor & Destructor Documentation

ComplexHarmonicEquations::ComplexHarmonicEquations ( )
inline

Empty Constructor.

Definition at line 97 of file complex_harmonic.cc.

Member Function Documentation

virtual double ComplexHarmonicEquations::dshape_eulerian ( const Vector< double > &  s,
Shape &  psi,
DShape &  dpsidx 
) const
protectedpure virtual

Shape/test functions and derivs w.r.t. to global coords at local coord. s; return Jacobian of mapping.

Implemented in QComplexHarmonicElement< NNODE_1D >.

virtual double ComplexHarmonicEquations::dshape_eulerian_at_knot ( const unsigned &  ipt,
Shape &  psi,
DShape &  dpsidx 
) const
protectedpure virtual

Shape/test functions and derivs w.r.t. to global coords at integration point ipt; return Jacobian of mapping.

Implemented in QComplexHarmonicElement< NNODE_1D >.

void ComplexHarmonicEquations::fill_in_contribution_to_jacobian_and_mass_matrix ( Vector< double > &  residuals,
DenseMatrix< double > &  jacobian,
DenseMatrix< double > &  mass_matrix 
)
inline

Assemble the contributions to the jacobian and mass matrices.

Definition at line 142 of file complex_harmonic.cc.

References EigenproblemShift::Mu.

double ComplexHarmonicEquations::interpolated_u ( const Vector< double > &  s) const
inline

Return FE representation of function value u(s) at local coordinate s.

Definition at line 232 of file complex_harmonic.cc.

double ComplexHarmonicEquations::interpolated_w ( const Vector< double > &  s) const
inline

Return FE representation of function value w(s) at local coordinate s.

Definition at line 253 of file complex_harmonic.cc.

void ComplexHarmonicEquations::output ( ostream &  outfile)
inline

Output the eigenfunction with default number of plot points.

Definition at line 110 of file complex_harmonic.cc.

Referenced by QComplexHarmonicElement< NNODE_1D >::output().

void ComplexHarmonicEquations::output ( ostream &  outfile,
const unsigned &  nplot 
)
inline

Output FE representation of soln: x,y,u or x,y,z,u at Nplot plot points.

Definition at line 118 of file complex_harmonic.cc.

virtual double ComplexHarmonicEquations::u ( const unsigned &  n) const
inlinevirtual

Access function: First 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 102 of file complex_harmonic.cc.

virtual int ComplexHarmonicEquations::u_local_eqn ( const unsigned &  n,
const unsigned &  i 
)
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 291 of file complex_harmonic.cc.

virtual double ComplexHarmonicEquations::w ( const unsigned &  n) const
inlinevirtual

Second eigenfunction value at local node n.

Definition at line 106 of file complex_harmonic.cc.


The documentation for this class was generated from the following file: