Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
𝕌pdes is a general-purpose library for mesh-free PDE simulation and control.
𝕌pdes leverages Radial Basis Functions (RBFs) and JAX to provide the following features:
𝕌pdes in incredibly extendable, with additional features added frequently.
The package is available on PyPI. You can install it with
pip install updes
The example below illustrates how to solve the Laplace equation with Dirichlet and Neumann boundary conditions:
import updes
import jax.numpy as jnp
# Create a mesh-free cloud of points on a unit square
facet_types={"South":"n", "West":"d", "North":"d", "East":"d"}
cloud = updes.SquareCloud(Nx=30, Ny=20, facet_types=facet_types)
# Define the differential operator (left-hand side of the PDE)
def my_diff_operator(x, center, rbf, monomial, fields):
return updes.nodal_laplacian(x, center, rbf, monomial)
# Define the right-hand side of the PDE
def my_rhs_operator(x, centers, rbf, fields):
return 0.0
# Set a sin function as the Dirichlet BC on the North, and zero everywhere else
sine = lambda coord: jnp.sin(jnp.pi * coord[0])
zero = lambda coord: 0.0
boundary_conditions = {"South":zero, "West":zero, "North":sine, "East":zero}
# Solve the Laplace equation with a JIT-compiled solver
sol = updes.pde_solver_jit(diff_operator=my_diff_operator,
rhs_operator=my_rhs_operator,
cloud=cloud,
boundary_conditions=boundary_conditions,
rbf=updes.polyharmonic,
max_degree=1)
# Visualize the solution
cloud.visualize_field(sol.vals, cmap="jet", projection="3d", title="RBF solution")
𝕌pdes can handle much complicated cases with little to no modifications to the code above. Check out further notebooks and scripts in the documentation and the folder demos
!
See the pyproject.toml
file the specific versions of the dependencies.
If you use this software, please cite us with the following BibTeX entry:
@inproceedings{nzoyem2023comparison,
title={A comparison of mesh-free differentiable programming and data-driven strategies for optimal control under PDE constraints},
author={Nzoyem Ngueguin, Roussel Desmond and Barton, David AW and Deakin, Tom},
booktitle={Proceedings of the SC'23 Workshops of The International Conference on High Performance Computing, Network, Storage, and Analysis},
pages={21--28},
year={2023}}
FAQs
Universal Partial Differential Equations Simulator
We found that updes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.