Skip to content

Commit ec2048c

Browse files
committed
Merge branch 'master' of github.com:Loop3D/LoopStructural
2 parents 91dd93a + b24bf24 commit ec2048c

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

LoopStructural/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
# # temp_file = tempfile.tempdir+Path('/default-loop-structural-logfile.log')
3131
# log_to_file(temp_file)
3232
log_to_console()
33-
__version__ = '1.0.5-dev'
33+
__version__ = '1.0.5'

LoopStructural/interpolators/structured_tetra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def evaluate_gradient(self, pos, prop):
130130
vertices, element_gradients, tetras, inside = self.get_tetra_gradient_for_location(pos)
131131
vertex_vals = self.properties[prop][tetras]
132132
#grads = np.zeros(tetras.shape)
133-
values[inside,:] = (element_gradients[inside,:,:]*vertex_vals[inside, None, :]).sum(2)
133+
values[inside,:] = (element_gradients[inside,:,:]*self.properties[prop][tetras[inside,:]]).sum(2)
134134
length = np.sum(values[inside,:],axis=1)
135135
# values[inside,:] /= length[:,None]
136136
return values

LoopStructural/modelling/fold/fold.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_fold_axis_orientation(self, points):
6161

6262
def get_deformed_orientation(self, points):
6363
"""
64-
Calculate the normal to the folded foliation at locations
64+
Calculate the direction vectors of the fold
6565
6666
Parameters
6767
----------
@@ -70,6 +70,13 @@ def get_deformed_orientation(self, points):
7070
7171
Returns
7272
-------
73+
fold_direction : np.array
74+
a vector parallel to the fold
75+
fold axis : np.array
76+
the fold axis
77+
dgz : np.array
78+
the X direction of the finite strain ellipsoid, perpendicular to both
79+
fold axis and fold direction
7380
7481
"""
7582
fold_axis = self.get_fold_axis_orientation(points)

0 commit comments

Comments
 (0)