-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field
s with arbitrary dimensions
#35
Comments
Right now, we only allow to construct fields on either If you have a clear use case in mind, we may have a look. |
@albert-de-montserrat The underlying reason for not allowing totally arbitrary underlying array sizes is the need for consistent finite differences. In Chmy, there is a convention that every axis has N cell centres and N+1 vertices. This way, computing the derivatives becomes an easy task as we need to dispatch only on the type of the source and the destination field. For example, if we take the x-derivative of Vx field, it will be The added value of having all this variability is IMO very marginal, and the code needed to maintain this will be complex. Thus, the convention is:
This means that actual size of underlying usable data is Hope this helps, and I'm open to discussions on how to make Chmy better =) |
Thanks for all the info :) |
I am closing this for now, but feel free to open a specific issue or submit a PR for additional functionality! |
Is it possible to make
Field
s with arbitrary dimensions? let's say for example that I have an X n
grid object but I also need an-2 X n-2
array.The text was updated successfully, but these errors were encountered: