This module contains classes to store domain information in OpenTidalFarm.
In particular each Domain
includes:
The mesh, and subdomain and surface makers can be visualised with
plot(domain.mesh, title="Mesh")
plot(domain.facet_ids, title="Area ids")
plot(domain.cell_ds, title="Boundary ids")
interactive()
opentidalfarm.domains.rectangle_domain.
RectangularDomain
(x0, y0, x1, y1, nx, ny)[source]¶Create a rectangular domain.
Parameters: |
|
---|
cell_ids
= None¶A dolfin.CellFunction
containing the area markers.
facet_ids
= None¶A dolfin.FacetFunction
containing the surface markers.
mpi_comm
= None¶A dolfin.Mesh
containing the mesh.
opentidalfarm.domains.file_domain.
FileDomain
(mesh_file, facet_ids_file=None, cell_ids_file=None)[source]¶Create a domain from DOLFIN mesh files (.xml).
Parameters: |
|
---|
cell_ids
= None¶A dolfin.CellFunction
containing the area markers.
facet_ids
= None¶A dolfin.FacetFunction
containing the surface markers.
mesh
= None¶A dolfin.Mesh
containing the mesh.