How opensemba/tulip works
Project type and purpose
• Tulip is an open-source, command-line, scientific/engineering solver written in C++.
• It computes per-unit-length capacitance (C) and inductance (L) matrices for multiconductor transmission lines (MTL) using finite element methods (FEM).
• It integrates with external tools (MFEM for FEM engine, step2gmsh for CAD→mesh conversion) and exports results for visualization (ParaView, VisIt).
File structure
Top-level directories and key files:
• src/ – core C++ modules
• external/ – submodules (mfem-geg, step2gmsh)
• test/ – unit tests (GoogleTest style)
• testData/ – sample JSON, .msh, .step inputs
• docs/ – developer/user documentation and figures
• .github/workflows/ – CI build & test pipelines
• CMakeLists.txt, vcpkg.json – build and dependency manifest
Notable patterns:
• Modular C++ headers+sources per domain concept (Parser, Model, Domain, Solver, Results).
• Use of submodule for MFEM and external mesh preprocessor.
• Tests mirror each src component with TestUtils and data fixtures.
README for architecture hints
• Core workflow: CLI → parse JSON → set up “model” (mesh+materials) → call electrostatic solver per conductor → compute C/L matrices → write JSON + optional ParaView/VisIt files.
• Dependencies: MFEM library, vcpkg packages, step2gmsh workflow.