Skip to content

Commit

Permalink
Merge pull request #19 from ComputationalPhysiology/swap-fibers-s-n
Browse files Browse the repository at this point in the history
Swap sheet and sheet normal in lv ellipsoid fibers
  • Loading branch information
finsberg authored Dec 21, 2023
2 parents 0f82a42 + 206b1bd commit ceb03f6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/cardiac_geometries/fibers/_lv_ellipsoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def laplace(
markers: Dict[str, Tuple[int, int]],
function_space: str = "P_1",
):

endo_marker = markers["ENDO"][0]
epi_marker = markers["EPI"][0]

Expand Down Expand Up @@ -152,12 +151,12 @@ def compute_system(
f0 = np.sin(al) * e_mu + np.cos(al) * e_theta
f0 = normalize(f0)

s0 = np.cross(e_mu, e_theta, axis=0)
s0 = normalize(s0)

n0 = np.cross(f0, s0, axis=0)
n0 = np.cross(e_mu, e_theta, axis=0)
n0 = normalize(n0)

s0 = np.cross(f0, n0, axis=0)
s0 = normalize(s0)

Vv = dolfin.FunctionSpace(
mesh,
dolfin.VectorElement(
Expand Down Expand Up @@ -227,7 +226,6 @@ def create_microstructure(
function_space,
outdir: Optional[Union[str, Path]] = None,
) -> Microstructure:

t = laplace(mesh, ffun, markers, function_space=function_space)
system = compute_system(
t,
Expand Down

0 comments on commit ceb03f6

Please sign in to comment.