Skip to content

Commit

Permalink
ICs
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfonba committed Feb 14, 2024
1 parent 158fc26 commit 3c42479
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/pre_process/include/2dHardcodedIC.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

case(23004) ! 2D Interface

ih = 0.0436 - 0.00186/20*(sin((2*pi/1.86d-3)*x_cc(i)+pi/2))
ih = 0.01116 - 0.00186/20*(sin((2*pi/1.86d-3)*x_cc(i)+pi/2))
alph = 5d-1*(1 + tanh((y_cc(j) - ih)/1d-16))

if (alph < 1e-6) alph = 1e-6
Expand All @@ -156,9 +156,9 @@
q_prim_vf(contxb)%sf(i, j, 0) = (1 - alph)*950d0
q_prim_vf(contxe)%sf(i, j, 0) = alph*1d0

if (y_cc(j) > 0.0436) then
pInterface = 1d5 + 950*9.81*0.0439
q_prim_vf(E_idx)%sf(i, j, 0) = pInterface + 1d0*9.81*(y_cc(j) - 0.0436)
if (y_cc(j) > 0.01116) then
pInterface = 1d5 + 950*9.81*0.01116
q_prim_vf(E_idx)%sf(i, j, 0) = pInterface + 1d0*9.81*(y_cc(j) - 0.01116)
else
q_prim_vf(E_idx)%sf(i, j, 0) = 1d5 + 950d0*9.81*(y_cc(j))
end if
Expand Down
4 changes: 2 additions & 2 deletions src/simulation/m_boundary_conditions.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ contains
-q_prim_vf(i)%sf(l, j - 1, k) + 2d0*bc_y%vb1
elseif (i == momxb + 1 .and. num_dims > 1) then
q_prim_vf(i)%sf(l, -j, k) = &
-q_prim_vf(i)%sf(l, j - 1, k) + 2d0*(0.5*sin(600*pi*t))
-q_prim_vf(i)%sf(l, j - 1, k) + 2d0*bc_y%vb1
elseif (i == momxb + 2 .and. num_dims > 2) then
q_prim_vf(i)%sf(l, -j, k) = &
-q_prim_vf(i)%sf(l, j - 1, k) + 2d0*bc_y%vb3
Expand All @@ -1138,7 +1138,7 @@ contains
-q_prim_vf(i)%sf(l, n - (j - 1), k) + 2d0*bc_y%ve1
elseif (i == momxb + 1 .and. num_dims > 1) then
q_prim_vf(i)%sf(l, n + j, k) = &
-q_prim_vf(i)%sf(l, n - (j - 1), k) + 2d0*(0.5*sin(600*pi*t))
-q_prim_vf(i)%sf(l, n - (j - 1), k) + 2d0*bc_y%ve2
elseif (i == momxb + 2 .and. num_dims > 2) then
q_prim_vf(i)%sf(l, n + j, k) = &
-q_prim_vf(i)%sf(l, n - (j - 1), k) + 2d0*bc_y%ve3
Expand Down
4 changes: 2 additions & 2 deletions toolchain/mfc/bench.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os, sys, uuid, subprocess, dataclasses

import rich.table
import rich.table, typing

from .printer import cons
from .state import ARG, CFG
Expand All @@ -13,7 +13,7 @@
class BenchCase:
slug: str
path: str
args: list[str]
args: typing.List[str]


def bench(targets = None):
Expand Down

0 comments on commit 3c42479

Please sign in to comment.