Introduction
Introduction Statistics Contact Development Disclaimer Help
tdisable vertical pressure forces at the top wall - sphere - GPU-based 3D discr…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 2fcfb8e66a446d872d8774f9d149a72649ac1e0f
parent 62db27fa140c1c6318255997a5d8cde1cda89f92
Author: Anders Damsgaard <[email protected]>
Date: Mon, 17 Nov 2014 10:28:23 +0100
disable vertical pressure forces at the top wall
Diffstat:
M src/darcy.cuh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/darcy.cuh b/src/darcy.cuh
t@@ -541,9 +541,9 @@ __global__ void findDarcyPressureForce(
Float p_zp = dev_darcy_p[d_idx(i_x,i_y,i_z+1)];
// Add Neumann BC at top wall
- if (i_z >= wall0_iz - 1)
+ /*if (i_z >= wall0_iz - 1)
p_zp = p;
- //p_zp = p_zn;
+ //p_zp = p_zn;*/
// find particle volume (radius in x.w)
const Float V = 4.0/3.0*M_PI*x.w*x.w*x.w;
t@@ -557,12 +557,16 @@ __global__ void findDarcyPressureForce(
// find pressure gradient force plus buoyancy force.
// buoyancy force = weight of displaced fluid
// f_b = -rho_f*V*g
- const Float3 f_p = -1.0*grad_p*V/(1.0 - phi);
+ Float3 f_p = -1.0*grad_p*V/(1.0 - phi);
//- devC_params.rho_f*V*MAKE_FLOAT3(
//devC_params.g[0],
//devC_params.g[1],
//devC_params.g[2]);
+ // Add Neumann BC at top wall
+ if (i_z >= wall0_iz - 1)
+ f_p.z = 0.0;
+
/*printf("%d,%d,%d findPF:\n"
"\tphi = %f\n"
"\tp = %f\n"
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.