-
Notifications
You must be signed in to change notification settings - Fork 160
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
Ksagiyam/periodic extrusion #2582
Conversation
e3be13d
to
24663c0
Compare
f132f82
to
41108b1
Compare
.github/workflows/build.yml
Outdated
@@ -42,7 +42,7 @@ jobs: | |||
- name: Build Firedrake | |||
run: | | |||
cd .. | |||
./firedrake/scripts/firedrake-install $COMPLEX --venv-name build --tinyasm --disable-ssh --minimal-petsc --slepc --documentation-dependencies --install thetis --install gusto --install icepack --install irksome --install femlium --no-package-manager|| (cat firedrake-install.log && /bin/false) | |||
./firedrake/scripts/firedrake-install $COMPLEX --venv-name build --tinyasm --disable-ssh --minimal-petsc --slepc --documentation-dependencies --install thetis --install gusto --install icepack --install irksome --install femlium --no-package-manager --package-branch firedrake ksagiyam/periodic_extrusion --package-branch pyop2 ksagiyam/periodic_extrusion|| (cat firedrake-install.log && /bin/false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert before merge
|
||
|
||
@pytest.mark.parallel(nprocs=3) | ||
def test_extruded_periodic_annulus(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do the same for a torus mesh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment in ExtrudedMesh
doc.
41108b1
to
2b26981
Compare
firedrake/mesh.py
Outdated
@@ -2046,7 +2055,7 @@ def Mesh(meshfile, **kwargs): | |||
|
|||
|
|||
@PETSc.Log.EventDecorator("CreateExtMesh") | |||
def ExtrudedMesh(mesh, layers, layer_height=None, extrusion_type='uniform', kernel=None, gdim=None, name=None): | |||
def ExtrudedMesh(mesh, layers, layer_height=None, extrusion_type='uniform', periodic=False, kernel=None, gdim=None, name=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be useful to have TorusMesh
and AnnulusMesh
functions in utility_meshes.py
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added AnnulusMesh
and SolidTorusMesh
.
8af256a
to
d07959e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just fix docstrings.
firedrake/utility_meshes.py
Outdated
distribution_name=None, | ||
permutation_name=None, | ||
): | ||
"""Generate a solid toroidal mesh (with axis z) periodically extruding a disk mesh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
r, | ||
nr=4, | ||
nt=32, | ||
distribution_parameters=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
firedrake/utility_meshes.py
Outdated
|
||
:arg R: The major radius | ||
:arg r: The minor radius | ||
:kwarg nR: (optional), number of cells in the major direction (min 3, defaults to 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't put default in docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
b4c971c
to
5fa9e65
Compare
5fa9e65
to
a8c1c7a
Compare
COMM_WORLD). | ||
:kwarg radius: (optional) radius of the circle to approximate. | ||
:kwarg degree: polynomial degree of coordinate space (e.g., | ||
cells are straight line segments if degree=1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edges
Closes #2570
Enable periodic extrusion.
Need to do more testing,Done.Need to fix I/O for this new mesh.Done.Depends on: OP2/PyOP2#675(Merged)