Hi Bibhas,
You can manually call subroutines that solve the Helmholtz (or Poisson) equation.
I recommend starting with this example, which solves the stream function via
- Laplace psi = vorticity
rhs and the boundary condition needs to follow the weak formulation in FEM.
For Dirichlet BC, set tmask(i,1,1,1) = 0 and assign BC to initial guess.
For inhomogenuous Neumann BC, you need to add the surface flux to the rhs following computations in bcneusc.
The iteration number would be large because it simply uses Jacobi preconditioner.
Apply the SEMG preconditioner to arbitrary field is tricky in Nek5000 because many arrays are named and hard coded.
Still, one can use the Poisson solver in the MHD solver to solve extra Poisson equations. I've done that in the past.
Hope this helps,
Yu-Hsiang
--