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

H inf sobolev space #117

Merged
merged 7 commits into from
Aug 23, 2022
Merged

H inf sobolev space #117

merged 7 commits into from
Aug 23, 2022

Conversation

dham
Copy link
Collaborator

@dham dham commented Aug 12, 2022

Define an HInf Sobolev space to contain the "R" space.

Cause apply_restrictions to use Sobolev space rather than a list of elements. This is an alternative to #109 .

Also clean up a few Sobolev space loose ends which appear to have drifted in along the way.

@dham dham linked an issue Aug 12, 2022 that may be closed by this pull request
@dham
Copy link
Collaborator Author

dham commented Aug 12, 2022

Firedrake tests for this running at firedrakeproject/firedrake#2522

@mscroggs mscroggs self-requested a review August 12, 2022 09:32
@mscroggs
Copy link
Member

mscroggs commented Aug 12, 2022

DOLFINx tests are failing with "AttributeError: 'VectorElement' object has no attribute 'sobolev_space'". I guess VectorElements and other elements need to be given Sobolev spaces (or we do something like #109, but I agree that this approach is probably better)

@dham
Copy link
Collaborator Author

dham commented Aug 12, 2022

DOLFINx tests are failing with "AttributeError: 'VectorElement' object has no attribute 'sobolev_space'". I guess VectorElements and other elements need to be given Sobolev spaces (or we do something like #109, but I agree that this approach is probably better)

It's 2030 on Friday evening here so I'm not going to get to this until Monday, but VectorElement should inherit the Sobolev space of it's scalar element. TensorElement should do the same. Oh, and BrokenElement should always be L2, no matter what the space of the original element (that being the point of BrokenElement).

@mscroggs
Copy link
Member

It's 2030 on Friday evening here so I'm not going to get to this until Monday, but VectorElement should inherit the Sobolev space of it's scalar element. TensorElement should do the same. Oh, and BrokenElement should always be L2, no matter what the space of the original element (that being the point of BrokenElement).

I've just started working on this in #118 and I'm relieved that these are exactly what I just implemented

@mscroggs
Copy link
Member

The DOLFINx tests pass in #118. @dham are you happy for me to merge that branch into this one?

* Add nano swp files to .gitignore

* MAke finiteelementbase into an abstract base class and add sobolev_space method

* _

* restricted element is L2

* s

* make fenicsx tests run

* branches

* _ not -

* remove branch from test config

* max
Copy link
Collaborator

@wence- wence- left a comment

Choose a reason for hiding this comment

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

I think this looks good

Copy link
Member

@garth-wells garth-wells left a comment

Choose a reason for hiding this comment

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

Note for a future UFL: we need to start from 'domains', on which spaces are defined, to make proper sense of function spaces.

@garth-wells garth-wells merged commit 1951bee into main Aug 23, 2022
@garth-wells garth-wells deleted the h_inf_sobolev_space branch August 23, 2022 11:07
pbrubeck pushed a commit to firedrakeproject/ufl that referenced this pull request Oct 10, 2022
* Add a Sobolev space spanning C infinity elements.

* Put R space in HInf

* Test Sobolev space additions.

* Use Sobolev space as the restrictions check.

* Add sobolev_space method to base finite element class (FEniCS#118)

* Add nano swp files to .gitignore

* MAke finiteelementbase into an abstract base class and add sobolev_space method

* _

* restricted element is L2

* s

* make fenicsx tests run

* branches

* _ not -

* remove branch from test config

* max

* main fenics and ffc

Co-authored-by: Matthew Scroggs <matthew.w.scroggs@gmail.com>
Co-authored-by: Garth N. Wells <gnw20@cam.ac.uk>
pbrubeck pushed a commit to firedrakeproject/ufl that referenced this pull request Nov 1, 2022
* Add a Sobolev space spanning C infinity elements.

* Put R space in HInf

* Test Sobolev space additions.

* Use Sobolev space as the restrictions check.

* Add sobolev_space method to base finite element class (FEniCS#118)

* Add nano swp files to .gitignore

* MAke finiteelementbase into an abstract base class and add sobolev_space method

* _

* restricted element is L2

* s

* make fenicsx tests run

* branches

* _ not -

* remove branch from test config

* max

* main fenics and ffc

Co-authored-by: Matthew Scroggs <matthew.w.scroggs@gmail.com>
Co-authored-by: Garth N. Wells <gnw20@cam.ac.uk>
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.

Real element should be in Cinfinity
4 participants