Skip to content

Commit 36056b3

Browse files
committed
Add tanh initialisation
1 parent 0da8bbe commit 36056b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/multiphase/d3q27_pf_velocity/Dynamics.c.Rt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ CudaDeviceFunction void specialCases_Init()
400400
PhaseF = 1 - 0.5 * ( tanh( 2.0 * ( X - Washburn_start ) / IntWidth ) -
401401
tanh( 2.0 * ( X - Washburn_end ) / IntWidth ));
402402
}
403+
if (Tanh_init > 0) {
404+
PhaseF = 0.5 + 0.5*( tanh( 2.0 * ( X - Tanh_init) / IntWidth ));
405+
}
406+
403407
}
404408

405409
CudaDeviceFunction void Init_distributions()

0 commit comments

Comments
 (0)