

element 'up_plate' ELASTIC den 2700 E 70e9 v 0.2 damp 0.9 of. element 'specimen' ELASTIC den 2700 E 30e9 v 0.3 damp 0.6 of. insert 'specimen' # assign material parameters to solid elements based on the element groups of. mesh delaunay #insert cohesive elements, it is aviable to insert CZM in the whole model or to a specific entity of. size 'specimen' 5e-3 # starts to mesh, delaunay is optional, it is the default value of. size 'all' 10e-3 # assign specific mesh size to group 'specimen' of. inp file from other codes ''' # assign global mesh size, the default keyword is for global entities of. msh file (less than V 2.4) and 4- import. square 'down_plate' - 35e-3 35e-3 - 55e-3 - 50e-3 ''' There are four methods to create mesh, 1- user defined commands in prepprocessing, it will call gmsh kernel to mesh the geometry, 2- import. square 'up_plate' - 35e-3 35e-3 50e-3 55e-3 # Create a block for the down plate of. square 'specimen' - 25e-3 25e-3 - 50e-3 50e-3 # Create a block for the upper plate of. > interface (CC'ing Jon on this one: Jon, > already define fields in the Gmsh Python > On Thu, at 10:06 AM, Christophe Geuzaine > I'd be very much interested in a hands-on example > CMake Error at wrappers/gmshpy/cmake_install.cmake:232 > /tmp/buildd/gmsh-tetgen-2.8.3~svn16274/debian/tmp/usr/gmshpy/extra_include/Field.h > When trying to package latest rev for debian, the > gmsh python bindings then loads a geo file and adds > An example of python field is attached, the python > setup.py build python setup.py install). > sub-directory the run the python script "setup.py" > On linux and OSX, to build the python bindings, go to > Gmsh Library and python bindings can be downloaded > most of Gmsh internal functions to python. > in particular there is no documentation nor stable > There is no embedded python interpreter in Gmsh, we > I just added python fields (they will be available in > On Thu, at 15:51 +0200, Jonathan Lambrechts wrote: > sorry, it should have been FieldPython.h and not > On Thu, at 5:29 PM, Jonathan Lambrechts > example does not really help me that much! > Since I am however creating the mesh without using a. > Thanks a lot for your work and the example. > example of this but I can try to build one if you give me more > doable but not documented and I'm not sure it's stable. > If you want to construct the geometry directly in python, this is > if it is something else, please send me an example and I will try > (just remove the line loading the geo file). > If it is through the GUI, you can still do it after the script run > think you can use the example, just replace the line that load the > If it is by loading a file (any file, not specially geo file), I > Sorry, it's not clear for me how you specify your geometry to gmsh. > On Mon, at 10:06 AM, Jonathan Lambrechts > also defines the Field function in the very restricted expression > having to generate a geo file that defines the smaller spheres and

> and provide function that is smallest close to the centres of the > What I need is a way access the characteristic length parameter from > However, when meshing I can only work with a constant characteristic > It allows me to cut out smaller spheres out of the one large one. It does not use any other file than the python script itself to define Here is a version of your script that use a python field to define the Next message: strange problem with gmshpy module on linux.Previous message: extending gmsh scripting language with python functions.extending gmsh scripting language with python functions Jonathan Lambrechts jonathanlambrechts at Extending gmsh scripting language with python functions
