Comments (2)
Hi @gemmaellen -- thanks for your interest!
This was an intentional design choice -- GridVariables have boundary conditions, which we don't know how to propagate automatically (unless using periodic boundaries, which aren't really boundary conditions at all). So we only support math on GridArray objects.
Also, am I correct in thinking that the way to use a JaxNumPy function on a GridArray is to call it via NumPy?
This is correct, I agree it's strange. It's for the simple reason that NumPy supports overriding it's functions on new types but JAX doesn't.
from jax-cfd.
Oh, I see! Yes, addition and multiplication would also work for matching homogeneous Dirichet/Neumann BCs, but that's a special case, and it wouldn't extend to other functions like sines and cosines and so on. I assume this is also the reason why the "shift" method on a GridVariable returns a GridArray. Thanks for the explanation!
from jax-cfd.
Related Issues (20)
- Block-Structured NS LES/WMLES code HOT 2
- Boundary Conditions HOT 4
- [Error] Channel flow demo HOT 7
- 3d modeling? HOT 1
- Tequila supports Cirq HOT 3
- i need jaxlib source HOT 2
- NameError: name 'Grid' is not defined"
- Input data and training process
- ml_model_inference_demo.ipynb results are inconsistent
- Modelling turbulent channel flow
- Can't run spectral_forced_turbulence due to jnp.linalg.norm error HOT 3
- trajectory function use target_trajectory as input in loss_and_gradient
- AttributeError: AxesImage.set() got an unexpected keyword argument 'msg'
- Colab
- Exception has occurred: KeyError 'experimental_xmap_spmd_lowering'
- Tests fail upon fresh install. HOT 1
- Jax.devicearray is no longer available in recent Jax versions
- [Installation] Failed to import spectral module HOT 9
- Question about the random intial velocity in notebook spectral_forced_turbulence.ipynb HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jax-cfd.