Hi Alessandro, Forcings can be specified in cg/common/src/userDefinedForcing.C (we have been making many changes to the forcing's which will appear in the next version). Gravity can already be turned on if you solve the INS plus Boussinesq equations (i.e. add a Temperature equation) See the examples in the cg/ins/cmd. Boundary values are set in cg/common/src/userDefinedBoundaryValues.C ...Bill On 05/21/2012 08:17 AM, Alessandro Orchini wrote:
Hi all, I would like to add forces at the INS equation (a volume force as gravity, and also a force proportional to the velocity filed), and define new boundary conditions. In particular, I need to impose at the inflow and outflow boundaries (top and bottom respectively) the velocity profiles to be u(x,t)=0; v(x,t) = a*(cosh(b*x)/cosh(b*c) - 1); being a,b,c constants. I've found in ins/src the whole source code, but what and where I have to modify exactly? (lineSolveINS.h? Cgins.C? ins(bC).C? ...) Thanks, Regards Alessandro