mirror of
https://github.com/wassname/simpeg.git
synced 2026-09-09 11:34:26 +08:00
start of getting any field from any formulation
This commit is contained in:
@@ -233,6 +233,10 @@ class BaseTensorMesh(BaseMesh):
|
||||
'Fz' -> z-component of field defined on faces
|
||||
'N' -> scalar field defined on nodes
|
||||
'CC' -> scalar field defined on cell centers
|
||||
# 'CCVx' -> x-component of a field defined on cell centers
|
||||
# 'CCVy' -> y-component of a field defined on cell centers
|
||||
# 'CCVz' -> z-component of a field defined on cell centers
|
||||
|
||||
"""
|
||||
if self._meshType == 'CYL' and self.isSymmetric and locType in ['Ex','Ez','Fy']:
|
||||
raise Exception('Symmetric CylMesh does not support %s interpolation, as this variable does not exist.' % locType)
|
||||
@@ -256,6 +260,12 @@ class BaseTensorMesh(BaseMesh):
|
||||
Q = sp.hstack(components)
|
||||
elif locType in ['CC', 'N']:
|
||||
Q = Utils.interpmat(loc, *self.getTensor(locType))
|
||||
# elif locType in ['CCVx', 'CCVy', 'CCVz']:
|
||||
# Q = Utils.interpmat(loc, 'CC')
|
||||
# Zero = 0.*Q
|
||||
|
||||
|
||||
|
||||
else:
|
||||
raise NotImplementedError('getInterpolationMat: locType=='+locType+' and mesh.dim=='+str(self.dim))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user