import { useEffect, useState } from "react"; import { Modal, Stack, Text, List, Code, Divider, Anchor, Group, Badge } from "@mantine/core"; import { getVersion, BuildVersion } from "../api"; interface Props { opened: boolean; onClose: () => void; } export function HelpModal({ opened, onClose }: Props) { const [version, setVersion] = useState(null); useEffect(() => { if (!opened) return; getVersion() .then(setVersion) .catch(() => setVersion(null)); }, [opened]); return ( A web UI for SDPD multiphase + thixotropy simulations on top of patched LAMMPS 21Nov2023. The tabs in the main panel are your workflow. Pick an example from the dropdown in the top toolbar (start with{" "} test_100 for a fast smoke test). Edit parameters in the left panel. Use the bookmark icon to save sets of parameters as presets you can reapply. Hit Run in the toolbar. The bottom console streams the log; rendered PNG frames appear in the Frames tab; thermo (Temp/ Press) plots live in the Thermo tab. Past runs accumulate in the right-hand Recent runs panel. Click any to load its frames + log; rename or delete from the row. For sweeps, switch to the Optimize tab — set up an objective, search space, hit Start. Pareto front + analysis report appear once trials complete. For natural-language setup, the Agent tab talks to DeepSeek (or any OpenAI-compatible LLM you point it at) and has tools to run, watch, and optimise on your behalf. Open the Docs tab for the full reference. It includes: Introduction to SDPD — what's being simulated and what the multi-phase + thixotropy patches add Parameter reference — every editable variable, typical ranges, what to vary Example cases — what each of the 17 numerical cases studies, plus rough cost estimates Optimization guide — picking metric/reduction, sampler choice (TPE / NSGA-II / NSGA-III), search-space tips Agent prompt examples — sample prompts that work well Troubleshooting — common errors and fixes Source / issues:{" "} BCAM-CFD/SDPD-mf_thixo {" · "} lammps.org {version && ( build {version.build_time} {version.git_commit ? ` · ${version.git_commit.slice(0, 7)}` : ""} — if this looks older than your last push, HF served a cached layer; do Factory rebuild in Space settings. )} ); }