Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b3d3e2c
coordinate swap in V0 projections
alisa-kirkinskaia Oct 22, 2026
4f3bb67
coordinate swap for C1 V0
alisa-kirkinskaia Oct 22, 2026
422dfe5
fix tosparse for C1 V0
alisa-kirkinskaia Oct 22, 2026
ab553c9
test for V0 projections
alisa-kirkinskaia Oct 22, 2026
31213bc
coordinate swap for V2
alisa-kirkinskaia Oct 22, 2026
2446705
some changes
alisa-kirkinskaia Oct 22, 2026
dd5cdb1
tests for V2
alisa-kirkinskaia Oct 22, 2026
72506b7
C0 V1 projection coordinate swap
alisa-kirkinskaia Oct 22, 2026
3be547f
Merge branch 'devel' into coordinate_swap_2d
alisa-kirkinskaia Oct 22, 2026
15765c0
tests for V1
alisa-kirkinskaia Oct 29, 2026
ca5d2d1
changed C1 U1 projection
alisa-kirkinskaia Oct 29, 2026
0f9f1b7
some improvements
alisa-kirkinskaia Oct 30, 2026
8226730
small corrections
alisa-kirkinskaia Oct 30, 2026
299a474
Merge branch 'devel' into coordinate_swap_2d
alisa-kirkinskaia Oct 30, 2026
46c3f0e
Merge branch 'devel' into coordinate_swap_2d
yguclu Nov 3, 2026
68cdb70
added swapped coordinates option to Poisson example
alisa-kirkinskaia Nov 3, 2026
cef87de
added coordinate swap option to maxwell
alisa-kirkinskaia Nov 5, 2026
6d85f1c
change check_regular_ring_map
alisa-kirkinskaia Nov 5, 2026
34417c3
Merge branch 'devel' into coordinate_swap_2d
yguclu Nov 10, 2026
d2b48c9
improved assertions in projections
alisa-kirkinskaia Nov 10, 2026
a1e9343
more assertions
alisa-kirkinskaia Nov 10, 2026
410b7be
Update empty lines
alisa-kirkinskaia Nov 10, 2026
becea41
undo weird commit
alisa-kirkinskaia Nov 10, 2026
c12a3d2
remove print_map_polar_coeffs function
alisa-kirkinskaia Nov 11, 2026
f769ae1
Update psydac/feec/polar/examples/utils_congapol.py
alisa-kirkinskaia Nov 11, 2026
7957cca
Update get_domain
alisa-kirkinskaia Nov 12, 2026
561d913
update utils
alisa-kirkinskaia Nov 12, 2026
90853c9
update poisson
alisa-kirkinskaia Nov 12, 2026
237d69a
add docstrings and remove use_polar_mapping
alisa-kirkinskaia Nov 12, 2026
da14f4b
added transposed target mapping
alisa-kirkinskaia Nov 12, 2026
edfb8fc
update changelog
alisa-kirkinskaia Nov 12, 2026
b3db309
minor changes in maxwell
alisa-kirkinskaia Nov 12, 2026
c7c9b01
apply suggestion
alisa-kirkinskaia Nov 13, 2026
9b35eb4
Merge branch 'devel' into coordinate_swap_2d
yguclu Nov 17, 2026
3f78471
Update psydac/feec/multipatch_domain_utilities.py
alisa-kirkinskaia Nov 19, 2026
fa96683
update multipatch_domain_utilities.py
alisa-kirkinskaia Nov 19, 2026
56fbc7d
remove unused import
alisa-kirkinskaia Nov 19, 2026
bb46b5c
test for transposed mappings
alisa-kirkinskaia Nov 19, 2026
62298f2
lisense for new file
alisa-kirkinskaia Nov 20, 2026
9d5fe29
black
alisa-kirkinskaia Nov 20, 2026
c6f408a
Rename argument x as v in dot methods of polar projections
yguclu Nov 23, 2026
09cdea7
Allow radial_dim=1 with smooth method "None" in Poisson example
yguclu Nov 23, 2026
a7ad5b8
Add class TransposedCzarnyMapping, with unit test
yguclu Nov 23, 2026
63c4cbd
Support radial_dim=1 in the target test case of the Poisson example
yguclu Nov 23, 2026
2e66fad
Support radial_dim=1 in the czarny test case of the Poisson example
yguclu Nov 23, 2026
ac21648
Reject radial_dim=1 with smooth methods polar-std and polar-spec in t…
yguclu Nov 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file.

### Added

- #634 : Add option `radial_dim` to the projections in `psydac.feec.polar.conga_projections` to allow logical coordinates (theta, s) in place of (s, theta)
- #634 : Add classes `TransposedTargetMapping` and `TransposedCzarnyMapping` to `psydac.feec.multipatch_domain_utilities`
- #614 : Add option `side` to `psydac.core.bsplines.find_span` to select the knot span on the left of a knot
- #527 : Add constructor `Geometry.from_file` with option `domain` to reuse an existing SymPDE domain, after checking that it matches the file
- #527 : Add function `get_available_mappings` and option `mpi_dims_mask` to `discrete_mapping` in `psydac.mapping.discrete_gallery`
Expand Down
28 changes: 25 additions & 3 deletions psydac/feec/multipatch_domain_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
# LICENSE file or go to https://github.com/pyccel/psydac/blob/devel/LICENSE #
# for full license details. #
#---------------------------------------------------------------------------#
from mpi4py import MPI

import numpy as np

from sympde.topology import Square, Domain
# TransposedPolarMapping
from sympde.topology import IdentityMapping, PolarMapping, AffineMapping, Mapping

__all__ = (
'TransposedPolarMapping',
'TransposedTargetMapping',
'TransposedCzarnyMapping',
'get_2D_rotation_mapping',
'flip_axis',
'build_multipatch_domain',
Expand All @@ -34,6 +33,29 @@ class TransposedPolarMapping(Mapping):
_pdim = 2


class TransposedTargetMapping(Mapping):
Comment thread
yguclu marked this conversation as resolved.
Resolved
"""
Represents a Transposed (x1 <> x2) Target 2D Mapping object.

"""
_expressions = {'x': 'c1 + (1-k)*x2*cos(x1) - D*x2**2',
'y': 'c2 + (1+k)*x2*sin(x1)'}

_ldim = 2
_pdim = 2


class TransposedCzarnyMapping(Mapping):
"""
Represents a Transposed (x1 <> x2) Czarny 2D Mapping object.

"""
_expressions = {'x': '(1 - sqrt( 1 + eps*(eps + 2*x2*cos(x1)) )) / eps',
'y': 'c2 + (b / sqrt(1-eps**2/4) * x2 * sin(x1)) /(2 - sqrt( 1 + eps*(eps + 2*x2*cos(x1)) ))'}

_ldim = 2
_pdim = 2


def get_2D_rotation_mapping(name='no_name', c1=0., c2=0., alpha=None):

Expand Down
Loading
Loading