Are you sure that the units of measure are all congruent? OpenCASCADE uses millimeters by default, but gmsh, for example, uses meters. If this is the case, then you have to specify (when you create the manifold from opencascade) what are the scalings to apply before you attach it to a face (you can only attach opencascade manifolds based on stl files to faces in 3d, or to cells and faces in Triangulation<2,3>, as in step-54).
L. > On 4 Nov 2024, at 11:00, 王艺康 <yikangwang1...@gmail.com> wrote: > > In step-54 a mesh is a two-dimensional cell located in three-dimensional > space that provides the corresponding line and surface manifolds based on the > input iges file. But in my case the stl file has only face sheet information, > I give the manifolds from the stl file to the face an error occurs, giving to > the cell will not refine the surface according to the stl file > > On Monday, November 4, 2024 at 1:52:35 PM UTC+8 王艺康 wrote: > I have a complex model surface file stl (two-dimensional cell located in > three-dimensional space), I extracted some of the points in the stl file and > plotted a coarse mesh (3d) with gmsh, I want to encrypt the coarse mesh > (based on the surface of the stl file) using step-54. I pray that this will > achieve an accurate description of the complex model > > > > On Monday, November 4, 2024 at 10:54:35 AM UTC+8 Wolfgang Bangerth wrote: > On 11/2/24 21:11, 王艺康 wrote: > > Yes I did, I read the file using TopoDS_Shape > > <https://dealii.org/developer/doxygen/deal.II/classTensor.html> bow_surface > > <https://dealii.org/developer/doxygen/deal.II/classTensor.html> = > > OpenCASCADE::read_SLT > > <https://dealii.org/developer/doxygen/deal.II/namespaceOpenCASCADE.html#affe07b496f4edf844d5f4e8d7a540295> > > ( _cad_file_name_ > > <https://dealii.org/developer/doxygen/deal.II/classTensor.html> ); > > > > and I read the file usingOpenCASCADE::extract_compound_shapes > > <https://dealii.org/developer/doxygen/deal.II/namespaceOpenCASCADE.html#a1e49f50433c835c841eed35f40862560> > > (Bowed Surfaces > > <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, Compounds > > <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, Composite > > Solids <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, > > Solids <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, > > Shells <https://dealii.org/developer/doxygen/deal.II/classTensor.html>, > > Lines <https://dealii.org/developer/doxygen/deal.II/classTensor.html> ) was > > extracted, and then the coarse mesh was imported, but the refinement was > > not refined by looking for the stl file.(I followed the steps in step-54 to > > the letter). > > > > OK, so if the steps you are taking are not working, then show us what it is > you are doing. We cannot *guess* what your problem is if you don't show us > what it is you are trying. > > Can you post the code you are using, along with all input files? > > Best > WB > > > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: bang...@colostate.edu > www: http://www.math.colostate.edu/~bangerth/ > > > > -- > The deal.II project is located at http://www.dealii.org/ > For mailing list/forum options, see > https://groups.google.com/d/forum/dealii?hl=en > --- > You received this message because you are subscribed to the Google Groups > "deal.II User Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dealii+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/dealii/24d85738-203f-4273-a60c-994b682ab905n%40googlegroups.com. -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/dealii/75FF7A02-6F94-40E9-A163-8AEEAAA3C481%40gmail.com.