Skip to content

Real elements in Nonlinear problem - #191

Open
RemDelaporteMathurin wants to merge 24 commits into
scientificcomputing:mainfrom
RemDelaporteMathurin:real-nonlinear
Open

Real elements in Nonlinear problem#191
RemDelaporteMathurin wants to merge 24 commits into
scientificcomputing:mainfrom
RemDelaporteMathurin:real-nonlinear

Conversation

@RemDelaporteMathurin

@RemDelaporteMathurinRemDelaporteMathurin commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

This adds a demo for real elements/functionspace in a Nonlinear problem

Fixes#114

@RemDelaporteMathurinRemDelaporteMathurin changed the title initial exampleReal elements in Nonlinear problemFeb 24, 2026
@RemDelaporteMathurin

Copy link
Copy Markdown
ContributorAuthor

@finsberg@jorgensd let me know if you want anything else in this demo.

@RemDelaporteMathurin

Copy link
Copy Markdown
ContributorAuthor

@finsberg i noticed some discrepencies betwee u and c in the write up, I'll change this

@RemDelaporteMathurin

Copy link
Copy Markdown
ContributorAuthor

@finsberg@jorgensd I corrected some inconsistencies

dofs_boundary = dolfinx.fem.locate_dofs_topological(V, fdim, ft.indices[ft.values == wall_marker])
dofs_bubble = dolfinx.fem.locate_dofs_topological(V, fdim, ft.indices[ft.values == obstacle_marker]
)
g = K_S * pressure

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we explain what we are doing here?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or define g later on ?

@RemDelaporteMathurin

Copy link
Copy Markdown
ContributorAuthor

@jorgensd@finsberg I'm re-requesting your review on this.

I moved from a 2D to a 1D example that has a nice analytical solution (similar to https://festim-vv-report.readthedocs.io/en/latest/verification/mes/depleting_source.html)

@jorgensd

Copy link
Copy Markdown
Member

Maybe we should transfer this example to the DOLFINx tutorial instead?:)

@RemDelaporteMathurin

Copy link
Copy Markdown
ContributorAuthor

Sounds good to me!

Sign up for freeto 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.

Real elements with non-linear problems

3 participants

@RemDelaporteMathurin@jorgensd@finsberg