find adjacent elements for each node
Hi,
I am trying to construct a model of groundwater flow and solute transport using escript/Finley. I solve 2 PDEs sequentially, one for fluid pressure and one for solute transport. For the moment i use Dirichlet boundary conditions for both PDEs. Now i would like to set a specified solute concentration (Dirichlet) boundary only for nodes where there is a net groundwater influx accross the model boundary, and leave the concentration unchanged for nodes where the groundwater discharges from the model domain.
One option would be to do this iteratively, by adjusting the specified concentration boundary condition based on the boundary flux and then solve the two PDEs again. The problem is that the flux variable ( derived from PDE 1 using K*(grad(
specified_C_bnd_new = wherePositive(
does not work unfortunately.
Is there a way to find the adjacent elements for each node in escript? With this it would be possible to select the nodes for which the boundary condition should be adjusted.
btw, i am not using the built-in Darcy PDE since I am using a different formulation of the groundwater flow equation.
best regards,
Elco Luijendijk
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Lutz Gross
- Solved:
- Last query:
- Last reply: