Skip to content

Commit

Permalink
Allow 4D flow solution to be passed to grounded melt solver (ignores …
Browse files Browse the repository at this point in the history
…4th dimension, assumed to be pressure)
  • Loading branch information
RupertGladstone committed Nov 13, 2024
1 parent d5e3329 commit 1ef1cce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elmerice/Solvers/GlaDSCoupledSolver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2916,8 +2916,11 @@ RECURSIVE SUBROUTINE GroundedMelt( Model,Solver,Timestep,TransientSimulation )
Ub = (UbVals(2*(UbPerm(nn)-1)+1)**2 + UbVals(2*(UbPerm(nn)-1)+2)**2)**0.5
ELSE IF (UbVar % DOFS .EQ. 3) THEN
Ub = (UbVals(3*(UbPerm(nn)-1)+1)**2 + UbVals(3*(UbPerm(nn)-1)+2)**2 + UbVals(3*(UbPerm(nn)-1)+3)**2)**0.5
ELSE IF (UbVar % DOFS .EQ. 4) THEN
Ub = (UbVals(4*(UbPerm(nn)-1)+1)**2 + UbVals(4*(UbPerm(nn)-1)+2)**2 + UbVals(4*(UbPerm(nn)-1)+3)**2)**0.5
CALL INFO(MyName, 'Sliding velocity is 4D. Ignoring 4th dimension.', level=5 )
ELSE
CALL Fatal(MyName, 'Expecting Ub variable to be 2D or 3D')
CALL Fatal(MyName, 'Expecting Ub variable to be 2D or 3D (or 4D flow solution)')
END IF

MeltVals(MeltPerm(nn)) = (Ub**2 * CeffVals(CeffPerm(nn)) ) / ( rho_fw * LatHeat )
Expand Down

0 comments on commit 1ef1cce

Please sign in to comment.