Hi My question is regarding frackit package: https://git.iws.uni-stuttgart.de/tools/frackit
I want to create 1D random embedded fracture in 2D domain. *Test code-python:* from frackit.geometry import Point_3, Quadrilateral_3, Direction_3, Line_3, Vector_3 # we use the unit quad as domain # 2--3 # | | # 0--1 p0 = Point_3(0,0,0) p1 = Point_3(1,0,0) p2 = Point_3(0,1,0) p3 = Point_3(1,1,0) quad = Quadrilateral_3(p0,p1,p2,p3) # get a line Line(point, direction) line1 = Line_3(Point_3(0.1,0.1,0), Direction_3(Vector_3(0.5,0.5,0))) # We can now create an entity network from frackit.entitynetwork import EntityNetworkBuilder builder = EntityNetworkBuilder() builder.addEntities([line1]) # single fracture only ## let the builder construct the network and write it to gmsh file format print("\n --- Constructing entity network from the raw entities ---\n") network = builder.build() print("\n --- Writing .geo file ---\n") from frackit.io import GmshWriter writer = GmshWriter(network) writer.setMeshSize(GmshWriter.GeometryTag.entity, 0.1) writer.write("network") # filename of the .geo files (will add extension .geo automatically) print("\n --- Finished writing .geo file ---\n") Output error message: frackit@54b158438b4a:~/frackit/appl/example1$ python3 example_1Din2D.py Traceback (most recent call last): File "example_1Din2D.py", line 22, in <module> builder.addEntities([line1]) File "/frackit/.local/lib/python3.6/site-packages/frackit/entitynetwork/__init__.py", line 116, in addEntities id = super().addEntity(entity) TypeError: addEntity(): incompatible function arguments. The following argument types are supported: 1. (self: frackit.entitynetwork._entitynetwork._EntityNetworkBuilderWrapper, arg0: frackit.geometry._geometry.Disk) -> Frackit::Id 2. (self: frackit.entitynetwork._entitynetwork._EntityNetworkBuilderWrapper, arg0: frackit.geometry._geometry.Quadrilateral_3) -> Frackit::Id 3. (self: frackit.entitynetwork._entitynetwork._EntityNetworkBuilderWrapper, arg0: frackit.geometry._geometry.Polygon_3) -> Frackit::Id 4. (self: frackit.entitynetwork._entitynetwork._EntityNetworkBuilderWrapper, arg0: frackit.geometry._geometry.OCCFaceWrapper) -> Frackit::Id Invoked with: <frackit.entitynetwork.EntityNetworkBuilder object at 0x7f6ade4f2a40>, Frackit::Line<3> How can I use Line shape in the network builder? Thank you, Regards Anup Shahi Ph.D. Student
_______________________________________________ DuMux mailing list DuMux@listserv.uni-stuttgart.de https://listserv.uni-stuttgart.de/mailman/listinfo/dumux