From ddc673c74295e71c1f54851a72c7da7132f6eece Mon Sep 17 00:00:00 2001 From: Jonas Lindemann Date: Thu, 15 Feb 2024 18:26:28 +0100 Subject: [PATCH] Fixed typos. --- .pdm.toml | 2 ++ calfem/vis_mpl.py | 4 ++-- docs/source/calfem_mesh_guide.rst | 10 +++++----- pyproject.toml | 3 +-- 4 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 .pdm.toml diff --git a/.pdm.toml b/.pdm.toml new file mode 100644 index 0000000..855e3b5 --- /dev/null +++ b/.pdm.toml @@ -0,0 +1,2 @@ +[python] +path = "C:\\Users\\Jonas Lindemann\\Development\\calfem-python\\.venv\\Scripts\\python.exe" diff --git a/calfem/vis_mpl.py b/calfem/vis_mpl.py index bbb1e66..e14cc5f 100644 --- a/calfem/vis_mpl.py +++ b/calfem/vis_mpl.py @@ -508,7 +508,7 @@ def draw_element_values( Draws scalar element values in 2D or 3D. Args: - ev: + values: An N-by-1 array or a list of scalars. The Scalar values of the elements. ev[i] should be the value of element i. coords: @@ -526,7 +526,7 @@ def draw_element_values( displacements: An N-by-2 or N-by-3 array. Row i contains the x,y,z displacements of node i. - draw_mesh: + draw_elements: Boolean. True if mesh wire should be drawn. Default True. draw_undisplaced_mesh: diff --git a/docs/source/calfem_mesh_guide.rst b/docs/source/calfem_mesh_guide.rst index a54fbd6..623a6f3 100644 --- a/docs/source/calfem_mesh_guide.rst +++ b/docs/source/calfem_mesh_guide.rst @@ -79,18 +79,18 @@ Next, we need to set some desired properties on our mesh: .. code-block:: Python - mesh.elType = 3 # Degrees of freedom per node. - mesh.dofsPerNode = 1 # Factor that changes element sizes. - mesh.elSizeFactor = 0.15 # Element size Factor + mesh.el_type = 3 # Element type is quadrangle + mesh.dofs_per_node = 1 # Degrees of freedom per node + mesh.el_size_factor = 0.15 # Element size Factor -The *eltype* property determines the element used for mesh generation. Elements that can be generated are: +The *el_type* property determines the element used for mesh generation. Elements that can be generated are: * 2 - 3 node triangle element * 3 - 4 node quadrangle element * 5 - 8 node hexahedron * 16 - 8 node second order quadrangle -The *dofsPerNode* defines the number of degrees of freedom for each node. *elSizeFactor* determines the coarseness of the mesh. +The *dofs_per_node* defines the number of degrees of freedom for each node. *el_size_factor* determines the coarseness of the mesh. To generate the mesh and at the same time get the needed data structures for use with CALFEM we call the **.create()** method of the mesh object: diff --git a/pyproject.toml b/pyproject.toml index c938c12..666bdca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,8 @@ [project] name = "calfem-python" -version = "3.6.5" +version = "3.6.6" description = "CALFEM for Python" authors = [ - {name = "Jonas Lindemann", email = "jonas.lindemann@gmail.com"}, {name = "Jonas Lindemann, et al", email = "jonas.lindemann@lunarc.lu.se"}, ] dependencies = [