Skip to content

Commit

Permalink
vht: Create a more realistic velocity profile for Wind
Browse files Browse the repository at this point in the history
Run with -dirichlet 300 for viscous block sitting on a flat plate. For
gravity at some angle, use

 -rheo_gravity_x sin(angle) -rheo_gravity_z cos(angle)
  • Loading branch information
jedbrown committed May 31, 2011
1 parent dfd3df7 commit caa5545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fs/tests/vhtjako.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ typedef int GDALErr;
// Advection model
static dErr VHTCaseSolution_Wind(VHTCase dUNUSED scase,const dReal x[3],dScalar rhou[],dScalar drhou[],dScalar *p,dScalar dp[],dScalar *E,dScalar dE[])
{ /* Defines inhomogeneous Dirichlet boundary conditions */
rhou[0] = (1 - dSqr(x[1])) * (1 + x[2]);
dReal z = (1 + x[2])/2; // in range [0,1]
dReal depth = 1-z;
rhou[0] = (1 - dSqr(x[1])) * (1 - pow(depth,2));
rhou[1] = 0;
rhou[2] = 0;
for (dInt i=0; i<9; i++) drhou[i] = 0;
Expand Down

0 comments on commit caa5545

Please sign in to comment.