Move limits array to Limiter

This commit is contained in:
Matthias Hochsteger 2024-09-27 18:30:47 +02:00
parent c0422c160b
commit d82c96ba2b
2 changed files with 4 additions and 5 deletions

View File

@ -72,7 +72,6 @@ class BoundaryLayerTool
Array<double> surfacefacs; Array<double> surfacefacs;
Array<int> si_map; Array<int> si_map;
Array<double, PointIndex> limits;
std::map<PointIndex, SpecialBoundaryPoint> special_boundary_points; std::map<PointIndex, SpecialBoundaryPoint> special_boundary_points;
std::map<PointIndex, std::tuple<Vec<3>*, double>> growth_vector_map; std::map<PointIndex, std::tuple<Vec<3>*, double>> growth_vector_map;

View File

@ -15,7 +15,7 @@ struct GrowthVectorLimiter {
const BoundaryLayerParameters &params; const BoundaryLayerParameters &params;
Mesh &mesh; Mesh &mesh;
double height; double height;
FlatArray<double, PointIndex> limits; Array<double, PointIndex> limits;
FlatArray<Vec<3>, PointIndex> growthvectors; FlatArray<Vec<3>, PointIndex> growthvectors;
BitArray changed_domains; BitArray changed_domains;
unique_ptr<BoxTree<3>> tree; unique_ptr<BoxTree<3>> tree;
@ -24,7 +24,7 @@ struct GrowthVectorLimiter {
GrowthVectorLimiter(BoundaryLayerTool &tool_) GrowthVectorLimiter(BoundaryLayerTool &tool_)
: tool(tool_), params(tool_.params), mesh(tool_.mesh), : tool(tool_), params(tool_.params), mesh(tool_.mesh),
height(tool_.total_height), limits(tool_.limits), height(tool_.total_height),
growthvectors(tool_.growthvectors), map_from(mesh.Points().Size()), growthvectors(tool_.growthvectors), map_from(mesh.Points().Size()),
debug("debug.txt") { debug("debug.txt") {
changed_domains = tool.domains; changed_domains = tool.domains;
@ -406,8 +406,8 @@ struct GrowthVectorLimiter {
} }
void Perform() { void Perform() {
tool.limits.SetSize(mesh.Points().Size()); limits.SetSize(mesh.Points().Size());
tool.limits = 1.0; limits = 1.0;
// limit to not intersect with other (original) surface elements // limit to not intersect with other (original) surface elements
double trig_shift = 0; double trig_shift = 0;