Re: [Gmsh] PETSc/DMPlex and .msh

2020-12-03 Thread Jeremy Theler
(.msh) file , and we can directly get the physical Ids from > > the DMPlex object? > > I have no idea... PETSc/DMPlex reads .msh files? > Yes indeed. Here's the implementation: https://gitlab.com/petsc/petsc/-/blob/master/src/dm/impls/plex/plexgmsh.c Thank you -- jeremy thel

Re: [Gmsh] Negative Jacobians in 2nd Order Mesh

2020-09-04 Thread jeremy theler
If you do not need curved elements set Mesh.SecondOrderLinear = 1 -- jeremy theler www.seamplex.com On Fri, Sep 4, 2020, 11:22 Stephen Wornom wrote: > Tell the list if it removes the negative values. > Thanks, > Stephen > > - Original Message - > > From:

Re: [Gmsh] ?= Step model view export as png from command line/scrip

2020-08-26 Thread Jeremy Theler
ng'... > Error : Creating './test.png' requires a graphical interface > context Add an Exit instruction in the .geo and call it without the '-' -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] ?==?utf-8?q? Step model view export as png from command line/script

2020-08-26 Thread Jeremy Theler
What does "I cannot create it online" mean? -- jeremy theler www.seamplex.com On Wed, 2020-08-26 at 10:19 +0200, Zuheyr Alsalihi wrote: > Thank you so much!! > > I am using a geo file with which I can create a png file using the > display but I cannot create > it

Re: [Gmsh] Coherence 'could not find extruded vertex' error

2020-08-17 Thread Jeremy Theler
> Using the coherence command I get a large list of errors of the type: > > Error : could not find extruded vertex (0.08443279255020152, > -0.053826794978966, 0). Try to re-use line 18 for the last extrude instead of creating a new edge 35. -- jeremy theler www.seamplex.com

Re: [Gmsh] Gaps and overlaps when using extrude command

2020-08-15 Thread jeremy theler
I am not sure because I seldom use the GUI. But what I am pretty sure of is that Gmsh works the way it should. It would help to know what the actual errors you get are. -- jeremy theler www.seamplex.com On Sat, Aug 15, 2020, 07:25 Bart Deschoolmeester < bart.deschoolmees...@bbri.be>

Re: [Gmsh] Gaps and overlaps when using extrude command

2020-08-14 Thread Jeremy Theler
Sure, the Coherence command performs a Boolean Fragments operation and the ids of the entities are modified.Just set the appropiate id of the new entities in the EdgesList of your field: Field[1].EdgesList = {25,26}; Regards--jeremy thelerwww.seamplex.com On Fri, 2020-08-14 at 13:41 +, Bart Des

Re: [Gmsh] Gaps and overlaps when using extrude command

2020-08-14 Thread Jeremy Theler
Add Coherence; and you'll be fine. On Fri, 2020-08-14 at 10:43 +, Bart Deschoolmeester wrote: > Hi, > I am a beginner. > While working on a larger 3D project I noticed some gaps and > overlaps. > I plan to simulate the heat transfer. > I assume gaps and overlaps are to be avoided to get a good

Re: [Gmsh] Does OCC fillet splines?

2020-07-30 Thread Jeremy Theler
It works if you use a smaller radius, say 0.075 --jeremy thelerwww.seamplex.com id="-x-evo-selection-start-marker"> On Wed, 2020-07-29 at 18:35 +, Kadry Abdelmeguid Karim Hesham Ahmed wrote: > > > Great Idea, please find a simple .geo case that reproduces the > problem below: > > > > > Se

Re: [Gmsh] Small element size factor does not work

2020-07-24 Thread Jeremy Theler
RT(F)M, section F.5 question 3 in http://gmsh.info/doc/texinfo/gmsh.html#Mesh-module-questions How can I only save tetrahedral elements (not triangles and lines)? By default, if physical groups are defined, the output mesh only contains those elements that belong to physical entities. So to save

Re: [Gmsh] 3D volume as tetrahedra only

2020-06-08 Thread jeremy theler
Defining physical groups or not control what is saved in the .msh file not what is shown in the GUI. -- jeremy theler www.seamplex.com On Mon, Jun 8, 2020, 04:40 Keith Sloan wrote: > I am new to Gmsh and trying to reproduce the following but still seeing > triangles on the surface. >

Re: [Gmsh] 3D non-uniform meshing

2020-05-31 Thread jeremy theler
http://gmsh.info/doc/texinfo/gmsh.html#t10_002egeo -- jeremy theler www.seamplex.com On Sun, May 31, 2020, 03:56 Tian Xia wrote: > Hi Jeremy, > > Thanks for directing me to the documentation. I can see my first > question answered there. But I still can't see a clear way

Re: [Gmsh] 3D non-uniform meshing

2020-05-30 Thread Jeremy Theler
http://gmsh.info/doc/texinfo/gmsh.html#Specifying-mesh-element-sizes On Sat, 2020-05-30 at 00:21 -0700, Tian Xia wrote: > Hi Gmsh developers, > Thank you for developing this extremely useful tool. Recently I have > encountered a couple of problems about generating 3D non-uniform > mesh: > > 1. If

Re: [Gmsh] Embed a point lying on the edge

2020-05-15 Thread Jeremy Theler
Dear Nicolas I asked the very same thing here: https://gitlab.onelab.info/gmsh/gmsh/-/issues/450The answer is here: https://gitlab.onelab.info/gmsh/gmsh/-/issues/644 TLDR; perform a boolean fragments operation between the line and the point: SetFactory("OpenCASCADE"); Point(1) = {0,0,0, 0.1}; Poi

[Gmsh] Making an animation from non-uniform time steps

2020-05-05 Thread Jeremy Theler
an animation that shows the real time advancement? Python and linear interpolation between the two closest sets of data are fine. I would like to get the general idea, I can work out the details. Regards -- jeremy theler www.seamplex.com ___ gmsh

Re: [Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread Jeremy Theler
On Thu, 2020-03-19 at 13:02 +0100, Christophe Geuzaine wrote: > In a .geo file: > > Merge "file.msh"; > SetOrder 2; > Save "file2.msh"; Great! I was close, but it is always wise to ask the boss. Thanks. -- jeremy theler www.seamplex.com _

Re: [Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread jeremy theler
Yes, but the difficult part here is to know if a new node needs to be added or another element already added it, and in such case what is the already-added node id. Maybe Gmsh already has this somewhere near the "refine by splitting" tool. -- jeremy theler www.seamplex.com On Thu, Ma

[Gmsh] Adding second-order nodes to tet4

2020-03-19 Thread Jeremy Theler
Any ideas? Regards -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] R: Slice 3D to get 2D geometry

2020-03-11 Thread Jeremy Theler
No, the problem is that Gmsh does import the volume but after it you ask it to perform either one or more of the OCC "healing" procedures and for some reason these procedures remove the volume. See if you have something like Geometry.OCCFixDegenerated Geometry.OCCFixSmallEdges Geometry.OCCFixSma

Re: [Gmsh] Sphere in a sphere mesh

2020-03-04 Thread Jeremy Theler
the bigger one. This is the code: > > > > > > Sphere(1) = {0, 0, 0, 1, -Pi/2, Pi/2, 2*Pi}; > > Sphere(2) = {0, 0, 0, 3, -Pi/2, Pi/2, 2*Pi}; > > > > BooleanDifference{ Volume{2}; Delete; }{ Volume{1}; Delete; } This actually works. See attached png.

Re: [Gmsh] Small cylinder in huge domain

2020-02-24 Thread jeremy theler
https://dev.opencascade.org/doc/overview/html/occt_user_guides__boolean_operations.html -- jeremy theler www.seamplex.com On Mon, Feb 24, 2020, 19:01 tao song wrote: > Dear Christophe, > It's really solved my problem, and i'm looking forward to the new > algorithm! > Is

Re: [Gmsh] Create mesh for 1D geometry

2020-02-06 Thread Jeremy Theler
delx = 0.5; xend = 20; Point(1) = {0, 0, 0, delx}; Point(2) = {xend, 0, 0, delx}; Line(1) = {1, 2}; Physical Point("left") = {1}; Physical Point("right") = {2}; Physical Line("bulk") = {1}; On Thu, 2020-02-06 at 23:11 +0530, Deepa wrote: > > > > I am a beginner here. > > > > I'm looking for wa

[Gmsh] Physical entities/groups

2020-01-31 Thread Jeremy Theler
When were physical entities renamed to groups? Is the official nomenclature “Physical group” now? -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Transforming mesh

2020-01-12 Thread jeremy theler
For linear transformations (and non-linear too if you are flexible enough) you could write a python script to read all the nodes coordinates, transform them algebraically and then write them back into a .msh file. -- jeremy theler www.seamplex.com On Sat, Jan 11, 2020, 22:49 Max Orok wrote

Re: [Gmsh] transfer physical groups to patches in version 4.3.0

2019-12-12 Thread jeremy theler
openfoam should do that too. -- jeremy theler www.seamplex.com On Wed, Dec 11, 2019, 18:53 Marc Belleau wrote: > > Hi to all > > I have to use version 2.12.0 in order for gmshToFoam to transform the > physical groups into patches. Because if I use version 4.3.0 and save >

[Gmsh] Laplace and relocate optimizations

2019-12-06 Thread Jeremy Theler
eferences to how the different optimization methods work? Regards -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

[Gmsh] Getting the opencascade version from python

2019-12-06 Thread Jeremy Theler
Hi Is there a way to get a string with the OCE/OCCT version the Python Gmsh SDK was linked against? So far I could only get it by grepping `gmsh -info` for OCC but I would like to know the version after importing gmsh in a python script. Regards -- jeremy theler www.seamplex.com

Re: [Gmsh] Refinement mesh of specific entities within volume

2019-12-05 Thread Jeremy Theler
Have you tried FacesList instead of EdgesList? On Wed, 2019-12-04 at 15:52 +0100, Sabrina Zacarias wrote: > Dear gmsh team, > > I Have a surface (which is a tube) embedded in a volume (a cylinder), > and I have two questions regarding the meshing: > > 1. Is it possible/is there an easy way to de

Re: [Gmsh] R: R: R: ellipsoid issue

2019-09-06 Thread Jeremy Theler
ersions used by Gmsh > > under different OS (I see version 7.3.0 under Linux, and 7.3.1 > > under Win). > > > > A. > > > > > > > > Da: Peter Johnston > > Inviato: venerdì 6 settembre 2019 08:54 > > A: Jeremy Theler ; g...@geuz.org; Al

Re: [Gmsh] R: ellipsoid issue

2019-09-05 Thread Jeremy Theler
Indeed, see attached png.I am using latest Git linked against OCE 7.3.0 in GNU/Linux. On Thu, 2019-09-05 at 08:13 +, Alessandro Vicini wrote: > Hello Peter, > > I’m using 4.4.0 (under windows), and your script seems to work for > me… > > A. > > > > Da: gmsh > Per conto di Peter Johnsto

Re: [Gmsh] Virtual topology problem

2019-07-23 Thread Jeremy Theler
If anyone is interested, that very same case can be solved directly from Onshape in less than 30 seconds: https://youtu.be/iure4rn6GRg In a couple of weeks I will add the possibility to download the .step and .geo to modify it offline. Regards -- jeremy theler www.seamplex.com On Mon, 2019-07

Re: [Gmsh] Different behaviour in Win or Linux

2019-07-22 Thread jeremy theler
Hi Alessandro I am not sure what happens in your case but I have seen different numbering of entities when using OCE 6.9.1 and OCCT 7.x, even under the same OS. You might want to check you are using the same kernel. Regards -- jeremy theler www.seamplex.com On Mon, Jul 22, 2019, 09:46

Re: [Gmsh] Label Different Regions of Continuous Mesh, Geometry from .stp files

2019-05-01 Thread Jeremy Theler
another; > > the elements in one component are not connected to the elements in > > another. > > > > You need to fuse the two surfaces: this can be achieved with the > "fragment" operation - see attached file. Would there be any diffe

Re: [Gmsh] mesh size in openCascade units

2019-04-24 Thread Jeremy Theler
Read further an use Distance + Threshold fields. -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Volume calculation for elementary elements

2019-04-23 Thread Jeremy Theler
Browse https://bitbucket.org/seamplex/wasora/src/9edef2db1f04bdb49e604722dce8df18879709b1/src/mesh/?at=master and look for the routines that compute the volumes, like line 405 of the following file https://bitbucket.org/seamplex/wasora/src/9edef2db1f04bdb49e604722dce8df18879709b1/src/mesh/tet4.c?at

Re: [Gmsh] Adjacent elements in finite volume formulation

2019-03-31 Thread Jeremy Theler
} > for i in range(0, len(faces), 3): > f = tuple(sorted(faces[i:i+3])) > t = tets[i/12] > if not t in txt: > txt[t] = set() > for tt in fxt[f]: > if tt != t: > txt[t].add(tt) > > print("neighbors by face: ", txt) > &g

Re: [Gmsh] Adjacent elements in finite volume formulation

2019-03-30 Thread Jeremy Theler
Hey Yuri I asked the same question back in 2011: http://onelab.info/pipermail/gmsh/2011/006878.html All I got is a loose reference to Lohner's book: http://onelab.info/pipermail/gmsh/2011/006881.html Someone asked it again in 2012 with no response: http://onelab.info/pipermail/gmsh/2012/007480.html

Re: [Gmsh] Units for STEP files

2019-03-30 Thread Jeremy Theler
http://onelab.info/pipermail/gmsh/2019/012933.html http://gmsh.info/doc/texinfo/gmsh.html#index-Geometry_002eOCCTargetUnit On Sat, 2019-03-30 at 20:22 +1300, Victor Kemp wrote: > How does Gmsh decide what units to use for its dimensionless mesh > made from a STEP file? I've noticed that different

[Gmsh] Non-deterministic results with -cpu

2019-03-27 Thread Jeremy Theler
gards -- jeremy theler www.seamplex.com SetFactory("OpenCASCADE"); a() = ShapeFromFile("cube.brep"); DBRep_DrawableShape CASCADE Topology V1, (c) Matra-Datavision Locations 1 1 1 0 0 0 0

Re: [Gmsh] about background fields

2019-02-19 Thread Jeremy Theler
what about Shepard or Modified Shepard? https://en.wikipedia.org/wiki/Inverse_distance_weighting id="-x-evo- selection-start-marker"> On Tue, 2019-02-19 at 12:00 +0100, Christophe Geuzaine wrote: > > On 18 Feb 2019, at 16:36, Alessandro Vicini > el.com> wrote: > > > > > > I was wondering whethe

Re: [Gmsh] Stress on Gauss Points

2019-02-16 Thread Jeremy Theler
, it could. This is why I am interested in this issue, and raised the question on how to average if the solver has to output nodal values of stresses. Weighted average? With the element's volume? With the element's quality? [1] https://www.seamplex.com/blog/say-modeling-not-simulation.html --

Re: [Gmsh] Stress on Gauss Points

2019-02-15 Thread Jeremy Theler
average? weighted average? how? using the element's volume? the element's quality? etc regards -- jeremy theler www.seamplex.com$MeshFormat 2.2 0 8 $EndMeshFormat $Nodes 6 1 0 0 0 2 1 0 0 3 1 1 0 4 0 1 0 5 2 0 0 6 2 1 0 $EndNodes $Elements 2 1 3 2 1 1 1 2 3 4 2 3 2 1 1 2 5 6 3 $En

Re: [Gmsh] .msh file with base index 0

2019-01-03 Thread jeremy theler
> http://onelab.info/mailman/listinfo/gmsh > _______ > gmsh mailing list > gmsh@onelab.info > http://onelab.info/mailman/listinfo/gmsh > -- -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] help finding line-point connectivity for imported geometry

2018-12-04 Thread jeremy theler
> coarse everywhere else. > > The reason I am not doing this manually is because I have 1000+ .iges > files to mesh due to the scope of my project. > > any help would be greatly appreciated! > Thanks, > Terrence > > ___ > g

[Gmsh] Why does "Still negative jacobians" mean error?

2018-10-25 Thread Jeremy Theler
Hi all I see in contrib/HighOrderMeshOptimizer/OptHomRun.cpp:686 that if the higher-order optimizer cannot make all the jacobian non-negative, then an error is raised. Why is this a hard error and not a warning? I have seen cases where the optimizer cannot make all of then non-negative, yet the r

Re: [Gmsh] Linking errors

2018-10-16 Thread Jeremy Theler
On Tue, 2018-10-16 at 06:52 +0200, Christophe Geuzaine wrote: > If you link with the static gmsh lib you'll also need to specify all > the additional dependencies. > > If you have trouble compiling/linking, I would suggest downloading > the binary gmsh SDK from the website - we distribute it exac

Re: [Gmsh] How can I mesh a CAD model and set physical surfaces automatically?

2018-09-18 Thread jeremy theler
That is how boundary conditions are set in the web-based interface www.caeplex.com Try uploading your CAD model and creating a dummy project. From step #2 you can download the mesh in .msh format (although 2.2 only for now). On Tue, 2018-09-18 at 04:27 +, Wesley Ranger wrote: > Hello everyon

Re: [Gmsh] node and element sparsity in msh4

2018-09-14 Thread jeremy theler
On Fri, 2018-09-14 at 19:58 +0200, Christophe Geuzaine wrote: > > On 14 Sep 2018, at 04:43, jeremy theler > > wrote: > > > > Dear developers, > > > > I am updating my .msh parser for the new version 4 format. What I > > found > > was that nodes

Re: [Gmsh] Meshing algorithms and suggestions

2018-09-13 Thread jeremy theler
On Wed, 2018-09-12 at 14:31 +0200, Guilherme Saturnino wrote: > > I would also like to suggest 2 improvements for future Gmsh versions: > > 1. Is it possible to provide Gmsh 4 binaries that are compatible > with > CentOS 6? It is an old but still widely used Linux distribution. > This > has bee

Re: [Gmsh] Triangular mesh problem

2018-09-03 Thread jeremy theler
mesh file for the > gmsh. The test.msh file is the mesh file for our code. Any co-operation > will be appreciable. > > Thanks in advance. > > Regards, > Mohammad > > > _______ > gmsh mailing list > gmsh@onelab.info >

Re: [Gmsh] Access to full line or surface information

2018-08-20 Thread jeremy theler
conditions (e.g. distributed load on a circular > line segment or pressure on a curved surface). > > > > > > Thanks in advance. > > > > Kind regards, > > Pieter Reumers > ___ > gmsh mailing list > gmsh@onelab.info > http://onelab.info/mailman/listinfo/gmsh > -- -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Save .geo file from python API

2018-07-12 Thread Jeremy Theler
After the boolean operations, save the current model to a BREP with gmsh.write("model.brep") Then read back the BREP from the .geo with ShapeFromFile() Regards--jeremy thelerwww.seamplex.com id="-x-evo-selection-start-marker"> On Wed, 2018-07-11 at 17:04 +0300, Роман Бутов wrote: > Is there a wa

Re: [Gmsh] Gmsh how to extract the node ID's on a given 3D Mesh Boundary Surface

2018-06-18 Thread Jeremy Theler
e are people that are happy with FORTRAN. -- jeremy theler www.seamplex.com___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] How to adaptively refined mesh using Gmsh software

2018-05-25 Thread Jeremy Theler
RTFM http://gmsh.info/doc/texinfo/gmsh.html#Specifying-mesh-element-sizes On Fri, 2018-05-25 at 02:10 +, Jianan Zhang wrote: > > > Hi, all, > > > > I want to generate a mesh which has denser meshes in a specific area, but > sparser meshes in other areas. How can I achieve this? > > >

Re: [Gmsh] Surface mesh for 3D solids

2018-05-18 Thread Jeremy Theler
On Fri, 2018-05-18 at 12:42 +, michael.a...@infineon.com wrote: > Hi Christophe, > > > > it would be indeed a valuable feature if there is a command to reorient > surfaces of volumes > > automatically in a way that the normal is pointing outwards, as it would help > to set the natural

Re: [Gmsh] Point coordinates at python api

2018-05-18 Thread Jeremy Theler
both with PythonOCC and Gmsh. BTW, I love the new Gmsh API :-) -- jeremy theler www.seamplex.com___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Point coordinates at python api

2018-05-17 Thread Jeremy Theler
On Thu, 2018-05-17 at 08:46 +0200, Christophe Geuzaine wrote: > How could I get point coordinates at python api? > gmsh.model.getBoundingBox(0, point_tag) Is there any way to get the center of gravity of a volume or surface? -- jeremy www.seamplex.com _

[Gmsh] Attractor & Distance

2018-04-27 Thread Jeremy Theler
Hey all What's the difference between fields Attractor and Distance? Regards -- jeremy www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Ensuring conformal meshing when using geomtry from Freecad

2018-04-09 Thread Jeremy Theler
On Fri, 2018-04-06 at 12:35 -0500, Juan E. Sanchez wrote: > Hello Jeremy, > > Is my understanding correct that there would only be one material volume > per brep file? I would use freecad, but it seems painful to try to no > import one brep per material into gmsh, and then attempt to get gm

Re: [Gmsh] Ensuring conformal meshing when using geomtry from Freecad

2018-04-06 Thread jeremy theler
t;> _______ > >> gmsh mailing list > >> gmsh@onelab.info > >> http://onelab.info/mailman/listinfo/gmsh > >> > > ___ > > gmsh mailing list > > gmsh@onelab.info > > http://onelab.info/mailman/listinfo/gmsh > > -- > > -- > Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 > 366 90 74 > Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald@lspr.swiss > > -- > > > ___ > gmsh mailing list > gmsh@onelab.info > http://onelab.info/mailman/listinfo/gmsh > -- -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Automatic building of geo scripts

2018-03-07 Thread Jeremy Theler
what would the resulting "script.geo" be? On Wed, 2018-03-07 at 19:41 +0100, Octavio Castillo Reyes wrote: > Dear gmsh users and support team, > > I'm working on meshing for geophysical applications using gmsh. I have > special interest in tetrahedral meshes. Since last November I'm trying to >

[Gmsh] surface-by-surface 2d algorithm

2018-02-24 Thread Jeremy Theler
Hi all! Is it possible to choose mesh.algorithm in a surface-by-surface case? I would like to have most of them to be meshed with frontal but one particular feature is complex and needs the meshadapt algo. Thanks -- jeremy www.seamplex.com ___ gmsh mai

Re: [Gmsh] I have a question about Gmsh

2018-01-09 Thread Jeremy Theler
On Tue, 2018-01-09 at 20:02 +0900, 허준영 wrote: > However, I can't find any part that can put physical properties of the > model(like velocity, resistivity or etc) in Gmsh. > Does the Gmsh not provide that kind of functions? no, you have to define physical entities and then somehow (in your solv

Re: [Gmsh] Point location in gmsh

2017-12-15 Thread Jeremy Theler
I had to code that algorithm myself based on a k-dimensional tree with the node coordinates and a list of elements asssociated to each node.If someone has a better algorithm, I am also happy to hear. Regards--jeremy On Thu, 2017-12-14 at 19:56 +0100, Octavio Castillo Reyes wrote: > Dear all, > I

Re: [Gmsh] Geometry.OCCTargetUnit

2017-12-04 Thread jeremy theler
Hi Chrstophe I tried setting it to "MM" and the result was the same. I will take a look again and send a mwe illustrating the issue. Regards jeremy On Mon, Dec 4, 2017, 08:45 Christophe Geuzaine wrote: > > > > On 4 Dec 2017, at 10:59, Jeremy Theler wrote: >

[Gmsh] Geometry.OCCTargetUnit

2017-12-04 Thread Jeremy Theler
Is the new property Geometry.OCCTargetUnit working as expected? How can I revert back to the original behavior, i.e. do not assume anything about units in an imported OCC model and leave them as "non-dimensional"? Thanks -- Jeremy Theler www.se

Re: [Gmsh] Interpolating mesh values

2017-11-28 Thread Jeremy Theler
Hi Mayank I have written that functionality into my own framework called wasora (www.seamplex.com/wasora) Say you have a .msh file with point-wise defined data as inhttps://bitbucket.org/seamplex/wasora/src/0321d32894d66056e64b2035ac98887b7aa4f29b/examples/tiny.msh?at=master&fileviewer=file-view-

Re: [Gmsh] A quastion

2017-11-23 Thread Jeremy Theler
Coherence You need version >= 3.0.6 On Thu, 2017-11-23 at 07:43 +0330, Ali Jamalifard wrote: > Hello Dear > I want to mesh a multi-domain three dimensional geometry using Gmesh. > my geometry file is in .Step format. > after generation of 3D mesh, the result mesh is not conformal between domain >

Re: [Gmsh] Delete 1D or 2D

2017-11-13 Thread Jeremy Theler
http://gmsh.info/doc/texinfo/gmsh.html#index-FAQ Answer E5.3 On Fri, 2017-11-10 at 19:28 +0100, Fabrice Pepin wrote: > Hello, > > > > > > When 3D meshing, 1D and 2D elements are created ? Is there a command to > delete 1D and 2D elements before exporting the 3D mesh ? > > > Thank you. >

Re: [Gmsh] How to mesh only the volume(s) and not the lines, surfaces etc?

2017-10-12 Thread Jeremy Theler
017655441319 > > > > On Thu 12 Oct 3:26:09 am, jeremy theler > > > > wrote:http://gmsh.info/doc/texinfo/gmsh.html#Elementary-vs-physical-entities > > > > On Wed, Oct 11, 2017, 17:36 Fernando Lorenzo wrote: > > > If you save your mesh as To

Re: [Gmsh] How to mesh only the volume(s) and not the lines, surfaces etc?

2017-10-11 Thread jeremy theler
lect the volumes, I don't find a Meshing > command to mesh only a particular physical entity. > > > ​ > Regards, > Shamsul Arefin > > ___ > gmsh mailing list > gmsh@onelab.info > http://onelab.info/mailman/lis

Re: [Gmsh] Where to find the code that reads msh file and generates faces?

2017-09-28 Thread Jeremy Theler
e and then trying to find common nodes between volumetric elements: https://bitbucket.org/seamplex/wasora/src/3dd04c3c1c236adae5799354114698112c46e232/src/mesh/neighbors.c?at=master&fileviewer=file-view-default -- jeremy theler www.seamplex.com signature.asc Description: This is a digitally s

Re: [Gmsh] Where to find the code that reads msh file and generates faces?

2017-09-22 Thread Jeremy Theler
On Fri, 2017-09-22 at 12:13 +0200, Jayesh Badwaik wrote: > I am looking for code in gmsh that reads the msh file (say of an 2d > triangular grid as the msh file attached in the mail) and populates the > faces which are displayed in the mesh but not written in the gmsh file. > (As far as I under

[Gmsh] Compsolids

2017-09-07 Thread Jeremy Theler
compsolid. Will you guys at Gmsh also add an option to really return a compsolid or will this behavior be the final one? Thanks -- jeremy theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] Mesh 2d surface only with triangles.

2017-07-11 Thread Jeremy Theler
Make sure you do not have "recombine all triangular meshes" checked in options -> mesh you can explicitly turn it off by adding Mesh.RecombineAll = 0; to the geo -- jeremy On Mon, 2017-07-10 at 22:14 +, César Pablo Camusso wrote: > Dear partners, > I want a mesh with only triangles, but I

Re: [Gmsh] Subtract elementary volume entity from physical volume using ID

2017-07-08 Thread Jeremy Theler
Does this work for you? Physical Volume (1) = {1:1000}; Physical Volume (1) -= {123}; BTW, what solver are you using? I suggest www.seamplex.com/milonga -- jeremy On Fri, 2017-07-07 at 18:39 -0500, Alex Lindsay wrote: > I have a large lattice geometry generated by for loops and extrusion. > I 

Re: [Gmsh] R: R: Gmsh .msh file

2017-06-29 Thread Jeremy Theler
ot have internal faces; > 2) if I check "save all" I loose the physical entities definition. > > > > -----Messaggio originale- > Da: Jeremy Theler [mailto:jer...@seamplex.com]  > Inviato: giovedì 29 giugno 2017 11:53 > A: Alessandro Vicini; gmsh@onelab.info >

Re: [Gmsh] R: Gmsh .msh file

2017-06-29 Thread Jeremy Theler
gt; > -Messaggio originale- > Da: gmsh [mailto:gmsh-boun...@ace20.montefiore.ulg.ac.be] Per conto > di Jeremy Theler > Inviato: giovedì 29 giugno 2017 11:17 > A: gmsh@onelab.info > Oggetto: Re: [Gmsh] Gmsh .msh file > > See > > http://gmsh.info/doc/texinfo/gmsh.h

Re: [Gmsh] Gmsh .msh file

2017-06-29 Thread Jeremy Theler
See http://gmsh.info/doc/texinfo/gmsh.html#Elementary-vs-physical-entities As much as I would like to say RTFM, I have to say that this has happened to me when I started using gmsh and I believe it happened to many other users. I wonder if there exist a more intuitive way of dealing the Mesh.Sav

Re: [Gmsh] Fields and Volume

2017-06-15 Thread Jeremy Theler
It is in appendix B.3: http://gmsh.info/doc/texinfo/gmsh.html#Mesh-options-list On Thu, 2017-06-15 at 15:49 +0200, Vincent HUBER wrote: > Hello Guillaume, > > > Thank you for your answer. > I'm a bit confused : I do not find this option in the doc > http://gmsh.info/doc/texinfo/gmsh.html > >

Re: [Gmsh] boolean partitioning

2017-05-23 Thread Jeremy Theler
Thanks for the example Christophe. How do I apply PointsOf{} to a merged BREP? -- Jeremy Theler www.seamplex.com On Mon, 2017-05-22 at 20:52 +0200, Christophe Geuzaine wrote: > > > Here's an example, for Gmsh 3.0.2: > > > SetFactory("OpenCASCADE"); &g

Re: [Gmsh] Question about gmsh

2017-05-08 Thread Jeremy Theler
tools -> options -> geometry -> surface labels -- Jeremy Theler www.seamplex.com On Sun, 2017-05-07 at 15:05 +0200, marcel_mueller...@web.de wrote: > Hallo, > > I'm a student of Engineering Sciences and a newbie in using gmsh but > did some tutorials. > &g

Re: [Gmsh] boolean partitioning

2017-05-04 Thread Jeremy Theler
> I have found an another way to import a brep file. However I can't > understand how the characteristic sizes are applied. I want to apply a > more dense mesh around the internal surfaces without the cost of a > field command. I don't either. But what I do is I set the characteristic length of

Re: [Gmsh] Connectivity of vertices

2017-04-11 Thread Jeremy Theler
. -- Jeremy Theler www.seamplex.com On Tue, 2017-04-11 at 11:39 +0200, HASSEN Ghazi wrote: > Hi, > > We are currently using GMSH in order to mesh two or three dimensional > structures in mechanic. We would like to know if it is possible when > meshing to get the connectivity of the v

[Gmsh] Segfault with Lloyd optimization

2017-04-05 Thread Jeremy Theler
) at /home/gtheler/codigos/3ros/build/gmsh/Mesh/meshGFaceLloyd.cpp:948 948 s1 = borders[i].get_segment(0); (gdb) Any suggestions? -- Jeremy Theler www.seamplex.com // use gmsh >= 2.16.0 SetFactory("OpenCASCADE"); Point(1) = {0, 0, 0, 0.125}; Point(2) = {0,

Re: [Gmsh] Switch to Git

2017-03-24 Thread Jeremy Theler
Yey! You finally took my point! http://onelab.info/pipermail/gmsh/2016/010848.html > I am aware of such cost. Maybe it could be lowered by switching to git > and take advantage of its branching and merging mechanisms... +1 for the Gmsh team :-) -- Jeremy Theler www.seamplex.com

Re: [Gmsh] Eliminating geometric duplications in imported geometry

2017-03-18 Thread Jeremy Theler
13830 -- Jeremy Theler www.seamplex.com On Sat, 2017-03-18 at 09:46 +0100, Christophe Geuzaine wrote: > > On 17 Mar 2017, at 23:24, Bram Sterling > > wrote: > > > > I'm trying to mesh a 3D 2-material construct created in another program > > (FreeCAD) and brought into

Re: [Gmsh] Extrude from imported geometry

2017-03-07 Thread Jeremy Theler
Can the new OpenCASCADE factory be used to first merge say an imported 2D BREP and the extrude the path? Pseudo-geo: SetFactory("OpenCASCADE"); Merge("2dbrep.brep"); Extrude{0,0,0.3}{ Surface{1:3}; } -- Jeremy Theler www.seamplex.com On Mon, 2017-03-06 at 21:38 +0100

Re: [Gmsh] BRL-CAD for Geometry?

2017-02-04 Thread Jeremy Theler
+1! -- Jeremy Theler www.seamplex.com On Fri, 2017-02-03 at 14:49 +0100, Christophe Geuzaine wrote: > > > As a little teaser, just to let you know that I'm coding a direct > interface to OpenCASCADE CAD creation right in .geo files. This will > in particular support a

Re: [Gmsh] Reversing mesh normals

2017-01-24 Thread Jeremy Theler
If you go through the post-processing the .msh file you can also change the ordering of the nodes in order to get the normals in the direction you want. -- Jeremy Theler www.seamplex.com On Tue, 2017-01-24 at 12:15 +, DILASSER Guillaume wrote: > Hello Mark, > > > >

Re: [Gmsh] Create mesh using command line

2017-01-23 Thread Jeremy Theler
Hi $ gmsh -2 myfile.geo will generate myfile.msh without opening the GUI. -- Jeremy Theler www.seamplex.com On Mon, 2017-01-23 at 18:14 +1100, Thomas Charles Reading Moore wrote: > I have a .geo file which I'd like to create a .msh file from. My > current procedure is > &g

Re: [Gmsh] Coordinate format

2017-01-23 Thread Jeremy Theler
ption, say www.seamplex.com/fino BTW, for the original developers, it would be nice to somehow being able to change the hardcoded %.16g in runtime, for example to reduce the size of the resulting ASCII mesh files. Cheers -- Jeremy Theler www.seamplex.com On Sat, 2017-01-21 at 22:53 +, Fabrice P

[Gmsh] Default characteristic length for opencascade models

2017-01-17 Thread Jeremy Theler
t;? So far what I am doing is Characteristic Length { 1:1 } = expression; and expect the model to have less than ten thousand points. Is there a cleaner way? -- Jeremy Theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http:/

[Gmsh] running Gmsh without X

2017-01-12 Thread Jeremy Theler
Hi all Is it possible to execute a Print "screenshot.png"; statement without having Gmsh to try to connect to an X server? -- Jeremy Theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

Re: [Gmsh] generating a sequence of meshes

2017-01-10 Thread Jeremy Theler
}; Line Loop(5) = {4, 1, 2, 3}; Plane Surface(6) = {5}; gtheler@tom:~/run$ for i in `seq 1 10`; do m4 -Dlc=$i/10 basic.geo > basic-$i.geo; gmsh -2 basic-$i.geo; done -- Jeremy Theler www.seamplex.com On Tue, 2017-01-10 at 15:57 +, Al wrote: > Hi, > > > I'd like to have a s

Re: [Gmsh] a problem about the node ordering

2016-11-14 Thread Jeremy Theler
AFAI, rotations should not give rise to singularities in the jacobian. In fact, these orderings are equivalents as you state, they give the same normals following the "right-hand rule". On Mon, 2016-11-14 at 11:04 +0100, Nan Li wrote: > Hello everyone, > > > I met a problem about the node orde

Re: [Gmsh] Question about gmsh

2016-11-02 Thread Jeremy Theler
If the data is given node-based, this can be done more or less easily with awk. If the data is cell-centered (as it seems to be the case from your description) probably a more complex solution will be needed. Can you give us an example .msh file you want to convert to plain ASCII columns? -- jere

Re: [Gmsh] information on generated mesh

2016-10-11 Thread jeremy theler
/gmsh/2013/008183.html http://onelab.info/pipermail/gmsh/2014/008833.html http://onelab.info/pipermail/gmsh/2014/008914.html http://onelab.info/pipermail/gmsh/2015/009739.html http://onelab.info/pipermail/gmsh/2015/009920.html -- Jeremy Theler www.seamplex.com On Tue, Oct 11, 2016 at 5:09 AM

Re: [Gmsh] aaaaaaaaaaaaaaargh

2016-10-03 Thread jeremy theler
.erase > > 22971ajohnen > > (std::find(v[j]->onWhat()->mesh_vertices.begin(), > > gtheler@tom:~/codigos/3ros/gmsh$ > > > > > > Any comment or solution is appreciated. > > Thanks! > > > > -- > > Jeremy Theler > > www.seam

[Gmsh] printf lines ignoring verbose options

2016-09-29 Thread jeremy theler
tch to git or mercurial instead of sticking with svn. Thanks -- Jeremy Theler www.seamplex.com ___ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh

  1   2   >