Repository structure¶
PINNStudio/
├── pinnstudio/ the application (the Python package)
│ ├── main.py entry point: QApplication, MainWindow (console script `pinnstudio`)
│ ├── __main__.py `python -m pinnstudio`
│ ├── shortcut.py desktop shortcuts (--create-shortcut / --remove-shortcut)
│ ├── errors.py error reporting for the window
│ ├── core/ configuration, code generation, running, examples (no Qt)
│ ├── ui/ the PySide6 interface
│ └── resources/ icons and tuned_settings.json (packaged)
├── reference_data/ reference solutions and measured data used by the examples (packaged)
├── tests/ the pytest suite
├── tools/ developer scripts: reference-data generators, checks, figures, docs tools
├── benchmarks/ recorded benchmark runs, studies and the pages generated from them
├── website/ this documentation site (MkDocs + Material); mkdocs.yml at the root
├── assets/ images used by the README and the benchmark pages
├── notes/ development records (PySide6 migration, licensing decision); not shipped
├── .github/workflows/ CI: tests, platform matrix, smoke test, documentation
├── setup.py, pyproject.toml, MANIFEST.in, requirements.txt packaging
├── install.sh, install.bat, get-pinnstudio.sh, get-pinnstudio.ps1, select_torch_index.py installers
└── README.md, CHANGELOG.md, CONTRIBUTING.md, CITATION.cff, LICENSE, LICENSES/, THIRD_PARTY_LICENSES.md
pinnstudio/core¶
| Module | Role |
|---|---|
config.py |
PINNConfig, the dataclass holding a complete problem; validate(); LBFGS_RECOMMENDED (Configuration schema) |
codegen.py |
the two code generators: generate_script() (what Solve runs) and generate_clean_script() (Export as DeepXDE Script...), and their shared helpers (Architecture) |
runner.py |
run_pinn(): writes Solve's script to a temporary file, runs it in a subprocess and streams its output |
pyexe.py |
which Python runs the generated scripts, and their environment (UTF-8 mode, Windows process handling) |
constants.py |
named constants of the Equations page and their substitution into every expression |
deepxde_examples.py |
DeepXDE's documented examples as PINNStudio settings (EXAMPLES, build_config) |
pinnstudio_examples.py |
PINNStudio templates defined as plain settings, and optional local templates |
example_catalog.py |
the one list of every Quick Example (names, order, dimension, papers) shared by the window and the examples table of benchmarks/examples.md |
example_settings.py, paper_settings.py |
Settings: Default / Tuned of the examples, and the papers' own settings of the templates |
sweep_registry.py |
every setting a Parameter Sweep can vary, with get/set functions that respect the training architecture |
sweep_runner.py |
runs a sweep: builds the runs, validates and trains each, collects losses, errors and parameters, writes the summary |
bayes_opt.py |
the Gaussian-process Bayesian optimizer of Bayesian search (theory) |
obs_reduce.py |
reduction of measured data to a grid or a random subset |
portable_paths.py |
reference-data paths in saved problems that work on any machine (@REF/ prefix) |
ea_view3d.py, line_slice.py |
the 3D Error Analysis view, and where line plots cut a 2D/3D domain |
torch_index.py, update_info.py |
which PyTorch CUDA build fits the driver; how to update an installed copy |
pinnstudio/ui¶
| Module | Role |
|---|---|
main_window.py |
MainWindow: every page, dialog and widget; _build_config() (widgets → PINNConfig) and _apply_config() (the reverse); the template set-up; Restore & Visualize script builders; SolverThread, SweepThread |
workspace.py |
the three-panel workspace (model tree, settings, graphics) |
results.py |
the Results tabs: live loss, Error analysis table, run history |
figure_style.py |
the Plot Settings... dialog |
sketch_canvas.py, sketch_edges.py, sketch3d.py, sketch_import.py |
the Sketch: drawing 2D/3D domains, numbering boundary edges and faces, DXF/SVG import |
view3d.py |
the 3D view of a 3D domain |
equation.py, sci_spinbox.py |
typeset equation boxes; number boxes for very small or large values |
start_page.py, theme.py, icons.py, export_tools.py |
Start tab, colour themes and stylesheet, icons, copy/save of results |
Other folders¶
reference_data/—1D/,2D/,3D/for PINNStudio's templates anddeepxde/for DeepXDE's examples; one text file per reference time. The data are written by scripts intools/(make_exact_reference_data.py,make_deepxde_reference_data.py,make_poisson_reference_data.py,make_burgers2d_reference_data.py,make_phase_field_reference_data.py); see Reference data.tests/—test_*.py, most also runnable as plain scripts;conftest.pymarks the slow ones (Tests).tests/local/is ignored by git.tools/— checks (check_export_equivalence.py,check_benchmarks_figures.py,smoke_gui.py,launch_check.py,all_examples_check.py), example runners (run_deepxde_examples.py,tuning_study.py), page generators (make_benchmarks_readme.py,make_tuning_page.py), figure scripts, andtools/docs/for this site (WRITING.md,make_screenshots.py,make_config_reference.py,make_gallery.py, which writes the example gallery frombenchmarks/examples.mdand the example definitions, andmake_source_links.pywith its mappingsource_map.pyfor the source links below).benchmarks/— the recorded runs and studies behind the benchmark pages (README.md,examples.md,tuning_study.md,training_methods.md,performance.md) and their scripts; see Benchmark collection.
Where each feature is in the code¶
The main functions behind each feature, the tests that exercise it most directly, and the pages that describe it.
The list is written by tools/docs/make_source_links.py from one mapping, tools/docs/source_map.py; the same
entries end each Feature reference page under Implementation and source code. The links
name a file and a function or class in it, not line numbers, so they stay right when the code moves. If you rename
or move a function named here, update tools/docs/source_map.py and run python tools/docs/make_source_links.py;
the documentation workflow and tests/test_source_links.py run it with --check, which fails when a file or a
name no longer exists (see Contributing).
Problem type, dimension and ODEs¶
Entry points
MainWindow._build_setup_panelsinpinnstudio/ui/main_window.py: Problem page: dimension, forward or inverse, steady or in timeMainWindow._on_dim_changedinpinnstudio/ui/main_window.py: switching between ODE, 1D, 2D and 3Dgenerate_scriptinpinnstudio/core/codegen.py: the script Solve runs, for every problem type
Helpers
_ode_to_1dinpinnstudio/core/codegen.py: an ODE problem rewritten as a 1D problem in t_effective_configinpinnstudio/core/codegen.py: the settings as the generators read them
Tests
tests/test_round74_ode.py: ODE problemstests/test_templates.py: every template in Forward and Inverse mode
Described in Forward problems, Problem.
Equation parsing and residual generation¶
Entry points
MainWindow._build_pde_inputsinpinnstudio/ui/main_window.py: Equations page: one expression per equation, outputs, constants_simplify_pde_exprinpinnstudio/core/codegen.py: typed expression to the residual's Python code
Helpers
_simplify_exprinpinnstudio/core/codegen.py: math names and powers to NumPy/PyTorch syntax_fold_numeric_callsinpinnstudio/core/codegen.py: numeric calls such as sqrt(3) folded to values_pde_coord_namesinpinnstudio/core/codegen.py: which coordinates (x, y, z, t) the equations use_clean_needed_derivsinpinnstudio/core/codegen.py: derivatives (du_x, du_xx, ...) the exported residual computes_n_equationsinpinnstudio/core/codegen.py: number of residuals, independent of the number of outputs_constant_valuesinpinnstudio/core/codegen.py: named constants_integral_textinpinnstudio/core/codegen.py: integral(...) terms_frac_data_textinpinnstudio/core/codegen.py: frac(...) terms (DeepXDE's fractional PDE data)pinnstudio/ui/equation.py: live preview of the typed equationspinnstudio/core/constants.py: constants table
Tests
tests/test_round61_pde_coordinates.py: coordinates and math functions in equationstests/test_round63_equation_count.py: number of equations and outputstests/test_round70_constants.py: named constants
Described in ODEs and PDEs, Coupled systems, Equations, outputs and constants.
Geometry, the Sketch and boundary edges¶
Entry points
MainWindow._build_domain_panelsinpinnstudio/ui/main_window.py: Geometry, Collocation points, Initial and Boundary conditions pagesMainWindow._on_geometry_type_changedinpinnstudio/ui/main_window.py: the shape and its parametersMainWindow._build_custom_geom_shapes_jsoninpinnstudio/ui/main_window.py: Custom geometry rows (combined shapes)
Helpers
_build_custom_geom_codeinpinnstudio/core/codegen.py: combined shapes to DeepXDE geometry code_clean_geom_innerinpinnstudio/core/codegen.py: the geometry constructor in the exported script_shape_bboxinpinnstudio/core/codegen.py: bounding box of a non-box shapepinnstudio/ui/sketch_canvas.py: 2D Sketchpinnstudio/ui/sketch_edges.py: edges of the sketch as boundary partspinnstudio/ui/sketch_import.py: DXF/SVG importpinnstudio/ui/sketch3d.py: 3D Sketch
Tests
tests/test_custom_geometry.py: Custom geometry: validation, panel, generated codetests/test_geometry_box.py: bounding box of non-box shapestests/test_sketch_geometry.py: sketched shapes become Custom-geometry rows
Described in Geometry, Geometry and domain.
Collocation points and domain preview¶
Entry points
MainWindow._build_domain_panelsinpinnstudio/ui/main_window.py: Collocation points page (with the domain pages)MainWindow._preview_domaininpinnstudio/ui/main_window.py: domain and point preview
Helpers
_anchor_points_codeinpinnstudio/core/codegen.py: extra training points (DeepXDE anchors)pinnstudio/ui/view3d.py: 3D view of the domain
Tests
tests/test_round65_anchors.py: extra training pointstests/test_view3d.py: 3D view
Described in Collocation points.
Boundary conditions¶
Entry points
MainWindow._add_custom_bc_entryinpinnstudio/ui/main_window.py: one row of the Boundary conditions pageMainWindow._build_custom_bc_jsoninpinnstudio/ui/main_window.py: rows to the saved settings (custom_bc_json)
Helpers
_clean_bc_row_codeinpinnstudio/core/codegen.py: one row to DeepXDE boundary-condition code_bc_operator_def_linesinpinnstudio/core/codegen.py: Operator and Point Set Operator conditions_bc_sidesinpinnstudio/core/codegen.py: side names (left, right, ...) in Where expressions_bc_check_periodic_preconditionsinpinnstudio/core/codegen.py: checks before a periodic condition
Tests
tests/test_round68_bc_where_names.py: Where expressions and side namestests/test_round71_pointset_points.py: Point Set conditions without a filetests/test_sketch_edges.py: sketch edges as boundary conditions
Described in Boundary conditions, Boundary conditions.
Initial conditions and imported data¶
Entry points
MainWindow._build_domain_panelsinpinnstudio/ui/main_window.py: Initial conditions page: one row per output, formula or file
Helpers
MainWindow._ic_file_anchors_checkedinpinnstudio/ui/main_window.py: an initial condition read from a file: also check the equation there_clean_active_ic_outputsinpinnstudio/core/codegen.py: which outputs get an initial-condition term_bc_initial_operator_rowsinpinnstudio/core/codegen.py: operator conditions applied at the initial timepinnstudio/core/portable_paths.py: data paths saved as @REF/... so problems open anywhere
Tests
tests/test_ic_file_choice.py: formula or file, never bothtests/test_round64_initial_operator_decay.py: operator condition at the initial timetests/test_portable_paths.py: portable data paths
Described in Initial conditions and imported data, Initial conditions.
Inverse problems: unknown parameters¶
Entry points
MainWindow._build_inverse_panelinpinnstudio/ui/main_window.py: Inverse pageMainWindow._add_inverse_var_rowinpinnstudio/ui/main_window.py: one unknown parameter (initial and true value)
Helpers
_parse_inverse_variablesinpinnstudio/core/codegen.py: unknown parameters to DeepXDE variablesinv_record_periodinpinnstudio/core/codegen.py: how often the parameter values are recorded_param_axis_helper_codeinpinnstudio/core/codegen.py: parameter convergence plotsMainWindow.INVERSE_AUTO_VARSinpinnstudio/ui/main_window.py: the templates' unknown parameters in Inverse mode
Tests
tests/test_added_inverse_modes.py: Inverse modes added to DeepXDE forward examplestests/test_burgers2d_inverse_setup.py: an inverse template set up end to endtests/test_round49_param_axis_shared.py: parameter plots
Described in Inverse problems, Inverse problems and measured data.
Observational (measured) data¶
Entry points
MainWindow._add_inverse_data_rowinpinnstudio/ui/main_window.py: one measured-data file on the Inverse pageMainWindow._build_inverse_obs_files_jsoninpinnstudio/ui/main_window.py: data rows to the saved settings
Helpers
_parse_inverse_obs_filesinpinnstudio/core/codegen.py: data files to DeepXDE point-set conditionsobs_reduce_argsinpinnstudio/core/codegen.py: the Use: choice (all points, grid, random subset)pinnstudio/core/obs_reduce.py: reading and thinning the data points
Tests
tests/test_obs_reduce.py: Use: all points, grid, random subsettests/test_large_data_note.py: note for large data files
Described in Observational data, Inverse problems and measured data.
Networks, Fourier features and transforms¶
Entry points
MainWindow._build_network_panelinpinnstudio/ui/main_window.py: Neural network pageMainWindow._on_network_type_changedinpinnstudio/ui/main_window.py: FNN, PFNN, MsFFN, STMsFFN
Helpers
_net_construction_helper_codeinpinnstudio/core/codegen.py: the network in the generated script_parse_sigmasinpinnstudio/core/codegen.py: Fourier-feature scales_net_transforms_codeinpinnstudio/core/codegen.py: input features and output transforms
Tests
tests/test_network_architecture.py: network types and sizestests/test_round73_msffn.py: multi-scale Fourier-feature networkstests/test_round62_transform_formulas.py: input and output transform formulas
Described in Networks and Fourier features, Neural network.
Optimizers, training phases and callbacks¶
Entry points
MainWindow._build_training_panelinpinnstudio/ui/main_window.py: Training pageMainWindow._add_scheduler_phaseinpinnstudio/ui/main_window.py: one row of Training phases
Helpers
MainWindow._validate_optimizer_settingsinpinnstudio/ui/main_window.py: checks before Solve_clean_sched_phasesinpinnstudio/core/codegen.py: the phases a run actually trains_clean_phase_train_linesinpinnstudio/core/codegen.py: compile and train calls for one phase_lbfgs_maxfuninpinnstudio/core/codegen.py: L-BFGS iteration limit_build_train_cbs_codeinpinnstudio/core/codegen.py: callbacks: early stopping, point resampling, checkpoints, timerphases_from_legacyinpinnstudio/core/config.py: older saved problems to training phases
Tests
tests/test_round78_example_phases.py: examples train through the phases showntests/test_lbfgs_steps.py: L-BFGS stepstests/test_training_callbacks_visibility.py: callbacks
Described in Optimizers and training phases, Training phases.
Loss weights¶
Entry points
MainWindow._build_weight_inputsinpinnstudio/ui/main_window.py: Loss weights page: one weight per term
Helpers
_clean_loss_weightsinpinnstudio/core/codegen.py: the weight list in term order_clean_phase_weightsinpinnstudio/core/codegen.py: weights per training phase_init_loss_weights_codeinpinnstudio/core/codegen.py: Scale by initial losses
Tests
tests/test_steady_state_ic_weights.py: no initial-condition weight without timetests/test_round75_wave_helmholtz_bayes.py: weights from the initial losses (wave example)tests/test_entered_values.py: weights used as entered
Described in Loss weights, Loss weights.
IC pre-training and IC-guided learning¶
Entry points
MainWindow._build_training_panelinpinnstudio/ui/main_window.py: IC pre-training options on the Training pageMainWindow._build_adaptive_and_sweep_panelsinpinnstudio/ui/main_window.py: IC-guided learning in the time-window options_ic_pretrain_train_codeinpinnstudio/core/codegen.py: pre-training on the initial condition, in both scripts
Helpers
_icgl_outputsinpinnstudio/core/codegen.py: outputs IC-guided learning fits in each window_ta_icgl_iterationsinpinnstudio/core/codegen.py: IC-guided learning iterations per window
Tests
tests/test_round47_ic_pretrain_shared_block.py: pre-training block shared by both scriptstests/test_round40_ic_pretrain_restore_parity.py: pre-training and restoringtests/test_ta_bcpinn.py: IC-guided learning with bc-PINN windows
Described in IC pre-training and guided learning, Adaptive training.
Residual-based adaptive refinement (RAR)¶
Entry points
MainWindow._build_adaptive_and_sweep_panelsinpinnstudio/ui/main_window.py: Adaptive training page_gs_rar_loop_codeinpinnstudio/core/codegen.py: the RAR loop of the Solve script
Helpers
_rar_phaseinpinnstudio/core/codegen.py: loss and weights of an RAR round_rar_tolerance_checkinpinnstudio/core/codegen.py: stop on a residual tolerance_rar_optimizerinpinnstudio/core/codegen.py: the optimizer and learning rate of each round_clean_rar_diagnostics_codeinpinnstudio/core/codegen.py: RAR in the exported script, with per-round figures
Tests
tests/test_rar_round_diagnostics.py: per-round diagnosticstests/test_round66_rar_tolerance.py: residual tolerancetests/test_steady_state_rar_gating.py: RAR for steady problems
Described in RAR, Adaptive training.
RBA and SA-PINN point weights¶
Entry points
MainWindow._build_adaptive_and_sweep_panelsinpinnstudio/ui/main_window.py: the controls on the Loss weights page (Automatic weighting), built with the Adaptive training page_training_methods_defsinpinnstudio/core/codegen.py: runtime code of RBA, SA-PINN and causal training
Helpers
_point_weights_modeinpinnstudio/core/codegen.py: which point weights a run uses_training_methods_cbsinpinnstudio/core/codegen.py: the callbacks that update the weights
Tests
tests/test_training_methods.py: causal training, RBA and SA-PINNtests/test_ta_bcpinn.py: point weights inside time windows
Described in RBA and SA-PINN, Loss weights.
Causal training¶
Entry points
MainWindow._build_adaptive_and_sweep_panelsinpinnstudio/ui/main_window.py: the controls on the Loss weights page (Automatic weighting), built with the Adaptive training page_training_methods_defsinpinnstudio/core/codegen.py: runtime code of causal training (and RBA, SA-PINN)
Helpers
_training_methods_cbsinpinnstudio/core/codegen.py: the callback that updates the causal weights
Tests
tests/test_training_methods.py: causal training, RBA and SA-PINN
Described in Causal training, Loss weights.
Time windows: transfer learning, bc-PINN, growing range, resampling¶
Entry points
MainWindow._add_ta_step_groupinpinnstudio/ui/main_window.py: time-window groups on the Adaptive training pageMainWindow._build_ta_step_groups_jsoninpinnstudio/ui/main_window.py: groups to the saved settings_gs_time_adaptive_loop_codeinpinnstudio/core/codegen.py: the time-window loop: transfer learning, bc-PINN, growing range, resampling
Helpers
_bc_rng_codeinpinnstudio/core/codegen.py: random generator for bc-PINN's stored points_ta_clean_unsupportedinpinnstudio/core/codegen.py: time-window options the exported script does not write
Tests
tests/test_ta_bcpinn.py: one network through all windows, bc-PINNtests/test_ta_growing_2d.py: growing time range in 2Dtests/test_export_time_window_options.py: export trains the same windows as Solve
Described in Time windows and bc-PINN, Adaptive training.
Exact constraints¶
Entry points
MainWindow._build_domain_panelsinpinnstudio/ui/main_window.py: Exact periodicity and exact initial-condition options_exact_constraintsinpinnstudio/core/codegen.py: exact initial conditions and periodic input features
Helpers
MainWindow._update_exact_notesinpinnstudio/ui/main_window.py: the Network page's note when exact constraints build the transform_net_transforms_codeinpinnstudio/core/codegen.py: output transform the constraints are built into_periodic_axesinpinnstudio/core/config.py: axes that can be made exactly periodic
Tests
tests/test_training_methods.py: exact initial condition and periodicitytests/test_round62_transform_formulas.py: hand-written output transforms
Described in Exact constraints, Loss weights.
Parameter sweeps and Bayesian optimization¶
Entry points
MainWindow._start_sweepinpinnstudio/ui/main_window.py: Parameter sweep page: start a sweep or a Bayesian searchrun_sweepinpinnstudio/core/sweep_runner.py: runs the configurations one after another
Helpers
BayesRunsinpinnstudio/core/sweep_runner.py: Bayesian search: next run from the results so farBayesOptimizerinpinnstudio/core/bayes_opt.py: Gaussian process with expected improvementavailable_paramsinpinnstudio/core/sweep_registry.py: the sweepable parameterswrite_sweep_summary_plotinpinnstudio/core/sweep_runner.py: summary table and plot
Tests
tests/test_sweep_registry.py: sweepable parameterstests/test_sweep_execution.py: a sweep run end to endtests/test_round75_wave_helmholtz_bayes.py: Bayesian search (Helmholtz example)
Described in Sweeps and Bayesian optimization, Parameter sweeps, Bayesian optimization.
Script generation and export¶
Entry points
generate_scriptinpinnstudio/core/codegen.py: the script Solve runs (shown in the Script tab)generate_clean_scriptinpinnstudio/core/codegen.py: Export as DeepXDE Script: the short standalone scriptMainWindow._export_deepxde_scriptinpinnstudio/ui/main_window.py: the export command
Helpers
MainWindow._refresh_script_tabinpinnstudio/ui/main_window.py: the Script tabrun_pinninpinnstudio/core/runner.py: runs a generated script in its own processtools/check_export_equivalence.py: checks that both scripts train the same model
Tests
tests/test_export_parity.py: export and restore paritytests/test_export_time_window_options.py: export trains the same model as Solvetests/test_round55_generator_naming.py: the two generators
Described in Generated scripts, Exporting a script.
Checkpoints and restoring¶
Entry points
MainWindow._build_restore_panelinpinnstudio/ui/main_window.py: Restore & visualize pageMainWindow._on_restoreinpinnstudio/ui/main_window.py: Restore & visualize a saved model
Helpers
MainWindow._build_restore_scriptinpinnstudio/ui/main_window.py: the restore scriptMainWindow._build_restore_script_tainpinnstudio/ui/main_window.py: restoring time-window models_build_train_cbs_codeinpinnstudio/core/codegen.py: Model Checkpoint callback
Tests
tests/test_restore_steady_state.py: restoring a steady-state modeltests/test_restore_ta_error_analysis.py: restoring time-window modelstests/test_training_callbacks_visibility.py: Model Checkpoint settings
Described in Checkpoints and restoring, Restore & visualize.
Visualization, plots and data export¶
Entry points
MainWindow._display_run_result_plotsinpinnstudio/ui/main_window.py: Results tabs after a runMainWindow._on_plot_settingsinpinnstudio/ui/main_window.py: Plot settings dialog
Helpers
generate_clean_script._result_plot_partsinpinnstudio/core/codegen.py: result plots of the exported script_restore_surface_codeinpinnstudio/core/codegen.py: surface plots_restore_line_plot_codeinpinnstudio/core/codegen.py: line plots over time steps_restore_anim_surface_codeinpinnstudio/core/codegen.py: animations_loss_plot_runtime_codeinpinnstudio/core/codegen.py: saved loss figureMainWindow._on_export_settingsinpinnstudio/ui/main_window.py: Export Solution (solution data)FigureStyleDialoginpinnstudio/ui/figure_style.py: figure styleLiveLossPlotinpinnstudio/ui/results.py: live loss during trainingRunCompareinpinnstudio/ui/results.py: comparing runspinnstudio/ui/export_tools.py: copying and saving figures and tables
Tests
tests/test_figure_style.py: one Plot settings dialog for every figuretests/test_plot_settings_more.py: plot settings reach every scripttests/test_round69_output_named_plots.py: plots of multi-output problems
Described in Plots and data export, Results and plots, Solve and the training log.
Error Analysis and metrics¶
Entry points
MainWindow._show_ea_dialoginpinnstudio/ui/main_window.py: Error Analysis dialog_gs_ea_setup_codeinpinnstudio/core/codegen.py: Error Analysis in the Solve script
Helpers
_ea_metrics_row_codeinpinnstudio/core/codegen.py: one row of error_metrics.txt_ea_metrics_csv_headerinpinnstudio/core/codegen.py: metric columns (L2, MSE, max, mean absolute)_formula_reference_codeinpinnstudio/core/codegen.py: reference from an exact-solution formulaauto_line_sliceinpinnstudio/core/line_slice.py: where line comparisons cut a 2D/3D domainpinnstudio/core/ea_view3d.py: 3D view of the error
Tests
tests/test_ea_fixes.py: reference files and metricstests/test_ea_spacetime.py: relative L2 over all reference pointstests/test_round67_formula_reference.py: reference from a formula
Described in Error metrics, Error Analysis, Error measures.
Configuration, validation and saved problems¶
Entry points
PINNConfiginpinnstudio/core/config.py: every setting of a problem (saved as .pinn.json)PINNConfig.validateinpinnstudio/core/config.py: checks run before Solve and on a loaded file
Helpers
MainWindow._build_configinpinnstudio/ui/main_window.py: the window's widgets to a PINNConfigMainWindow._apply_configinpinnstudio/ui/main_window.py: a PINNConfig back into the widgetsMainWindow._save_probleminpinnstudio/ui/main_window.py: Save ProblemMainWindow._open_probleminpinnstudio/ui/main_window.py: Open Saved ProblemMainWindow._on_gpu_settingsinpinnstudio/ui/main_window.py: GPU / Hardware settingstools/docs/make_config_reference.py: the configuration reference page
Tests
tests/test_config_options.py: GPU and random-seed settingstests/test_template_copies.py: saving never changes an exampletests/test_audit_v160.py: validation checks of the v1.6.0 audit
Described in Configuration schema, Save, reopen and export.
Compatibility of methods: the checks that refuse a combination¶
Entry points
PINNConfig.validateinpinnstudio/core/config.py: the combinations refused before every Solve and sweep runMainWindow._validate_optimizer_settingsinpinnstudio/ui/main_window.py: weight decay with L-BFGS or NNCG, AdamW, NNCG's DeepXDE versionMainWindow._on_steady_state_changedinpinnstudio/ui/main_window.py: a stationary problem disables Time Adaptive TrainingMainWindow._on_problem_type_changedinpinnstudio/ui/main_window.py: Inverse mode removes Time Adaptive Training
Helpers
MainWindow._build_adaptive_and_sweep_panelsinpinnstudio/ui/main_window.py: the warning for causal training with per-point weights_check_anchor_preconditionsinpinnstudio/core/codegen.py: extra training points refused with time windows_bc_check_initial_operator_preconditionsinpinnstudio/core/codegen.py: Operator BC at the initial time_bc_check_periodic_preconditionsinpinnstudio/core/codegen.py: Periodic BC only on box shapes_bc_check_interface2d_preconditionsinpinnstudio/core/codegen.py: Interface 2D BC requirements_effective_configinpinnstudio/core/codegen.py: settings the generators switch off (time windows on a stationary problem)_ode_to_1dinpinnstudio/core/codegen.py: an ODE as a 1D problem in t (time windows switched off)
Tests
tests/test_audit_v160.py: refused and generated combinations of the v1.6.0 audittests/test_training_methods.py: causal training with RBA, exact constraints, validationtests/test_ta_bcpinn.py: time-window options and their checkstests/test_lbfgs_steps.py: network and method checks; RAR in an inverse problemtests/test_steady_state_rar_gating.py: RAR on a stationary problemtests/test_round77_fractional.py: frac(...) problems and their checks
Described in Compatibility of methods.
Examples and templates¶
Entry points
ENTRIESinpinnstudio/core/example_catalog.py: the Examples list: names, order, modesEXAMPLESinpinnstudio/core/deepxde_examples.py: DeepXDE examples as settingsMainWindow._on_template_selectedinpinnstudio/ui/main_window.py: PINNStudio templates, set up in the window
Helpers
PAPERinpinnstudio/core/paper_settings.py: the papers' settings (Settings: Default of a paper template)settings_forinpinnstudio/core/example_settings.py: Settings: Default or Tunedpinnstudio/resources/tuned_settings.json: the Tuned settingstools/docs/make_gallery.py: the example gallery pages
Tests
tests/test_templates.py: every template in Forward and Inverse modetests/test_deepxde_examples.py: DeepXDE examplestests/test_example_settings.py: Settings: Default and Tuned
Described in Examples, Adding an example.
Files on release v1.6.0 of the repository.
Files not in git¶
.gitignore keeps out build output (build/, dist/, *.egg-info/), virtual environments, solution data,
and local material: pinnstudio/core/local_examples.py, reference_data/local/, tools/local/ and
tests/local/ (templates and tests kept for yourself).