FMM3D Class Reference
class for the 3-D fast marching algorithm More...
Inherits FMM.
Public Member Functions | |
FMM3D (const Grid &g, Vect< real_t > &phi, bool HA) | |
Constructor. More... | |
FMM3D (const Grid &g, Vect< real_t > &phi, const Vect< real_t > &F, bool HA) | |
Constructor. More... | |
void | init () |
Initialize heap. | |
void | run () |
Execute Fast Marching Procedure. | |
void | eval (IPoint &pt, int sign) |
Compute the distance from node to interface. More... | |
void | ExtendSpeed (Vect< real_t > &F) |
Extend the speed function to the whole grid. More... | |
real_t | check_error () |
Check error by comparing with the gradient norm. More... | |
Detailed Description
class for the 3-D fast marching algorithm
This class manages the 3-D Fast Marching Method
Constructor & Destructor Documentation
Constructor.
Constructor using Grid instance
- Parameters
-
[in] g Instance of class Grid [in] phi Vector containing the level set function at grid nodes. The values are 0
on the interface (from which the distance is computed), positive on one side and negative on the other side. They must contain the signed distance on the nodes surrounding the interface but can take any value on other nodes, provided they have the right sign.[in] HA true if the program must be executed with high accuracy, false otherwise
- Author
- M. Sylla, B. Meden
- Copyright
- GNU Lesser Public License
Constructor.
Constructor using Grid instance
- Parameters
-
[in] g Instance of class Grid [in] phi Vector containing the level set function at grid nodes. The values are 0
on the interface (from which the distance is computed), positive on one side and negative on the other side. They must contain the signed distance on the nodes surrounding the interface but can take any value on other nodes, provided they have the right sign.[in] F Vector containing the right-hand side of the Eikonal equation [in] HA true if the program must be executed with high accuracy, false otherwise
- Author
- M. Sylla, B. Meden
- Copyright
- GNU Lesser Public License
Member Function Documentation
void eval | ( | IPoint & | pt, |
int | sign | ||
) |
Compute the distance from node to interface.
- Parameters
-
[in] pt Node to treat [in] sign Node's sign
- Returns
- Distance from node
pt
to interface
Extend the speed function to the whole grid.
- Parameters
-
[in,out] F Vector containing the speed at interface nodes on input and extended speed at whole grid nodes
real_t check_error | ( | ) |
Check error by comparing with the gradient norm.
This function prints discrete L2 and Max. errors