Skip to content
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

Proposed library structure #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alphaville
Copy link
Member

Here is a short draft proposal for your library code

Example:

import pdesolvers as pde
import numpy as np

x_from = np.array([0, 0])
x_to = np.array([1, 2])
n_points = np.array([10, 20])

myGrid = pde.FDMGrid.create_uniform_grid(x_from, x_to, n_points, coordinate_labels=["x", "t"])
solver = pde.HeatEquationExplicitSolver(myGrid)
solution_grid = solver.solve()

@chemardes
Copy link
Collaborator

if the user's passing in only the kappa constant, will grid be used to set the values for length/time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants