OOFEM 3.0
Loading...
Searching...
No Matches
fastmarchingmethod.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef fastmarchingmethod_h
36#define fastmarchingmethod_h
37
38#include "floatarray.h"
39#include "mathfem.h"
40
41#include <vector>
42#include <list>
43#include <queue>
44
45namespace oofem {
46class Domain;
47
54{
55protected:
56
64
66 {
67public:
69 };
70
72 std :: vector< FMM_DofmanRecord >dmanRecords;
75 // Delegate of FMM_DofmanRecord; stored in priority queue.
76 //class FMM_DofmanRecordDelegate {
77 //public:FMM_DofmanRecordDelegaFMM_DofmanRecordDelegatete
78 // int id;
79 //};
80
85 bool operator() (const int & p, const int & q) const
86 { return ( fabs( ( * dmanValuesPtrRef )->at(p) ) > fabs( ( * dmanValuesPtrRef )->at(q) ) ); }
87 };
88
91
93 std :: priority_queue< int, std :: vector< int > , FMM_DofmanRecordDelegate_greater >dmanTrialQueue;
94
95public:
104
116 void solve(FloatArray &dmanValues, const std :: list< int > &bcDofMans, double F);
117
118 // identification
119 const char *giveClassName() const { return "FastMarchingMethod"; }
120
121protected:
123 void initialize(FloatArray &dmanValues, const std :: list< int > &bcDofMans, double F);
124
126 void updateTrialValue(FloatArray &dmanValues, int id, double F);
127
130};
131} // end namespace oofem
132#endif // fastmarchingmethod_h
DofManager Fast Marching data record.
std ::vector< FMM_DofmanRecord > dmanRecords
Array of DofManager records.
std ::priority_queue< int, std ::vector< int >, FMM_DofmanRecordDelegate_greater > dmanTrialQueue
Priority queue for trial T values.
void initialize(FloatArray &dmanValues, const std ::list< int > &bcDofMans, double F)
Initialize receiver.
FNM_Status_Type
Type describing node status for fast marching method.
@ FMM_Status_TRIAL
Trial nodes, candidates for known (accepted).
@ FMM_Status_FAR
Nodes not yet visited.
@ FMM_Status_KNOWN_BOUNDARY
Boundary nodes, from which the front will not propagate.
@ FMM_Status_KNOWN
Accepted nodes.
const FloatArray * dmanValuesPtr
Pointer to working set of dmanValues.
int getSmallestTrialDofMan()
Get the trial point with smallest T; zero if empty.
const char * giveClassName() const
void solve(FloatArray &dmanValues, const std ::list< int > &bcDofMans, double F)
void updateTrialValue(FloatArray &dmanValues, int id, double F)
Updates the distance of trial node with given id).

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011