| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// NOX: An Object-Oriented Nonlinear Solver Package |
| 4 |
// |
| 5 |
// Copyright 2002 NTESS and the NOX contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
// 1D Linear basis function for finite element method |
| 11 |
|
| 12 |
#ifndef _NOX_EXAMPLE_EPETRA_LINEAR_BASIS_H |
| 13 |
#define _NOX_EXAMPLE_EPETRA_LINEAR_BASIS_H |
| 14 |
|
| 15 |
class Basis { |
| 16 |
|
| 17 |
public: |
| 18 |
|
| 19 |
// Constructor |
| 20 |
Basis(); |
| 21 |
|
| 22 |
// Destructor |
| 23 |
~Basis(); |
| 24 |
|
| 25 |
// Calculates the values of u and x at the specified gauss point |
| 26 |
void getBasis(int gp, double *x, double *u, double *uold, |
| 27 |
std::vector<double*>& dep); |
| 28 |
|
| 29 |
public: |
| 30 |
// Variables that are calculated at the gauss point |
| 31 |
double *phi, *dphide; |
| 32 |
double xx, eta, wt; |
| 33 |
double uu, duu; |
| 34 |
double uuold, duuold; |
| 35 |
std::vector<double> ddep; |
| 36 |
double dx; |
| 37 |
}; |
| 38 |
|
| 39 |
#endif |