REV: Resolve inactive hexagonal Schmid calculations

未关闭
#55 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
活跃
技术栈
cpp
领域
data

调研方向

阅读 Source/EbsdLib/LaueOps/HexagonalOps.cpp 和 Source/EbsdLib/LaueOps/HexagonalLowOps.cpp,重点关注 l5 到 l10 的计算以及被注释掉的 Schmid 候选项。首先根据项目预期的滑移系确定是否应支持候选项 7 到 24;该 issue 没有确定这一设计问题。完成的标准是解决这一问题,使相应的代码和测试保持一致,并运行完整的 EbsdLib 测试套件。

由索引模型根据 Issue 内容生成。

描述

Summary

HexagonalOps::getSchmidFactorAndSS(load, ...) and HexagonalLowOps::getSchmidFactorAndSS(load, ...) calculate plane normals and direction cosines for additional hexagonal slip systems. The calculations use the truncated divisors 0.8164 and 1.154 at twelve sites.

These calculations do not affect current output. The dependent schmid7 through schmid24 calculations and all comparisons for those candidates are commented out. Only schmid1 through schmid6 can update the returned Schmid factor, angle components, or slip-system index.

The inactive code is misleading and performs work that the function does not use.

Locations in EbsdLib 3.1.1

  • Source/EbsdLib/LaueOps/HexagonalOps.cpp: six divisor sites in the l5 through l10 calculations
  • Source/EbsdLib/LaueOps/HexagonalLowOps.cpp: six equivalent divisor sites
  • 0.8164 approximates 2 / sqrt(6)
  • 1.154 approximates 2 / sqrt(3)

Actionable work

  • Confirm whether slip systems 7 through 24 are intended to be supported.
  • If they are not supported, remove the inactive l5 through l10, theta4 through theta9, and commented Schmid-candidate code.
  • If they are supported, define the physical slip systems and their numbering.
  • Replace truncated divisor literals with full-precision constants if the additional slip systems are enabled.
  • Add independent analytical tests for HexagonalOps and HexagonalLowOps before enabling the additional candidates.
  • Run the complete EbsdLib test suite.
主要语言
C++
星标
8
派生
16
平均合并
4 小时 35 分钟
30 天内合并 PR
3

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

BlueQuartzSoftware/EbsdLib 的其他 Issue

查看 BlueQuartzSoftware/EbsdLib 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。