From 40cff9aa533eee13c476f06b02b580c561f11942 Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Thu, 10 Nov 2011 15:43:09 +0000 Subject: [PATCH] 3D B LAYERS --- Mesh/Field.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mesh/Field.cpp b/Mesh/Field.cpp index 8d07a32cb2..bda72f0036 100644 --- a/Mesh/Field.cpp +++ b/Mesh/Field.cpp @@ -1677,6 +1677,8 @@ BoundaryLayerField :: BoundaryLayerField() (nodes_id, "Indices of nodes in the geometric model", &update_needed); options["EdgesList"] = new FieldOptionList (edges_id, "Indices of curves in the geometric model for which a boundary layer is needed", &update_needed); + options["FacesList"] = new FieldOptionList + (faces_id, "Indices of faces in the geometric model for which a boundary layer is needed", &update_needed); // options["IField"] = new FieldOptionInt // (iField, "Index of the field that contains the distance function"); options["hwall_n"] = new FieldOptionDouble @@ -1861,6 +1863,10 @@ void BoundaryLayerField :: operator() (double x, double y, double z, SMetric3 &m it != edges_id.end(); ++it) { _att_fields.push_back(new AttractorField(1,*it,300000)); } + for(std::list<int>::iterator it = faces_id.begin(); + it != faces_id.end(); ++it) { + _att_fields.push_back(new AttractorField(2,*it,300)); + } update_needed = false; } -- GitLab