Boundary conditions for potentialFoam
How can I specify boundary conditions for potentialFoam in terms of velocity potential? Or how can a dirichlet boundary condition for velocity potential be implemented in potentialfoam?

is in the dirichlet boundary condition the value of velocity fixed or zero at boundary conditions? so use
{ type fixedValue; value uniform (0 , 0 , 0); } 
I want to specify phi=constant boundary condition. Is there any way to specify boundary condition for phi? As per my understanding, it writes the phi values after convergence. We can only input U and P values.

as i know phi = U & mesh.Sf() so when U is fixed at the boundary phi should be fixed too

Thank you. What does "U & mesh.Sf()" exactly mean mathematically? I am not aware of the syntax used in source code of openfoam. d(phi)/dn = Un, so does U & mesh.Sf() integrate U to get phi?
Also How do I then calculate U so that I get desired value of phi ? Do I have to go for trial and error? 
phi = U & mesh.Sf()
U= velocity vector & = inner product mesh.Sf() = normal surface vector i guess you just need to divide ur desired phi into ur boundary area cross section,so you have desired U then evaluate U in dict! 
Basic confusion:
is phi flux or velocity potential? 
its flux :)

All times are GMT 4. The time now is 22:46. 