NekBox / nekpy

Nek workflows in dask
MIT License
1 stars 5 forks source link

Simple meshing functionality - 1-sided, 2-sided hyperbolic #2

Open lcarasik opened 8 years ago

lcarasik commented 8 years ago

I'm interesting in adding the following functionality to nekPy. I've already written a very simple meshing script for a two-sided hyperbolic function. I'm curious what would be needed to get it and the other functions into nekPy.

  1. Calculation of non-equal sized elements in genbox a. One-Sided Hyperbolic b. Two-Sided Hyperbolic bi. Two-Sided Hyperbolic with each end being a difference spacing c. Potentially other functions
maxhutch commented 8 years ago

Simple meshing (e.g. global tensor product meshes, affine transformations) should be easy to incorporate.

What exactly are one and two-sided hyperbolic meshes? Can you share your script?

lcarasik commented 8 years ago

That's what I'm hoping for.

The following link provides some discussion of one and two sided hyperbolic meshes.

The two python scripts are below. Still very early development and any suggestions for improvements are welcome. GenboxPy.zip

https://pritamashutosh.wordpress.com/2014/03/28/grid-generation/

maxhutch commented 8 years ago

We should be able to support any mesh that can be analytically generated. To start, let's go with 1D profiles that are combined via global tensor product.

maxhutch commented 8 years ago

I extracted the 1D uniform profile in this function.

Can you add a hyperbolic profile with a similar signature (plus the stretching parameter). Then, we can make a selector for the input json file.