diff --git a/README.md b/README.md index 47a006db3ed210b35b4afccaa1ecbd4a9f50f949..c0d039612101f05281804378d91500f426fade71 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,9 @@ docker run -p 8888:8888 ngsxfem/ngsxfem-jupyter 3. or run `ngsxfem` interactively in the cloud without any local installation through the [binder service](https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.gwdg.de%2Flehrenfeld%2Fbernstein_bezier_shapereg_test/HEAD?filepath=bbez.ipynb): [](https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.gwdg.de%2Flehrenfeld%2Fbernstein_bezier_shapereg_test/HEAD?filepath=bbez.ipynb) + +* TODO : + * Module anlegen + * Beispiele anlegen + * automatisch generierte/generierbare Dokumentation (pydoc/sphinx) -> gitlab pages + * automatisches testen diff --git a/tests/test0.py b/tests/test0.py new file mode 100644 index 0000000000000000000000000000000000000000..c2ad2737fbcc109406e29fa116927757abf4d77d --- /dev/null +++ b/tests/test0.py @@ -0,0 +1,31 @@ + +... + + +# 2D / 3D +deformation = ... + +import bbezmodule + +bbez = BBezShapeControl(mesh) +bbez.Update(deformation) # deformation.space.globalorder, mesh.dim + +bbez.Draw() #matplotlib + +#does all the magic +bbez.ComputeAngles() + +#return min/max angles per element +minangles = bbez.MinAngles() +maxangles = bbez.MaxAngles() + +#return true/false - array +ba_acceptable = bbez.Admissible(minangle, maxangle) + +# deformation is adjusted until acceptable +bbez.Adjust() + +bbez.DrawMeshToTikz("mesh.tex") + + +