Laplace1DL2 Class Reference
[Laplace equation]
#include <Laplace1DL2.h>
Detailed Description
To build element equation for a 1-D elliptic equation using the 2-Node line element (P1).Public Member Functions | |
| double * | A () |
| Return element matrix. | |
| double * | b () |
| Return element right-hand side. | |
| void | BodyRHS (const Vect< double > &f) |
| Add Right Hand Side Contribution. | |
| void | BoundaryRHS (int n, double p) |
| Add Neumann contribution to Right-Hand Side. | |
| Laplace1DL2 (Element *el) | |
| Constructor for an element. | |
| void | Matrix (double coef=1.) |
| Add finite element matrix to left hand side. | |
| ~Laplace1DL2 () | |
| Destructor. | |
Member Function Documentation
| void BodyRHS | ( | const Vect< double > & | f | ) |
Add Right Hand Side Contribution.
- Parameters:
-
[in] f Vector containing the source given function at mesh nodes
| void BoundaryRHS | ( | int | n, | |
| double | p | |||
| ) |
Add Neumann contribution to Right-Hand Side.
- Parameters:
-
[in] n Parameter to select equal to 0 if the condition is at the left end of the domain and different if it is at the right of it [in] p Value of flux to add
- Note:
- This member function is to be invoked only for the first or last element
| void Matrix | ( | double | coef = 1. |
) |
Add finite element matrix to left hand side.
- Parameters:
-
[in] coef Value to multiply by the added matrix