lumerical-fdtd
Use when connecting Codex to Ansys Lumerical FDTD, probing lumapi or fdtd-solutions.exe, normalizing FDTD solver environments, running LSF CLI sentinels, scripting FDTD object creation, reading monitor or Qanalysis results, handling sampled materials, or repairing FDTD automation failures.
DeepseekModel
官方收录技能
质量 良好 · 64
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=wfy-op-codex-for-comsol-lumerical-lumerical-fdtd-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name lumerical-fdtd description Use when connecting Codex to Ansys Lumerical FDTD, probing lumapi or fdtd-solutions.exe, normalizing FDTD solver environments, running LSF CLI sentinels, scripting FDTD object creation, reading monitor or Qanalysis results, handling sampled materials, or repairing FDTD automation failures. Lumerical FDTD Overview Use this skill to operate Ansys Lumerical FDTD through local Python API sessions or the fdtd-solutions.exe LSF command-line fallback. Keep the scope to solver connection, environment setup, object creation, monitor/source/analysis scripting, result extraction, material data handling, and failure repair. Workflow Detect the operating system first: On Windows PowerShell, run the Python probe directly with py -3 or a chosen Python. On Git Bash for Windows, use scripts/probe_lumerical.sh ; it detects MINGW/MSYS/CYGWIN and chooses py -3 when available. On Linux, use scripts/probe_lumerical.sh ; it chooses python3 and searches Linux FDTD install roots. Decide whether to use Python API or CLI LSF: Prefer Python API when lumapi imports and an FDTD session starts. Use CLI LSF when Python API startup is blocked but fdtd-solutions.exe can run scripts. Load only the needed reference: FDTD Python API, LSF, object creation, monitors, Qanalysis, data extraction, far-field projection, or materials: references/lumerical-fdtd-automation.md . Example profile structure: references/solver-profiles.json . Probe before real work unless the same profile already passed in the current session. Normalize the local solver environment before launching binaries. Run the smallest viable operation first: import check, executable check, session start, or CLI sentinel. Store raw stdout/stderr, generated scripts, result files, and probe JSON near the caller's job artifacts, not inside this skill. If a solver call fails, classify the signature, propose the smallest patch, retry once when safe, then report the exact command and artifacts. Quick Commands $skill = "C:\path\to\lumerical-fdtd" $out = ".\solver_probe_out\lumerical" py -3 "$skill\scripts\probe_lumerical.py" --dry-run --out-dir "$out" py -3 "$skill\scripts\probe_lumerical.py" --deep --out-dir "$out" py -3 "$skill\scripts\probe_lumerical.py" --cli --deep --out-dir "$out-cli" If py -3 is not the right interpreter, use a user-selected Python environment: conda run -n <env> python "$skill\scripts\probe_lumerical.py" --dry-run --out-dir "$out" Git Bash or Linux: skill= "/path/to/lumerical-fdtd" out= "./solver_probe_out/lumerical" bash " $skill /scripts/probe_lumerical.sh" --dry-run --out-dir " $out " bash " $skill /scripts/probe_lumerical.sh" --deep --out-dir " $out " bash " $skill /scripts/probe_lumerical.sh" --cli --deep --out-dir " $out -cli" Defaults Prefer lumapi.FDTD() after adding the local api/python directory to sys.path . Set ANSYSLMD_LICENSE_FILE when session startup fails with license/session errors. Prepend the FDTD bin and licensingclient/winx64 directories to PATH . Keep fdtd-solutions.exe -run <script.lsf> as a CLI fallback. Use .txt as the safe LSF sentinel/export extension, then convert to JSON in Python if needed. Common Mistakes Do not edit files inside the solver installation directory. Do not assume a normal python command exists on Windows; prefer the discovered or user-specified Python. Do not trust old solver syntax without a local probe. Do not treat a solver exit code as enough; verify the expected sentinel, monitor data, or exported file exists. Do not add unrelated solver-family guidance to this FDTD-only skill.
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |