Also, I'm not sure I've understood correctly how to use solvers : are
the correct steps :
1/ initialize the solver and grids
2/ fill the grid with the values of phi and (d phi/d t) I want to
enforce, set n{x,y,z} and h{x,y,z}
3/ set parameters and then solve, then read from the solver using
copy_all_data ?
Sorry if it was not the right place to ask, and thank you.
Anyway, thank you very much for your help.
dpe
The equation solved currently in the code is:
laplace(phi) = div(u*). The right-hand side to the laplace equation is
the divergence of the intermediate flow field. This is part of the projection
onto a divergence free velocity field. You can off course change that to have
the poisson solver solve for phi for a zero right-hand side. However, with the
current boundary conditions (homogenous neumann), the result would be fairly boring.... i.e. zero.
For my problem, I need the the velocity potential on the sides of an
obstacle in a stationary flow, with Neumann conditions for x,y,z neg/
pos, and forcing dphi/dn = 0 on the sides of the obstacle. In
sol_pcgpressure3d.cu, I think the diag_preconditioner and
apply_laplacian functions should be modified to handle the "flags"
grid (1 if the obstacle is there, 0 if not), maybe simply using the
modified laplacian from the first reply ? But there must be other
functions to change that I haven't understood, mainly do_pcg, right ?
-----Original Message-----
From: opencurr...@googlegroups.com on behalf of tipara
Sent: Sun 2/14/2010 4:40 PM
To: opencurrent-users
Subject: [opencurrent-users] Re: Working between two boundaries