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

Hard constraints #5

Merged
merged 5 commits into from
Apr 24, 2024
Merged

Hard constraints #5

merged 5 commits into from
Apr 24, 2024

Conversation

divijghose
Copy link
Member

Hard boundary constraints on poisson 2d Problem

Solution :

image

Error :

image

Exact Solution

image

1. `main_poissons2d_hard.py` is the main file using the model from `model_hard`.py
2. The ansatz function used will depend on the solution. The ansatz function has to be changed in `apply_hard_boundary_constraints` accordingly.
Added a model object for hardconstrain of boundary conditions
A edge case is added, if the hardconstraint function is not passed, then a lambda function, which returns the output as it is is added
An example file on how to run the hard constrained problem for poisson problem is also described
@thivinanandh thivinanandh merged commit bf52841 into main Apr 24, 2024
2 checks passed
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