Peano
Loading...
Searching...
No Matches
ahf-postprocess-options.h
Go to the documentation of this file.
1#ifndef APPARENT_HORIZON_FINDER_AHF_POSTPROCESS_OPTIONS_H_
2#define APPARENT_HORIZON_FINDER_AHF_POSTPROCESS_OPTIONS_H_
3
4#include "ah-search.h"
5#include "ahf-data.h"
7
8#include <optional>
9#include <string>
10#include <vector>
11
12namespace exahype2::ccz4::ahf {
13
23
26 ReferencePoint position{0.0, 0.0, 0.0};
27 double mass = 1.0;
28};
29
48 std::string inputFile;
55 std::string outputPrefix = "apparent-horizon";
57 ReferencePoint centre{0.0, 0.0, 0.0};
58 std::vector<double> initialRadii;
59 std::vector<PostprocessPuncture> punctures;
66 std::vector<double> radiiPerMass{0.35, 0.5, 0.25};
74 int lMax = 4;
75 static constexpr int PunctureLMax = 8;
77 std::optional<double> supportRadius;
78 double tolerance = 1.0e-8;
79 bool help = false;
80};
81
90PostprocessOptions ParsePostprocessArguments(const std::vector<std::string>& arguments);
91
93std::string PostprocessUsage(const std::string& executable);
94
96std::optional<SourceVariableMapping> PostprocessSourceMapping(PostprocessMapping mapping);
97
104double FinestGridSpacing(const GridData& gridData);
105
112 double supportRadius);
113
127 const PostprocessOptions& options, double supportRadius);
128
129} // namespace exahype2::ccz4::ahf
130
131#endif // APPARENT_HORIZON_FINDER_AHF_POSTPROCESS_OPTIONS_H_
std::string PostprocessUsage(const std::string &executable)
The usage text printed by –help and after an argument error.
PostprocessOptions ParsePostprocessArguments(const std::vector< std::string > &arguments)
Parse the arguments that follow the program name.
double FinestGridSpacing(const GridData &gridData)
The smallest distance between neighbouring cell centres along a coordinate axis.
AHSearchOptions MakePostprocessSearchOptions(const PostprocessOptions &options, double supportRadius)
The search configuration: one attempt per initial radius around the centre, radius-weighted cubic int...
std::optional< SourceVariableMapping > PostprocessSourceMapping(PostprocessMapping mapping)
The explicit source mapping selected by mapping; nothing for Names.
AHCommonHorizonSearchOptions MakePostprocessCatalogueOptions(const PostprocessOptions &options, double supportRadius)
The catalogue configuration for punctures: black holes bh0, bh1, ... at the punctures,...
PostprocessMapping
How ahf-postprocess finds the AHF fields in a snapshot.
@ Names
By the component names of the cell data (ReadGridFromFile without a mapping).
Shared numerical configuration and an arbitrary ordered attempt list.
Definition ah-search.h:31
Pointwise Cartesian grid data.
Definition ahf-data.h:429
std::vector< PostprocessPuncture > punctures
std::optional< double > supportRadius
Interpolation support radius; without one, three times the finest cell spacing.
std::string outputPrefix
One search writes <outputPrefix>.txt (summary) and, on success, <outputPrefix>.vtp (surface).
std::vector< double > radiiPerMass
Initial radii of each puncture's search, in units of its mass.
int lMax
Highest spherical-harmonic degree; with punctures and no –lmax it is PunctureLMax instead.
A black hole given with –puncture x,y,z:m.
Cartesian reference coordinate for one apparent-horizon centre point.
Definition ahf-data.h:20