deepmodeling / jax-fem Goto Github PK
View Code? Open in Web Editor NEWDifferentiable Finite Element Method with JAX
License: GNU General Public License v3.0
Differentiable Finite Element Method with JAX
License: GNU General Public License v3.0
From tianjuxue/jax-am#28
When defining boundary conditions for nodes, is there a way the interface can be extended to not only take in the node coordinates, but also the node index? Something like this:
def top_nodes(point, index):
top = jnp.isclose(point[2], upper_surface_height, atol=TOLERANCE # Nodes on the top surface of my mesh
active = jnp.any(jnp.in1d(point.index, active_nodes)) # Nodes in my predefined active list
return top & active
I am implementing a layer-by-layer model with element activation. I can deactivate elements above a certain height based on their centroid, but when applying the boundary condition, I cannot select only the nodes connected to my active elements with the XYZ position alone.
Any suggestions welcome!
Hi, I noticed there was a recent commit made by @xwpken to the Linear_Elasticity demo that implemented post-processing for stresses in the beam. I'm just confused on how to interpret the data that has been computed at the end of the script (Sigma and sigma_average). I don't think they get saved into the VTU file, so I can't use Paraview to display it.
Could anyone help me out on how I can visualise them? Thank you!
Can you please change this in the readme (here)?
git clone [email protected]:tianjuxue/jax-fem.git
You can replace this with the HTTP cloning.
git clone https://github.com/tianjuxue/jax-fem.git
Otherwise people will get access denied.
Hello everyone,
Is it possible to remove "from jax.config import config" from the files ?
I have to create a dockerfile with JAX-FEM, and it will not be working because of that.
It works well in a conda venv without "from jax.config import config", otherwise I get an error because of the update.
Thanks a lot
Below is a tasklist for the refactor of the JAX-FEM core code. The first stage of the refactor will focus on the core.py
file. The proposed file structure is detailed on the refactor
branch and this is where all the new changes should be merged.
Tasks
Stage 1:
I am trying to install the jax-fem on a windows platform. I am unable to install Petsc4py using pip install. I am not able to install using condo as well. It says package not found in the conda-forge channels. Is JAX-FEM not meant to work on windows? Please help as this package will be extremely useful for my research.
Hi, I'm trying to create an hybrid model, that use your FEM-solver and a neural network.
To do that, I need to solve the same equations with different parameters (e.g the heat diffusion, where the diffusion coefficient and ic are different for each data).
I can't use vmap because the solver is using scipy and numpy, which isn't compatible.
Do you think the solver can be adapted so it can managed batches or can be pass into vmap ?
Thanks in advance for any idea !
It seems like there is currently no proper docs / tutorial for this package. I'm interested in applying this to some problems in my research, but it'd be very helpful to have some sort of tutorial for extending this to new problems.
Cheers!
The current README and documentation largely refers to jax-am
from tianjuxue/jax-am#30
The purpose of these two different sub-directories are not very clear. It is likely that only one of them is necessary
pip install
in editable mode [Setup] -> SuryaHello everyone,
I've been exploring this code with a keen interest in solving coupling problems. The code successfully passed the benchmark tests and have been able to run demos.hyperelasticity.example without any issues. However, I've encountered a stumbling block while trying to work with the thermal_mechanical_full demo. I'm facing a FileNotFoundError as detailed below:
FileNotFoundError: [Errno 2] No such file or directory: '/home/myname/Desktop/jax-fem/demos/thermal_mechanical_full/input/numpy/points.npy'
I'm wondering if there's something I might miss. Any guidance or suggestions would be greatly appreciated!
Currently the post processing steps are a bit unorganized, and the templates for that aren't easy to find (example). It would be a big help to have a general template (or say a utils submodule) made available so that users can use/ modify them as per their need.
In cases of hyperelasticity where we need incremental load/displacement application, or in the case of rate or history dependent problems, the user would like to save output files at specific intervals. The current implementation 1cc776c makes this difficult as the solver handles the incremental loading internally and the solution saving step gets only the final solution. The user should be able to specify an output save (to disk) frequency and get the desired outputs.
ad_wrapper
performs implicit differentiation through a non-linear solve, we should allow either implicit differentiation through load steps!A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.