[Gmsh] How to generate periodic grids when importing step geometry ?
Benedikt Oswald
benedikt.oswald at lspr.swiss
Wed Oct 11 16:29:02 CEST 2017
Merci bien!
Works very nice, thanks !
Greetings, Benedikt
Am 10.10.17 um 17:14 schrieb Christophe Geuzaine:
>
>> On 10 Oct 2017, at 13:16, Benedikt Oswald <benedikt.oswald at lspr.swiss> wrote:
>>
>> Dear gmsh,
>>
>> assume I have created a geometry in FreeCAD,
>>
>> exported it as a STEP file and imported
>>
>> into gmsh.
> If you use FreeCAD, import directly the .brep file in Gmsh - it's much more efficient than STEP, and you will avoid all translation errors (as .brep is the native OpenCASCADE format, used directly by both FreeCAD and Gmsh).
>
>> How do I ensure conformal boundary meshes
>>
>> for periodic analysis when I generate the mesh
>>
>> in gmsh ?
>>
> Just as you would do it for a "normal" Gmsh geometry, i.e., with "Periodic Surface" constraints.
>
> For example if the periodic faces 1 and 2 are translated by 3 in the z direction, your geo file could look something like this:
>
> Merge "file.brep";
> Periodic Surface {1} = {2} Translate {0,0,3};
>
> PS : with recent versions of Gmsh you can also directly create quite complicated geometries directly in Gmsh, with SetFactory("OpenCASCADE"). Or you can modify geometries created w.g. with FreeCAD. See gmsh/demos/boolean for examples, in particular demos/boolean/import.geo.
>
>
>
>> Thanks for some hints,
>>
>> Benedikt
>>
>>
>> --
>> ----------------------------------------------------------------------------------------------------------------------
>> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74
>> Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald at lspr.swiss
>> ----------------------------------------------------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> gmsh mailing list
>> gmsh at 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 at lspr.swiss
----------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 882 bytes
Desc: OpenPGP digital signature
URL: <http://onelab.info/pipermail/gmsh/attachments/20171011/b118e61e/attachment.asc>
More information about the gmsh
mailing list