Examples

rappture2web ships with a comprehensive set of examples in the examples/rappture2/ directory. Each example is a self-contained tool that uses rappture2web.rp_library and can be run directly:

rappture2web examples/rappture2/curve/

Available examples

Basic input types:

Example

Description

Number Input Example

Number input with units, presets, and color bar

number2/

Number input with color ranges

Integer Input Example

Integer input with min/max bounds

integer2/

Integer input with color ranges

Boolean Input Example

Boolean checkbox input (on/yes/true/1 formats)

String Input Example

String text input (single-line and multiline)

Choice Input Example

Dropdown choice input

MultiChoice Input Example

Multiple selection checkboxes

Periodic Element Example

Interactive periodic table picker

Image Example

Image upload input with loader

Note Input Example

Read-only HTML note

Layout and organization:

Example

Description

Group Input Example

Grouped inputs with tabs, horizontal, and sentence layouts

Phase Input Example

Phase-based (multi-page) workflow

Enable/Disable Example

Conditional enable/disable of inputs

Output types:

Example

Description

Curve Output Example

XY curves: single, grouped, scatter, bar, log scale

Histogram Output Example

Bar histogram output (single and grouped)

Field Output Example

2D heatmap and 3D isosurface fields

3D Scalar Field Example

3D scalar field visualization (point cloud)

2D Flow Field Example

2D vector flow field (lid-driven cavity)

Flow Visualization Demos

3D flow visualization demos (3 examples)

Table Output Example

Data table output

Sequence Output Example

Animated sequence of image frames

Log Output Example

Simulation log text output

MapViewer Output Example

Geographic map with heatmap/scatter layers

Complete applications:

Example

Description

Fermi-Dirac Example

Fermi-Dirac distribution calculator

UQ Simple Example

Simple UQ demonstration (cosine wave)

UQ Projectile Example

Projectile motion with UQ support