Skip to content

mesh.domain #14

Open
Open
@rowanc1

Description

@rowanc1

From @lheagy on October 25, 2016 16:44

Often, it is handy to check the extent of a mesh (eg. when making sure it is large enough wrt skin-depths). Right now, I would go through each dimension and print the min and max cell center. Perhaps we can accomplish this through a mesh.domain

@property
domain(self):
    if mesh.dim == 3 # same idea for 1D, 2D 
    return np.array(
        [self.vectorCCx.min(), self.vectorCCy.min(), self.vectorCCz.min()], 
        [self.vectorCCx.max(), self.vectorCCy.max(), self.vectorCCz.max()]
    )

thoughts?

Copied from original issue: simpeg/simpeg#484

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions