NeoPZ
TPZMeshSolution.h
Go to the documentation of this file.
1 //
2 // TPZMeshSolution.hpp
3 // PZ
4 //
5 // Created by Philippe Devloo on 30/10/16.
6 //
7 //
8 
9 #ifndef TPZMeshSolution_hpp
10 #define TPZMeshSolution_hpp
11 
12 #include <stdio.h>
13 
14 #include "pzfunction.h"
15 #include "pzinterpolationspace.h"
16 #include "pzmultiphysicselement.h"
17 
18 
20 class TPZMeshSolution : public TPZFunction<STATE>
21 {
22 
25 
27  int64_t fGeoElIndex;
28 
31 
34 
37 
40 
43 
46 
49 
50 public:
51 
53  TPZMeshSolution(TPZCompMesh *cmesh, int materialid);
54 
57 
64  virtual void Execute(const TPZVec<REAL> &x, TPZVec<STATE> &f, TPZFMatrix<STATE> &df) override;
65 
67  virtual int NFunctions() const override
68  {
69  return fNumSolutions;
70  }
71 
74  virtual int PolynomialOrder() const override
75  {
76  return fPolynomialOrder;
77  }
78 
80  virtual void Print(std::ostream &out) override;
81  public:
82 int ClassId() const override;
83 
84 
85 };
86 
87 
88 
89 #endif /* TPZMeshSolution_hpp */
int fPolynomialOrder
the polynomial order of the function
int fSolutionVarindex
variable index of the solution variable
int64_t fGeoElIndex
Geometric element index where the last point was found.
Contains declaration of TPZInterpolationSpace class which implements the interface for interpolated c...
Contains the declaration of the TPZMultiphysicsElement class. This class is abstract.
Implements a function. Utility.
Definition: pzfunction.h:19
TPZCompMesh * fMesh
Mesh for which the solution applies.
int ClassId() const override
Define the class id associated with the class.
f
Definition: test.py:287
class which represents the solution and its derivative as a function
virtual int NFunctions() const override
Returns number of functions.
virtual void Print(std::ostream &out) override
Print a brief statement.
~TPZMeshSolution()
Class destructor.
virtual void Execute(const TPZVec< REAL > &x, TPZVec< STATE > &f, TPZFMatrix< STATE > &df) override
Performs function computation.
int fNumSolutions
number of state variables of the differential equation
Implements computational mesh. Computational Mesh.
Definition: pzcmesh.h:47
int fDimension
dimension of the problem
virtual int PolynomialOrder() const override
Polynomial order of this function.
int fGradVarindex
variable index of the gradient of the solution
TPZMeshSolution(TPZCompMesh *cmesh, int materialid)
Class constructor.
int fMaterialIndex
index of the material object
TPZManVector< REAL, 3 > fLastLoc
Parametric coordinate where the last point was found.