How to use the dmsh.Ellipse function in dmsh

To help you get started, we’ve selected a few dmsh examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nschloe / dmsh / test / test_ellipse.py View on Github external
def test_ellipse(show=False):
    geo = dmsh.Ellipse([0.0, 0.0], 2.0, 1.0)
    X, cells = dmsh.generate(geo, 0.2, show=show)

    geo.plot()

    ref_norms = [2.5238407704910199e02, 1.5704208202824834e01, 1.9999857285273639e00]
    assert_norm_equality(X.flatten(), ref_norms, 1.0e-2)
    return X, cells