gdtk icon indicating copy to clipboard operation
gdtk copied to clipboard

General questions about unstructured BC options.

Open plaad opened this issue 1 year ago • 0 comments

Hi All,

From a prior discussion, it appears I would possibly have to add in some features to facilitate translational and rotational periodic BCs on unstructured, imported grids.

I was going though the code and it seems in lmr/bc/ that the boundary_interface/flux_effect.d routines should be modified for exact BC specification. However, I guess for my purposes, I would be more interested in the ghost cells and mapping them between two named BC/surface groups; there were a few options I saw in lmr/bc/ghost_cell_effect/ but I would like to ask: what is the distinction between flow_state_copy.d and full_face_copy.d routines? For the latter, it seems it is currently supported for structured grid and this is likely called by ExchangeBC_FullFace:new{otherBlock, otherFace, orientation, reorient_vector_quantities, Rmatrix} command.

For unstructured grids, I saw there was some option already available in the docs which may have been what I was looking for: ExchangeBC_MappedCell:new{transform_position, c0, n, alpha, delta, list_mapped_cells, reorient_vector_quantities, Rmatrix}

However, when I had tried to use this prior I was not able to make it work. I tried out where this was defined in the source code, but was not quite able to find it if you may be able to help point out where this may be found as I had tried using it in a pair with another BC tag when defining my bcDict object. Could you explain how one would use this command/option properly?

Else, I will try to define it with the user routines in terms of the unstructured grid class variables to try and copy the flow state/variables from one BC tag to another BC tag to enforce periodicity manually.

Thanks for your help.

plaad avatar Oct 07 '24 22:10 plaad