Skip to content

Commit

Permalink
README: updated Fields->Field
Browse files Browse the repository at this point in the history
  • Loading branch information
tridelat committed Sep 6, 2018
1 parent c83c000 commit 86956fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The following example shows how a simple geometry can created using a syntax
close to the one used in .geo files

```python
from py2gmsh import (Mesh, Entity, Fields)
from py2gmsh import (Mesh, Entity, Field)

# create Mesh class instance
my_mesh = Mesh()
Expand Down Expand Up @@ -53,13 +53,13 @@ ll1 = Entity.LineLoop([l1, l2, l3, l4], mesh=my_mesh)
s1 = Entity.PlaneSurface([ll1], mesh=my_mesh)

# create fields
f1 = Fields.MathEval(mesh=my_mesh)
f1 = Field.MathEval(mesh=my_mesh)
grading = 1.1
he = 0.005
f1.F = '(abs(y-0.5)*({grading}-1)+{he})/{grading}'.format(grading=grading,
he=he)
# create minimum field
fmin = Fields.Min(mesh=my_mesh)
fmin = Field.Min(mesh=my_mesh)
fmin.FieldsList = [f1] # could add more fields in the list if necessary

# set the background field as minimum field
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

setup(name='py2gmsh',
packages=['py2gmsh'],
version='3.0.6.0',
version='3.0.6.1',
description='Python wrappers to gmsh files with object-oriented syntax',
long_description=long_description,
long_description_content_type='text/markdown',
author='Tristan de Lataillade',
author_email='[email protected]',
url='https://github.com/tridelat/py2gmsh',
download_url='https://github.com/tridelat/py2gmsh/tarball/v3.0.6.0',
download_url='https://github.com/tridelat/py2gmsh/tarball/v3.0.6.1',
keywords=['gmsh', 'wrapper', 'mesh', 'python', 'api'],
classifiers=["Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit 86956fd

Please sign in to comment.