Closed Da-Be-Ru closed 2 years ago
BTW what are the "postprocessing purposes" ? We already have subgrid functionality (hadn't this in my head yesterday...): in ExtendableGrids and VoronoiFVM Examples.
May be this is already sufficient (or was intended anyway ?)
(BTW one missing thing here is point sorting for the extraction of 1D boundaries from 2D).
I believe the basic use case is to obtain nodal values on the boundary in order to determine the value of some external boundary reaction functions.
But yes, I forgot about the subgrid functionality, too. The example and the ExtendableGrids documentation demonstrate exactly the kind of functionality that has been suggested.
Given what has been described to me, I would consider the issue resolved, frankly.
For some post processing purposes, it could be beneficial to provide a function which returns the nodal values $u_k$ at designated boundary face regions.
My suggestion would be to provide something like a
bvals
function invfvm_system.jl
.A quick and dirty draft could look like this:
The user could then simply call a solution vector as indexed by the boundary face regions, e.g. if we want to extract the boundary values of a solution
U
associated with a systemsystem
on regions[1,3]
, we would simply executeOn the spot, I am not quite sure yet how we would extend that for arbitrary species and boundary species though and it might be worth thinking about if we should preserve some kind of ordering or orientation of the boundary nodes.