PHASTA / vtkpytools

Internal tools for using VTK
https://fluid.colorado.edu/wiki/index.php/VTKpytools
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

feat: Grid Sizing in arbitrary directions #30

Open jrwrigh opened 4 years ago

jrwrigh commented 4 years ago

Element size in cartesian directions should be calculable via the Jacobian of the element to it's parent space. See StackExchange answer for possible info on calculating for triangles.

To get element sizes in wall-relative locations, rotation tensor transformation should be all that's needed to turn the Jacobian into the correct direction. Here, the correct "wall-relative" direction would be determined by the gradient of the wall distance. Then, a "streamwise" vector would need to be defined, with the "spanwise" vector simply being the cross product of the streamwise and gradient-of-wall-distance vectors.