BUG: Horizontal R space on tensor product element is not globally constant
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず issue の reproducer を実行し、ベースメッシュの解像度を上げたときの R × CG と DQ0 × CG の関数空間の次元を比較します。TensorProductElement と extrusion で水平な R 要素がどのように表現されているかを追跡し、一覧にある各メッシュ解像度で 5 DOFs が得られることを確認して fix を検証します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
This is a bug only on the horizontal R space - not the vertical.
I would like to construct an element on a cuboid mesh that is a tensor product of R space and CG.
elt = TensorProductElement(FiniteElement("R", quadrilateral, 0),
FiniteElement("CG", interval, p))
M = FunctionSpace(mesh, elt)
This TensorProductElement treats the R space as a per-cell discontinuous constant.
Steps to Reproduce
The following code compares the actual number of DOFS for this TensorProductElement to the expected DOFs (P*Layers + 1 when CG^P is in the extrusion direction and R in the horizontal direction).
We only extrude in 2 layers for each example so the number of DOFs coming from CG should not change. If the R space works correctly then increasing the resolution of the base mesh should not change the number of DOFs.
from firedrake import *
P = 2
LAYERS = 2
EXPECTED = P * LAYERS + 1
print(f"{'nx,ny':>8} {'base cells':>11} {'R (x) CG':>10} {'DQ0 (x) CG':>11} {'expected':>9}")
for n in (1, 2, 3, 4):
base = UnitSquareMesh(n, n, quadrilateral=True)
mesh = ExtrudedMesh(base, layers=LAYERS, layer_height=1.0 / LAYERS)
cg_v = FiniteElement("CG", interval, P)
r_elt = TensorProductElement(FiniteElement("R", quadrilateral, 0), cg_v)
dq_elt = TensorProductElement(FiniteElement("DQ", quadrilateral, 0), cg_v)
dim_r = FunctionSpace(mesh, r_elt).dim()
dim_dq = FunctionSpace(mesh, dq_elt).dim()
print(f"{f'{n},{n}':>8} {n*n:>11} {dim_r:>10} {dim_dq:>11} {EXPECTED:>9}")
Expected behavior
I expect every example R \times CG example in the above to have 5 DOFs.
Environment:
- OS: MACOS
- Python version: 3.14.6
- 主要言語
- Python
- スター
- 684
- フォーク
- 204
- 平均マージ
- 4日 14時間
- マージ済み PR(30日)
- 46
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firedrakeproject/firedrake のほかの issue
-
BUG: NonlinearVariationalSolver errors with adj_kwargs対応中かも @dham が 151 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
firedrakeproject/firedrake#5186 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
firedrakeproject/firedrake#5091 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
firedrakeproject/firedrake#3556 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
firedrakeproject/firedrake#5644 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Function.assign on a subset fails with a Constant, a Real Function or abs in the expression対応中かも @connorjward が 2 日前に担当しました。 オープン
firedrakeproject/firedrake#5643 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
firedrakeproject/firedrake の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
alltheplaces/alltheplaces#20570 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
area:ci bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
catincloud-labs/dagster-dex#206 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
number_to_words raises ValueError with threshold= for ordinals ("12th") and comma-grouped strings ("1,000")対応中かも @hemtilva が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
providers security
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
agentbreeder/agentbreeder#1031 ·
メンテナーはふだん 1 日以内に返信