Reference¶
FieldView¶
fieldview¶
Top-level Python entry point for FieldView automation.
The fieldview namespace exposes the main submodules used for in-process
automation, including dataset access, formula creation, visualization object
creation, layout and camera control, image export, shared constants, and
common utility value types.
Use this top-level namespace when you want the overall package entry point,
shared session helpers such as scene discovery, or convenient access to the
major submodules through names like fieldview.data,
fieldview.formula, and fieldview.vis.
Scene Discovery¶
- fieldview.get_current_object()[source]¶
Return the current scene object as its concrete wrapper type.
Returns
Nonewhen FieldView has no current object.Example usage:
>>> import fieldview as fv >>> current = fv.get_current_object() >>> if isinstance(current, fv.vis.Coord): ... current.plane = fv.constant.Plane.Y ... elif isinstance(current, fv.vis.Iso): ... current.visibility = False
Notes
Do not manually cast the result to another wrapper type. The returned object is already the correct runtime type. Use
isinstancebefore accessing type-specific properties.- Return type:
object | None
- fieldview.get_all_objects()[source]¶
Return all scene objects grouped by public wrapper type.
Example usage:
>>> import fieldview as fv >>> objects = fv.get_all_objects() >>> for coord in objects.coord_list: ... coord.visibility = True >>> for text in objects.annotation_text_list: ... print(text.text)
- Return type:
- class fieldview.ObjectLists[source]¶
Grouped scene objects returned by
get_all_objects().Example usage:
>>> import fieldview as fv >>> objects = fv.get_all_objects() >>> len(objects.coord_list) 1 >>> coord = objects.coord_list[0] >>> coord.plane = fv.constant.Plane.Y
Host Control¶
- fieldview.exit(status=0)[source]¶
Exit the FieldView host process.
This is the direct Python API for host shutdown.
- Parameters:
status (int) – Process exit status to report back to test harnesses or other automation. Defaults to
0.- Return type:
None
Example:
import fieldview as fv fv.exit() # or fv.exit(2)
Data¶
fieldview.data¶
Dataset loading, access, and query helpers for FieldView.
The fieldview.data namespace covers the full dataset lifecycle: loading
supported file formats, selecting or discovering the current dataset, probing
values, accessing registered scalar/vector/position arrays, working with
transient data, and retrieving session or window metadata tied to the active
scene.
- Typical usage:
ds = fv.data.load_plot3d(“grid.g”, “sol.q”)
Loading Data¶
- fieldview.data.load_plot3d(grid_file, q_file='', function_file='', function_name_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, merged_series=None, auto_detect_format=None, file_format=None, auto_partition=None, ghost_cells=None, iblanks=None, multi_grid=None, coords=None)[source]¶
Load Plot3D data and return a Dataset.
- Parameters:
q_file (str | PathLike[str]) – Optional Plot3D solution/Q file path.
function_file (str | PathLike[str]) – Optional Plot3D function file path.
function_name_file (str | PathLike[str]) – Optional Plot3D function-name file path.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
merged_series (bool | None) – When
True, treat matching Plot3D files as a merged time series.auto_detect_format (bool | None) – Optional Plot3D format detection or explicit format override.
file_format (str | Plot3dFileFormat | None) – Optional Plot3D format detection or explicit format override.
auto_partition (bool | None) – When
True, enable reader-side auto partitioning.ghost_cells (int | None) – Number of ghost-cell layers to interpret.
iblanks (bool | None) – When
True, enable iblank handling.multi_grid (bool | None) – When
True, treat the input as a multigrid dataset.coords (str | Plot3dCoords | None) – Optional Plot3D coordinate interpretation override.
- Return type:
Example usage:
>>> import fieldview as fv >>> grid_file = "/path/to/grid.bin" >>> q_file = "/path/to/q.bin" >>> ds = fv.data.load_plot3d(grid_file, q_file)
- fieldview.data.load_overflow2(grid_file, q_file='', function_file='', function_name_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, merged_series=None, auto_detect_format=None, file_format=None, auto_partition=None, ghost_cells=None, iblanks=None, multi_grid=None, coords=None)[source]¶
Load Overflow-2 (Plot3D-compatible) data and return a Dataset.
- Parameters:
grid_file (str | PathLike[str]) – Plot3D-compatible grid file path.
q_file (str | PathLike[str]) – Optional solution/Q file path.
function_file (str | PathLike[str]) – Optional function file path.
function_name_file (str | PathLike[str]) – Optional function-name file path.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
merged_series (bool | None) – When
True, treat matching files as a merged time series.auto_detect_format (bool | None) – Optional format detection or explicit format override.
file_format (str | Plot3dFileFormat | None) – Optional format detection or explicit format override.
auto_partition (bool | None) – When
True, enable reader-side auto partitioning.ghost_cells (int | None) – Number of ghost-cell layers to interpret.
iblanks (bool | None) – When
True, enable iblank handling.multi_grid (bool | None) – When
True, treat the input as a multigrid dataset.coords (str | Plot3dCoords | None) – Optional coordinate interpretation override.
- Return type:
- fieldview.data.load_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load FV-UNS data and return a Dataset.
- Parameters:
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
Example usage:
>>> import fieldview as fv >>> file = "/path/to/model.fvuns" >>> results_file = "/path/to/results.fvuns" >>> ds = fv.data.load_fvuns(file=file, results_file=results_file)
- fieldview.data.load_vtk_structured(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None)[source]¶
Load VTK structured data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary VTK structured file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_acusolve_direct(file, results_file='', input_mode=None, server_config=None, grid_processing=None, boundary_only=None, extended_variables=None, duplicate_boundaries=None)[source]¶
Load AcuSolve direct data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary AcuSolve input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.extended_variables (bool | None) – When
True, request extended-variable import.duplicate_boundaries (bool | None) – When
True, preserve duplicate boundary information during import.
- Return type:
- fieldview.data.load_acusolve_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load AcuSolve FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary AcuSolve FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_ansys_cfx_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load ANSYS-CFX FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary ANSYS-CFX FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_fluent_cff_direct(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None)[source]¶
Load Fluent CFF direct data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary Fluent CFF input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_append_sampled_data(file)[source]¶
Load Append Sampled Data and return a Dataset.
- fieldview.data.load_cfdpp_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load CFD++ FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary CFD++ FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_cgns_structured(file, results_file='', input_mode=None, server_config=None, grid_processing=None)[source]¶
Load CGNS structured data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary CGNS structured file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_cgns_unstructured(file, results_file='', input_mode=None, server_config=None, grid_processing=None, boundary_only=None)[source]¶
Load CGNS unstructured data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary CGNS unstructured file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_cgns_unstructured_hybrid(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load CGNS unstructured hybrid data and return a Dataset.
- Parameters:
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_cobalt_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load COBALT FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary COBALT FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_converge_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load CONVERGE FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary CONVERGE FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_ensight(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load Ensight data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary Ensight input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_flow3d_animation(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None)[source]¶
Load FLOW-3D animation data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary FLOW-3D animation file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
- Return type:
- fieldview.data.load_flow3d_restart(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None)[source]¶
Load FLOW-3D restart data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary FLOW-3D restart file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
- Return type:
- fieldview.data.load_fluent_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load FLUENT FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary FLUENT FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_fluent_unstructured(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None)[source]¶
Load Fluent unstructured data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary Fluent unstructured file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_fluent_cas_dat_direct(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None, boundary_only=None)[source]¶
Load FLUENT cas/dat direct data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary FLUENT cas/dat input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_fluent_direct(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None)[source]¶
Load Fluent direct data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary Fluent direct input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_havoc(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load HAVOC data and return a Dataset.
- Parameters:
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_lsdyna_d3plot(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None, boundary_only=None)[source]¶
Load LS-DYNA d3plot data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary LS-DYNA d3plot file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_lsdyna_state(file, results_file='', input_mode=None, server_config=None, grid_processing=None, boundary_only=None)[source]¶
Load LS-DYNA state data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary LS-DYNA state file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_nparc_wind(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None)[source]¶
Load NPARC/WIND data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary NPARC/WIND input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_openfoam_direct(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None, boundary_only=None)[source]¶
Load OpenFOAM direct data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary OpenFOAM direct input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_openfoam_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None, boundary_only=None)[source]¶
Load OpenFOAM FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary OpenFOAM FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_sc_tetra(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load SC/Tetra data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary SC/Tetra input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_sc_flow(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load SCFLOW data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary SCFLOW input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_scryu(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load SCRYU data and return a Dataset.
- Parameters:
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_sc_stream(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load SCSTREAM data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary SCSTREAM input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_starccm_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load STAR-CCM+ FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary STAR-CCM+ FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_starcd_fvuns(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load STAR-CD FV-UNS data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary STAR-CD FV-UNS file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_stl(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None)[source]¶
Load STL data and return a Dataset.
- Parameters:
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
- Return type:
- fieldview.data.load_surface_sampled_data(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load surface sampled data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary surface-sampled-data input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_tecplot_360(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load Tecplot 360 data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary Tecplot 360 input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_ultrafluidx_direct(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None, boundary_only=None)[source]¶
Load ultraFluidX data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary ultraFluidX input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_vtk_unstructured_hybrid(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load VTK unstructured/hybrid data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary VTK unstructured or hybrid input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_wind_structured(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None)[source]¶
Load WIND structured data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary WIND structured input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
- Return type:
- fieldview.data.load_wind_unstructured(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, boundary_only=None)[source]¶
Load WIND unstructured data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary WIND unstructured input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
boundary_only (bool | None) – When
True, load only boundary/surface data.
- Return type:
- fieldview.data.load_xdb_import(file, results_file='', input_mode=None, server_config=None, transient=None, read_as_steady_state=None, changing_number_of_grids_over_time=None, grid_processing=None, initial_time_index=None, initial_time_step=None, initial_solution_time=None)[source]¶
Load XDB import data and return a Dataset.
- Parameters:
file (str | PathLike[str]) – Primary XDB import input file path.
results_file (str | PathLike[str]) – Optional companion results file.
input_mode (str | InputMode | None) – Optional dataset load mode. Use
constant.InputMode.REPLACEorconstant.InputMode.APPEND.server_config (str | ServerConfig | None) – Optional server configuration. Use
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a named.srvconfiguration.transient (bool | None) – Optional transient-reader settings.
read_as_steady_state (bool | None) – Optional transient-reader settings.
changing_number_of_grids_over_time (bool | None) – Optional transient-reader settings.
grid_processing (str | GridProcessing | None) – Optional grid-processing mode override.
initial_time_index (int | None) – Optional initial transient selection after load.
initial_time_step (int | None) – Optional initial transient selection after load.
initial_solution_time (float | None) – Optional initial transient selection after load.
- Return type:
Data Access¶
- class fieldview.data.Dataset[source]¶
Base dataset wrapper.
A Dataset instance tracks a loaded dataset in FieldView. If a new load happens with
input_mode=REPLACE, existing dataset objects are invalidated.- property duplication: DuplicationController¶
Access duplication controls (mirror/rotate/translate).
- property positions: PositionRegistry¶
Return native XYZ position snapshots for this dataset.
- property scalar_functions: list[str]¶
Return scalar function names loaded for this dataset (sorted).
The list is populated at load time and updated by APIs that add functions.
- property scalars: ScalarRegistry¶
Return scalar-function registry access for this dataset.
- server_config(server_config)[source]¶
Select a server configuration.
- Parameters:
server_config (str | ServerConfig) –
constant.ServerConfig.LOCAL,constant.ServerConfig.LOCAL_PARALLEL, or a configuration name string (without the.srvextension) under the sconfig folder.- Return type:
None
- set_transient(*, time_step=None, solution_time=None)[source]¶
Set the active transient time step or solution time.
- Parameters:
- Return type:
None
Example:
import os import fieldview as fv data_dir = os.path.join(fv.home, "examples", "rectangular_duct") ds = fv.data.load_fvuns(os.path.join(data_dir, "rect_duct_010.uns"), transient=True) ds.set_transient(time_step=25)
- sweep_time(*, from_time_step=None, to_time_step=None, from_time_step_index=None, to_time_step_index=None, from_solution_time=None, to_solution_time=None, from_solution_time_index=None, to_solution_time_index=None, loop=False, skip=0, cycles=1, delta_time=None, streaklines_filename=None, extracts_database_name=None, export_surfaces=None)[source]¶
Run a transient sweep for this dataset.
By default, this sweeps all available time steps from the first to the last step.
delta_time=Nonerestores the dataset’s original solution times (disables any active delta-time override). Index-based modes resolve endpoints throughtransient_info()before dispatching the sweep to the core.export_surfacesaccepts tuple entries like(coord, "coord_sweep", "csv")or(coord, "coord_sweep").- Parameters:
from_time_step (int | None) – Starting transient step value. Use together with
to_time_step.to_time_step (int | None) – Ending transient step value. Use together with
from_time_step.from_time_step_index (int | None) – Starting transient step index.
0means the first step; negative values count from the end (-1is the last step). Indices are resolved againstTransientInfo.time_step_values.to_time_step_index (int | None) – Ending transient step index.
-1means the last step; negative values count from the end.from_solution_time (float | None) – Starting solution time value. Use together with
to_solution_time.to_solution_time (float | None) – Ending solution time value. Use together with
from_solution_time.from_solution_time_index (int | None) – Starting solution time index. Indices are resolved against
TransientInfo.solution_time_values.to_solution_time_index (int | None) – Ending solution time index. Negative values count from the end.
loop (bool) – Whether the host should loop the sweep continuously.
skip (int) – Number of intermediate steps to skip between displayed or exported states.
cycles (int) – Number of sweep cycles to run.
delta_time (float | None) – Optional delta-time override for animated pathline or streakline calculations. If omitted, any prior override is cleared and original dataset solution times are used.
streaklines_filename (str | PathLike[str] | None) – Optional output filename for streakline export generated during the sweep.
extracts_database_name (str | PathLike[str] | None) – Optional extracts database name to write during the sweep.
export_surfaces (object) – Optional iterable of surface export requests, each expressed as
(surface, filename)or(surface, filename, format).
- Return type:
None
Example:
import os import fieldview as fv data_dir = os.path.join(fv.home, "examples", "rectangular_duct") ds = fv.data.load_fvuns(os.path.join(data_dir, "rect_duct_010.uns"), transient=True) ds.sweep_time() ds.sweep_time(from_time_step=1, to_time_step=10) ds.sweep_time(from_time_step_index=-10, to_time_step_index=-1) # last 10 frames ds.sweep_time(from_solution_time=0.0, to_solution_time=0.3, cycles=1) ds.sweep_time(from_solution_time_index=0, to_solution_time_index=-1)
- property transform: TransformController¶
Access transform controls (scale/translate/rotate).
- transient_info()[source]¶
Return transient dataset information.
Example:
import os import fieldview as fv data_dir = os.path.join(fv.home, "examples", "rectangular_duct") ds = fv.data.load_fvuns(os.path.join(data_dir, "rect_duct_010.uns"), transient=True) info = ds.transient_info() print(info.time_step, info.total_time_steps) print(info.time_step_values[:3])
- Return type:
- property vector_functions: list[str]¶
Return vector function names loaded for this dataset (sorted).
The list is populated at load time and updated by APIs that add functions.
- property vectors: VectorRegistry¶
Return vector-function registry access for this dataset.
- class fieldview.data.ScalarRegistry[source]¶
Container-like access to dataset scalar functions.
- create(name, values, *, grid=1)[source]¶
Create or replace a named scalar function from array-like values.
- Parameters:
- Return type:
- class fieldview.data.ScalarArrayRef[source]¶
Reference to a named scalar function within a dataset.
- snapshot(*, grid=1)[source]¶
Return a read-only snapshot view for this scalar on
grid.If you convert the snapshot with
numpy.asarray(), the resulting NumPy view keeps the snapshot backing alive even if the localsnapvariable is deleted.- Parameters:
grid (int)
- Return type:
fieldview._core.DatasetArraySnapshotView
- class fieldview.data.VectorRegistry[source]¶
Container-like access to dataset vector functions.
- create(name, values, *, grid=1)[source]¶
Create or replace a named vector function from array-like values.
- Parameters:
- Return type:
- class fieldview.data.VectorArrayRef[source]¶
Reference to a named vector function within a dataset.
- snapshot(*, grid=1)[source]¶
Return a read-only snapshot view for this vector on
grid.If you convert the snapshot with
numpy.asarray(), the resulting NumPy view keeps the snapshot backing alive even if the localsnapvariable is deleted.- Parameters:
grid (int)
- Return type:
fieldview._core.DatasetArraySnapshotView
- class fieldview.data.PositionRegistry[source]¶
Access to native XYZ node positions for dataset grids.
This registry is grid-oriented rather than function-oriented. Reads are snapshot-only and return
(n, 3)XYZ data for the requested grid.- snapshot(*, grid=1)[source]¶
Return a read-only snapshot view of native XYZ positions on
grid.If you convert the snapshot with
numpy.asarray(), the resulting NumPy view keeps the snapshot backing alive even if the localsnapvariable is deleted.- Parameters:
grid (int)
- Return type:
fieldview._core.DatasetArraySnapshotView
- to_numpy(*, grid=1, copy=False)[source]¶
Return native XYZ positions as a NumPy array.
- Parameters:
- Returns:
A NumPy array with shape
(n, 3)in native XYZ order.- Return type:
Notes
With
copy=False, the returned NumPy array keeps the snapshot backing alive, so the array remains valid even if the localsnapvariable goes out of scope.
- class fieldview.data.DatasetBounds[source]¶
Axis-aligned bounding box for a dataset.
Cartesian axes are always populated.
rmin/rmaxandtmin/tmaxare non-zero only for datasets with a cylindrical coordinate system.
- class fieldview.data.WindowList[source]¶
Window enumeration payload returned by
fieldview.layout.- windows: list[WindowInfo]¶
- class fieldview.data.CameraPose[source]¶
Human-readable camera pose summary.
This describes the visible camera tuple in terms of
eye,target, andupplus the current perspective mode. It is useful for inspection and approximate camera manipulation, but unlikeViewStateit is not the authoritative deterministic replay format for FieldView views.
- class fieldview.data.ViewState[source]¶
Deterministic FieldView view state.
This is the exact replay representation for camera/view restore. It stores the same raw transform pieces that classic
.vctrestore uses along with the public perspective settings needed by the host command handler.- classmethod from_exact(exact_state, *, perspective_enabled, perspective_angle)[source]¶
Create a deterministic view state from the exact transform payload.
- fieldview.data.CameraState¶
alias of
CameraPose
- class fieldview.data.SessionState[source]¶
Snapshot of the current FieldView session.
Returned by
get_session_state(). Contains dataset metadata, domain bounds, function lists, and all existing surface objects in a single call.When
data_loadedisFalse,dataset_idisNoneand all lists are empty.The returned fields are grouped roughly as follows:
Dataset identity:
data_loaded,dataset_id,data_format,reader_name,grid_file,result_file,num_gridsDomain extents:
boundsTransient state:
transient,has_solution_times,cur_time_step,total_time_stepsAvailable functions:
scalar_functions,vector_functionsExisting scene objects:
objectsWindow/layout state:
windows
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> state = fv.data.get_session_state() >>> state.dataset_id, state.num_grids >>> state.bounds.xmin, state.bounds.xmax >>> len(state.scalar_functions), len(state.objects.boundary_list)
- bounds: DatasetBounds¶
- windows: WindowList | None = None¶
- class fieldview.data.ProbeResult[source]¶
Probe result for probed scalar/iso/threshold/vector functions.
hitreports whether the probe resolved to a dataset location. WhenhitisFalse, function names may still be populated while sampled values remainNone. For IJK misses,pointmay also beNonebecause no displayed-space location was resolved.- iso: ScalarProbe¶
- scalar: ScalarProbe¶
- threshold: ScalarProbe¶
- vector: VectorProbe¶
- class fieldview.data.TransientInfo[source]¶
Transient dataset state.
Instances are returned by
Dataset.transient_info().Example:
import os import fieldview as fv uns_file = os.path.join(fv.home, "examples", "rectangular_duct", "rect_duct_010.uns") ds = fv.data.load_fvuns(uns_file, transient=True) info = ds.transient_info() print(info.time_step_values[:3])
- class fieldview.data.IntegrationResult[source]¶
Surface integration result.
Instances are returned by
surface.integrate()and the coord/isointegrate_partial_surface()methods.Common fields:
integral_typeidentifies the host-side integration mode.scalar_functionis the scalar function that was integrated.areais the surface integral ∫ f dA of the active scalar.sumis the total integral of the active scalar over the surface.averageis the area-weighted mean, equal tosum / areawhen the host provides it.
When the target surface has normals and an active vector function,
has_surface_normalsisTrueand the normal/vector flux fields such assum_nxandsum_v_dot_nmay also be populated.Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> surf = fv.vis.create_boundary(ds) >>> surf.scalar_func = "Pressure [PLOT3D]" >>> result = surf.integrate() >>> result.area, result.sum, result.average
Live Session¶
- fieldview.data.get_current()[source]¶
Return the current dataset from the live FieldView session.
If the dataset was loaded through the FieldView UI before Python attached to the session, this call reconstructs and caches a live
Datasetwrapper on demand instead of failing on a Python-registry miss.Replace-style reloads invalidate the previous wrapper for that dataset slot. Append-style reads allocate a new dataset id and leave existing wrappers valid.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> current = fv.data.get_current() >>> current.dataset_id == ds.dataset_id
- Return type:
- fieldview.data.get_session_state(include_functions=True)[source]¶
Return a snapshot of the current FieldView session.
Retrieves dataset metadata, domain bounds, function lists, existing scene objects, and window/layout state in a single dispatcher round-trip. If no dataset is loaded,
data_loadedisFalseand most fields are empty orNone.As a side effect, the current dataset is attached into the Python registry so that a subsequent
get_current()call returns the cached wrapper at no extra cost.This is the recommended first call for any automation script entering a live FieldView session with unknown state.
The returned
SessionStateis a compact snapshot with:dataset metadata and file names
full domain bounds
transient/time-step information
scalar/vector function name lists
all current graphics objects grouped in
state.objectscurrent window/layout information in
state.windows
Append-vs-replace invalidation semantics:
Replace-style reloads invalidate previously attached wrappers for the replaced dataset slot. Re-acquire wrappers after the reload completes.
Append-style reads allocate a new dataset id and leave existing wrappers valid.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> state = fv.data.get_session_state() >>> current = fv.data.get_current() # cached after get_session_state() >>> mid_x = (state.bounds.xmin + state.bounds.xmax) / 2.0 >>> len(state.scalar_functions), len(state.objects.boundary_list)
- Parameters:
include_functions (bool) – When
False, scalar/vector function lists are omitted from the response. Useful for large datasets where the script only needs object/bounds context.- Return type:
Point Probes¶
- fieldview.data.probe(point, dataset=None, *, scalar_func=None, vector_func=None, iso_func=None, threshold_func=None)[source]¶
Probe selected functions at a displayed-space point.
- Parameters:
point (object) – Displayed-space XYZ probe location as a 3-number sequence.
dataset (Dataset | None) – Target dataset. When omitted, the current dataset is used.
scalar_func (object) – Optional scalar function name to make current before probing. When omitted, the existing current scalar is used.
vector_func (object) – Optional vector function name to make current before probing. When omitted, the existing current vector is used.
iso_func (object) – Optional iso/geometric function name to make current before probing. When omitted, the existing current iso/geometric function is used.
threshold_func (object) – Optional threshold function name to make current before probing. When omitted, the existing current threshold function is used.
- Returns:
ProbeResult with the probed location, resolved grid metadata, and sampled scalar/vector/iso/threshold values.
- Return type:
Notes
Any provided function override updates FieldView’s current function selection before probing and leaves that selection changed after the call returns. If an override is invalid or cannot be selected, the previous current-function state is preserved.
Example:
import os import fieldview as fv data_dir = os.path.join(fv.home, "examples", "f18") ds = fv.data.load_plot3d( os.path.join(data_dir, "f18i9b_g_bin"), os.path.join(data_dir, "f18i9b_q_bin"), ) result = fv.data.probe( (0.5, 0.5, 0.5), dataset=ds, scalar_func="Pressure", vector_func="Velocity", ) print(result.scalar) print(result.vector)
- fieldview.data.probe_ijk(ijk_point, grid_index=None, *, grid=None, dataset=None, scalar_func=None, vector_func=None, iso_func=None, threshold_func=None)[source]¶
Probe selected functions at a structured-grid IJK point.
- Parameters:
ijk_point (object) – Structured-grid IJK probe location as a 3-integer sequence.
grid_index (int | None) – Optional 0-based actual-grid index.
grid (int | None) – Optional 1-based grid number, matching the convention used by other public APIs. Provide either
gridorgrid_index. If both are provided, they must refer to the same grid.dataset (Dataset | None) – Target dataset. When omitted, the current dataset is used.
scalar_func (object) – Optional scalar function name to make current before probing. When omitted, the existing current scalar is used.
vector_func (object) – Optional vector function name to make current before probing. When omitted, the existing current vector is used.
iso_func (object) – Optional iso/geometric function name to make current before probing. When omitted, the existing current iso/geometric function is used.
threshold_func (object) – Optional threshold function name to make current before probing. When omitted, the existing current threshold function is used.
- Returns:
ProbeResult with the resolved displayed-space point, grid metadata, and sampled scalar/vector/iso/threshold values.
- Return type:
Notes
Any provided function override updates FieldView’s current function selection before probing and leaves that selection changed after the call returns. If an override is invalid or cannot be selected, the previous current-function state is preserved.
Example:
import os import fieldview as fv data_dir = os.path.join(fv.home, "examples", "f18") ds = fv.data.load_plot3d( os.path.join(data_dir, "f18i9b_g_bin"), os.path.join(data_dir, "f18i9b_q_bin"), ) result = fv.data.probe_ijk((2, 3, 4), grid=1, dataset=ds, scalar_func="Pressure") print(result.point) print(result.scalar)
Formula¶
fieldview.formula¶
Formula creation and builder helpers for FieldView.
The fieldview.formula namespace exposes a thin wrapper over FieldView’s
native formula system. Use it to define derived scalar or vector quantities
from existing dataset functions, constants, and other formulas.
Formulas can be authored either as raw FieldView formula strings or through a lightweight Python builder:
>>> import os
>>> import fieldview as fv
>>> data_dir = os.path.join(fv.home, "examples", "f18")
>>> ds1 = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> ds2 = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> qcrit = fv.formula.create(
... "Qcrit",
... 'Qcriterion("Velocity Vectors [PLOT3D]")',
... )
>>> vel_mag = fv.formula.create(
... "Velocity Magnitude",
... fv.formula.mag("Velocity Vectors [PLOT3D]"),
... )
>>> delta_p = fv.formula.create(
... "Delta Pressure",
... fv.formula.dataset_quantity(2, "Pressure [PLOT3D]")
... - fv.formula.dataset_quantity(1, "Pressure [PLOT3D]"),
... )
Builder expressions support normal arithmetic operators plus helper functions
such as mag(), grad(), dot(), and qcriterion(). Bare
strings are only accepted as top-level formula text passed to create()
and as helper arguments such as mag("Velocity Vectors [PLOT3D]");
arithmetic builder expressions must use quantity() or
dataset_quantity() explicitly.
Formula Creation¶
- fieldview.formula.create(name, expr)[source]¶
Create a named FieldView formula.
- Parameters:
name (str) – Unique formula name. The value must be non-empty and must not contain double quotes.
expr (object) – Either a raw FieldView formula string or a builder expression composed from
quantity(),dataset_quantity(), helper operations, numeric literals, and previously createdFormulaobjects.
- Returns:
Handle to the created host-side formula.
- Return type:
- Raises:
InvalidArgumentError – If
nameorexpris invalid.CoreError – If the FieldView host rejects the formula.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> pressure_half = fv.formula.create( ... "Pressure Half", ... fv.formula.quantity("Pressure [PLOT3D]") / 2.0, ... )
- class fieldview.formula.Formula[source]¶
Reference to a created FieldView formula.
Instances are returned by
create(). AFormulacan be used inside later builder expressions, where it renders as a reference to the created formula name.Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> vel_mag = fv.formula.create( ... "Velocity Magnitude", ... fv.formula.mag("Velocity Vectors [PLOT3D]"), ... ) >>> mach_like = fv.formula.create("Mach Like", vel_mag / 340.0)
- delete()[source]¶
Delete the formula through the host and invalidate this handle.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Temporary Pressure Half", ... fv.formula.quantity("Pressure [PLOT3D]") / 2.0, ... ) >>> formula.delete()
- Return type:
None
- property name: str¶
Return the FieldView formula name.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Pressure Half", ... fv.formula.quantity("Pressure [PLOT3D]") / 2.0, ... ) >>> formula.name 'Pressure Half'
Builder References¶
- fieldview.formula.quantity(name)[source]¶
Return a builder expression referencing a quantity or formula by name.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Pressure Half", ... fv.formula.quantity("Pressure [PLOT3D]") / 2.0, ... )
- Parameters:
name (str)
- Return type:
_FormulaExpr
- fieldview.formula.dataset_quantity(dataset, name)[source]¶
Return a scene-relative dataset-comparison quantity reference.
- Parameters:
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds1 = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ds2 = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Delta Pressure", ... fv.formula.dataset_quantity(2, "Pressure [PLOT3D]") ... - fv.formula.dataset_quantity(1, "Pressure [PLOT3D]"), ... )
Builder Operations¶
- fieldview.formula.mag(expr)[source]¶
Return the magnitude of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to evaluate.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Magnitude", ... fv.formula.mag("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.grad(expr)[source]¶
Return the gradient of a scalar expression.
- Parameters:
expr (object) – Scalar quantity or expression to differentiate.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Pressure Gradient", ... fv.formula.grad("Pressure [PLOT3D]"), ... )
- fieldview.formula.curl(expr)[source]¶
Return the curl of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to differentiate.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Curl", ... fv.formula.curl("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.nrmlz(expr)[source]¶
Return the normalized form of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to normalize.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Direction", ... fv.formula.nrmlz("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.exp(expr)[source]¶
Return
EXP(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Exp Pressure", ... fv.formula.exp(fv.formula.quantity("Pressure [PLOT3D]") / 1000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.ln(expr)[source]¶
Return the natural logarithm of a scalar expression.
- Parameters:
expr (object) – Scalar quantity or expression to transform.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Ln Pressure", ... fv.formula.ln(fv.formula.quantity("Pressure [PLOT3D]") + 1.0), ... )
- fieldview.formula.log(expr)[source]¶
Return the base-10 logarithm of a scalar expression.
- Parameters:
expr (object) – Scalar quantity or expression to transform.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Log Pressure", ... fv.formula.log(fv.formula.quantity("Pressure [PLOT3D]") + 1.0), ... )
- fieldview.formula.sin(expr)[source]¶
Return
SIN(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Sin Pressure", ... fv.formula.sin(fv.formula.quantity("Pressure [PLOT3D]") / 1000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.cos(expr)[source]¶
Return
COS(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Cos Pressure", ... fv.formula.cos(fv.formula.quantity("Pressure [PLOT3D]") / 1000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.tan(expr)[source]¶
Return
TAN(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Tan Pressure", ... fv.formula.tan(fv.formula.quantity("Pressure [PLOT3D]") / 1000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.asin(expr)[source]¶
Return
ASIN(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Asin Half Pressure", ... fv.formula.asin(fv.formula.quantity("Pressure [PLOT3D]") / 200000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.acos(expr)[source]¶
Return
ACOS(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Acos Half Pressure", ... fv.formula.acos(fv.formula.quantity("Pressure [PLOT3D]") / 200000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.atan(expr)[source]¶
Return
ATAN(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Atan Pressure", ... fv.formula.atan(fv.formula.quantity("Pressure [PLOT3D]") / 1000.0), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.atan2(lhs, rhs)[source]¶
Return
ATAN2(lhs, rhs).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Pressure Angle", ... fv.formula.atan2( ... fv.formula.quantity("Pressure [PLOT3D]"), ... fv.formula.quantity("Pressure [PLOT3D]") + 1.0, ... ), ... )
- fieldview.formula.sqrt(expr)[source]¶
Return
SQRT(expr).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Sqrt Pressure", ... fv.formula.sqrt(fv.formula.quantity("Pressure [PLOT3D]")), ... )
- Parameters:
expr (object)
- Return type:
_FormulaExpr
- fieldview.formula.abs(expr)[source]¶
Return the absolute value of a scalar expression.
- Parameters:
expr (object) – Scalar quantity or expression to transform.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Absolute Pressure Offset", ... fv.formula.abs(fv.formula.quantity("Pressure [PLOT3D]") - 100000.0), ... )
- fieldview.formula.div(expr)[source]¶
Return the divergence of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to differentiate.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Divergence", ... fv.formula.div("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.vecx(expr)[source]¶
Return the X component of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to read from.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity X", ... fv.formula.vecx("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.vecy(expr)[source]¶
Return the Y component of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to read from.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Y", ... fv.formula.vecy("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.vecz(expr)[source]¶
Return the Z component of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to read from.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Z", ... fv.formula.vecz("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.dot(lhs, rhs)[source]¶
Return the FieldView infix
DOToperation between two vectors.- Parameters:
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity X Projection", ... fv.formula.dot("Velocity Vectors [PLOT3D]", fv.formula.unit_x), ... )
- fieldview.formula.cross(lhs, rhs)[source]¶
Return the FieldView infix
CROSSoperation between two vectors.- Parameters:
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Velocity Cross Unit X", ... fv.formula.cross("Velocity Vectors [PLOT3D]", fv.formula.unit_x), ... )
- fieldview.formula.qcriterion(expr)[source]¶
Return the Q-criterion of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to evaluate.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Q Criterion", ... fv.formula.qcriterion("Velocity Vectors [PLOT3D]"), ... )
- fieldview.formula.lambda2criterion(expr)[source]¶
Return the Lambda2 criterion of a vector expression.
- Parameters:
expr (object) – Vector quantity or expression to evaluate.
- Return type:
_FormulaExpr
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> formula = fv.formula.create( ... "Lambda2 Criterion", ... fv.formula.lambda2criterion("Velocity Vectors [PLOT3D]"), ... )
Constants¶
- fieldview.formula.pi¶
Formula constant for
PIwith value3.141592653589793.
- fieldview.formula.e¶
Euler’s number with value
2.718281828459045, rendered as a numeric literal for host compatibility.
- fieldview.formula.unit_x¶
Formula vector constant for
UNITXwith value(1, 0, 0).
- fieldview.formula.unit_y¶
Formula vector constant for
UNITYwith value(0, 1, 0).
- fieldview.formula.unit_z¶
Formula vector constant for
UNITZwith value(0, 0, 1).
- fieldview.formula.alpha¶
Dataset-dependent formula constant for
ALPHA.
- fieldview.formula.fsmach¶
Dataset-dependent formula constant for
FSMACH.
- fieldview.formula.re¶
Dataset-dependent formula constant for
RE.
- fieldview.formula.time¶
Dataset-dependent formula constant for
TIME.
- fieldview.formula.gamma¶
Dataset-dependent formula constant for
GAMMA.
- fieldview.formula.r¶
Dataset-dependent formula constant for
R.
Visualization¶
fieldview.vis¶
Visualization object creation and surface wrappers for FieldView.
The fieldview.vis namespace is the main entry point for creating and
managing scene objects such as coordinate surfaces, computational surfaces, iso
surfaces, boundary surfaces, streamlines, particle paths, vortex cores, and
annotation objects.
The create_* functions construct new host-side objects and return the
corresponding Python wrappers. Those wrappers expose high-level properties for
appearance, function selection, geometry, clipping, integration, and
object-specific operations without requiring direct dispatcher calls.
Example usage:
>>> import os
>>> import fieldview as fv
>>> data_dir = os.path.join(fv.home, "examples", "f18")
>>> ds = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> cs = fv.vis.create_coord(ds)
Object Creation Functions¶
vis.create_coord¶
- fieldview.vis.create_coord(dataset=None, *, plane=None, x_plane=None, y_plane=None, z_plane=None, r_plane=None, t_plane=None, coloring=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, ruled_grid=None, scalar_minmax=None, colormap=None, legend=None, sweep_steps=None)[source]¶
Create a coordinate surface for the given dataset.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new coord surface to. When omitted, the current dataset is used.
x_plane (RangedValue | None) – Optional X-plane ranged-value controller.
y_plane (RangedValue | None) – Optional Y-plane ranged-value controller.
z_plane (RangedValue | None) – Optional Z-plane ranged-value controller.
r_plane (RangedValue | None) – Optional R-plane ranged-value controller.
t_plane (RangedValue | None) – Optional T-plane ranged-value controller.
coloring (Coloring | str | None) – Coloring mode for the coord surface.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
visibility (bool | None) – Whether the new coord surface is initially visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
ruled_grid (RuledGridOptions | None) – Ruled-grid display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
sweep_steps (int | None) – Sweep step count.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> x_plane = fv.RangedValue(range=fv.Range(min=1.0, max=50.0), value=10.0) >>> cs = fv.vis.create_coord(ds, plane=fv.constant.Plane.X, x_plane=x_plane)
vis.create_comp¶
- fieldview.vis.create_comp(dataset=None, *, grid=None, grid_index=None, plane=None, i_plane=None, j_plane=None, k_plane=None, coloring=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, scalar_minmax=None, colormap=None, legend=None, I_inc=None, J_inc=None, K_inc=None)[source]¶
Create a computational surface for the given dataset.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new comp surface to. When omitted, the current dataset is used.
grid (int | None) – Optional 1-based dataset grid number.
grid_index (int | None) – Optional 0-based dataset grid index.
i_plane (RangedValue | None) – Optional I-plane ranged-value controller.
j_plane (RangedValue | None) – Optional J-plane ranged-value controller.
k_plane (RangedValue | None) – Optional K-plane ranged-value controller.
coloring (Coloring | str | None) – Coloring mode for the comp surface.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
visibility (bool | None) – Whether the new comp surface is initially visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
I_inc (int | None) – Sweep increment for the I axis.
J_inc (int | None) – Sweep increment for the J axis.
K_inc (int | None) – Sweep increment for the K axis.
- Return type:
gridandgrid_indexare interchangeable aliases for selecting the target dataset grid.gridis 1-based to match the UI, whilegrid_indexis 0-based for Python-style indexing. When both are provided, they must refer to the same grid. If neither is provided, the comp surface is created on grid 1.Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> k_plane = fv.RangedValue(range=fv.Range(min=1, max=30), value=10) >>> cs = fv.vis.create_comp(ds, grid_index=0, plane=fv.constant.Plane.K, k_plane=k_plane)
vis.create_iso¶
- fieldview.vis.create_iso(dataset=None, *, iso_func, iso_value=None, cutting_plane=None, coloring=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, unrolled=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, scalar_minmax=None, colormap=None, legend=None, sweep_steps=None)[source]¶
Create an iso surface for the given dataset.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new iso surface to. When omitted, the current dataset is used.
iso_func (str | CuttingPlane | dict[str, object]) – Iso function name, cutting plane, or cutting-plane payload dict.
iso_value (RangedValue | None) – Optional iso-value ranged-value controller.
cutting_plane (CuttingPlane | dict[str, object] | None) – Optional cutting-plane override.
coloring (Coloring | str | None) – Coloring mode for the iso surface.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
unrolled (bool | None) – Whether unrolled display is enabled.
visibility (bool | None) – Whether the new iso surface is initially visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
sweep_steps (int | None) – Sweep step count.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso_value = fv.RangedValue(value=0.8) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)", iso_value=iso_value)
vis.create_boundary¶
- fieldview.vis.create_boundary(dataset=None, *, x_clip=None, y_clip=None, z_clip=None, r_clip=None, t_clip=None, coloring=None, material=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, scalar_minmax=None, colormap=None, legend=None, types=None)[source]¶
Create a boundary surface for a dataset.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new boundary surface to. When omitted, the current dataset is used.
x_clip (Range | dict[str, object] | None) – Optional X clipping range.
y_clip (Range | dict[str, object] | None) – Optional Y clipping range.
z_clip (Range | dict[str, object] | None) – Optional Z clipping range.
r_clip (Range | dict[str, object] | None) – Optional R clipping range.
t_clip (Range | dict[str, object] | None) – Optional T clipping range.
coloring (Coloring | str | None) – Coloring mode for the boundary surface.
material (Material | str | None) – Material selection used when material coloring is active.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
visibility (bool | None) – Whether the new boundary surface is initially visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
types (BoundaryTypeSelection | str | list[str] | tuple[str, ...] | None) – Boundary-type selection or explicit boundary-type names.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.coloring = fv.constant.Coloring.SCALAR >>> bnd.scalar_func = ds.scalar_functions[0] >>> bnd.colormap.name = fv.constant.ColormapName.SPECTRUM
vis.create_surface_flows¶
- fieldview.vis.create_surface_flows(dataset=None, *, mode, visibility=None, line_type=None, geometric_color=None, coloring=None, scalar_func=None, scalar_path_variable=None, vector_func=None, direction=None, time_limit_enabled=None, time_limit=<object object>, seeding=None, seed_file=<object object>, offset_distance=None, step=None, colormap=None, legend=None, calculate=False)[source]¶
Create a surface restricted flow path object.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new feature object to. When omitted, the current dataset is used.
mode (SurfaceFlowMode | str) – Surface-flow extraction mode.
visibility (bool | None) – Whether the object is initially visible.
line_type (LineType | str | None) – Line style used for the extracted paths.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
coloring (Coloring | str | None) – Coloring mode for the extracted paths.
scalar_func (str | None) – Scalar function name used for scalar coloring.
scalar_path_variable (str | None) – Path-variable name used for scalar coloring.
vector_func (str | None) – Vector function name used for path calculation.
direction (CalculationDirection | str | None) – Integration direction.
time_limit_enabled (bool | None) – Whether the time-limit field is enabled.
time_limit (float | None | object) – Optional tracing time limit.
seeding (SurfaceFlowSeeding | str | None) – Seeding mode.
seed_file (str | PathLike[str] | None | object) – Optional seed-file path.
offset_distance (float | None) – Surface offset distance.
step (int | None) – Integration step count.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
calculate (bool) – When
True, run the calculation after creation.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sf = fv.vis.create_surface_flows( ... ds, ... mode=fv.constant.SurfaceFlowMode.NO_SLIP, ... vector_func="Velocity Vectors [PLOT3D]", ... direction=fv.constant.CalculationDirection.BOTH, ... ) >>> sf.calculate()
vis.create_separation_lines¶
- fieldview.vis.create_separation_lines(dataset=None, *, visibility=None, line_type=None, geometric_color=None, coloring=None, colormap=None, legend=None)[source]¶
Create a separation-line feature-extraction object.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new feature object to. When omitted, the current dataset is used.
visibility (bool | None) – Whether the object is initially visible.
line_type (LineType | str | None) – Line style used for the extracted lines.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
coloring (Coloring | str | None) – Coloring mode for the extracted lines.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sep = fv.vis.create_separation_lines( ... ds, ... coloring=fv.constant.Coloring.SCALAR, ... )
vis.create_reattachment_lines¶
- fieldview.vis.create_reattachment_lines(dataset=None, *, visibility=None, line_type=None, geometric_color=None, coloring=None, colormap=None, legend=None)[source]¶
Create a reattachment-line feature-extraction object.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new feature object to. When omitted, the current dataset is used.
visibility (bool | None) – Whether the object is initially visible.
line_type (LineType | str | None) – Line style used for the extracted lines.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
coloring (Coloring | str | None) – Coloring mode for the extracted lines.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> reatt = fv.vis.create_reattachment_lines( ... ds, ... line_type=fv.constant.LineType.THICK, ... )
vis.create_streamlines¶
- fieldview.vis.create_streamlines(dataset=None, *, coloring=None, geometric_color=None, line_type=None, display_type=None, sphere_scale=None, ribbon_width=None, transparency=None, visibility=None, scalar_func=None, vector_func=None, animate=None, animate_direction=None, animate_divs=None, show_seeds=None, seed_coord=None, direction=None, step=None, time_limit=<object object>, release_interval=None, duration=None, colormap=None, legend=None, defer_apply=False, calculate=False)[source]¶
Create a streamlines surface for the given dataset.
vector_func is required and can be any dataset vector function name. When provided, release_interval and duration must satisfy release_interval > 0 and 0 < duration < release_interval.
- Parameters:
dataset (Dataset | None) – Dataset to attach the new streamlines surface to. When omitted, the current dataset is used.
coloring (Coloring | str | None) – Coloring mode for the streamline geometry.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (PathsDisplayType | str | None) – Path display type such as complete, filament, or ribbon.
sphere_scale (float | None) – Sphere or arrow size scale.
ribbon_width (int | None) – Ribbon width used by ribbon display modes.
transparency (float | None) – Transparency amount for the streamline geometry.
visibility (bool | None) – Whether the new streamline object is initially visible.
scalar_func (str | None) – Optional scalar function name used for scalar coloring.
vector_func (str | None) – Required vector function name used for streamline integration.
animate (bool | None) – Whether streamline animation is enabled.
animate_direction (AnimationDirection | str | None) – Direction used for streamline animation.
animate_divs (int | None) – Number of animation divisions.
show_seeds (bool | None) – Whether seed markers are shown.
seed_coord (StreamlinesSeedCoord | str | None) – Seed coordinate system to use for subsequent seed operations.
direction (CalculationDirection | str | None) – Integration direction used for calculation.
step (int | None) – Integration step size.
time_limit (float | None | object) – Optional tracing time limit. Pass
Noneto clear the current limit.release_interval (int | None) – Optional streakline release interval.
duration (int | None) – Optional streakline duration.
colormap (Colormap | dict[str, object] | None) – Optional colormap settings as a
Colormapor payload dict.legend (Legend | dict[str, object] | None) – Optional legend settings as a
Legendor payload dict.defer_apply (bool) – When
True, create the object without forcing an immediate apply/calculation step.calculate (bool) – When
True, run streamline calculation after creation.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines( ... ds, ... vector_func=ds.vector_functions[0], ... coloring=fv.constant.Coloring.SCALAR, ... scalar_func=ds.scalar_functions[0], ... seed_coord=fv.constant.StreamlinesSeedCoord.IJK_REAL, ... ) >>> sl.add_seeds([(1.0, 1.0, 1.0), (40.0, 20.0, 10.0)], grid=1) >>> sl.calculate()
vis.create_particle_paths¶
- fieldview.vis.create_particle_paths(dataset=None, *, filename, format='fv particle path', coloring=None, geometric_color=None, line_type=None, display_type=None, sphere_scale=None, transparency=None, visibility=None, scalar_func=None, animate=None, animate_direction=None, animate_divs=None, subset_inc=None, select_by_initial_value=None, select_by_initial_value_variable=None, select_by_initial_value_min=None, select_by_initial_value_max=None, select_by_value_on_path=None, select_by_value_on_path_variable=None, select_by_value_on_path_min=None, select_by_value_on_path_max=None, select_by_tags=None, tags=None, colormap=None, legend=None, defer_apply=False)[source]¶
Import and create a particle-paths surface.
filename is required and must point to an existing particle-path file supported by the selected format. Only one particle-paths object is supported per dataset. Delete the existing particle paths before creating a new one on the same dataset. A second create on the same dataset raises
InvalidArgumentError.- Parameters:
dataset (Dataset | None) – Dataset to attach the new particle-paths object to. When omitted, the current dataset is used.
filename (str | PathLike[str]) – Particle-path file to import.
format (str) – Particle-path file format name.
coloring (Coloring | str | None) – Coloring mode for the particle paths.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
line_type (LineType | str | None) – Line style used for the particle paths.
display_type (PathsDisplayType | str | None) – Path display type such as complete or filament.
sphere_scale (float | None) – Sphere or marker size scale.
transparency (float | None) – Particle-path transparency amount.
visibility (bool | None) – Whether the imported particle paths are initially visible.
scalar_func (str | None) – Scalar function name used for scalar coloring.
animate (bool | None) – Whether particle-path animation is enabled.
animate_direction (AnimationDirection | str | None) – Direction used for animation.
animate_divs (int | None) – Number of animation divisions.
subset_inc (int | None) – Subsampling increment for displayed paths.
select_by_initial_value (bool | None) – Whether initial-value filtering is enabled.
select_by_initial_value_variable (str | None) – Variable name used for initial-value filtering.
select_by_initial_value_min (float | None) – Initial-value filter minimum.
select_by_initial_value_max (float | None) – Initial-value filter maximum.
select_by_value_on_path (bool | None) – Whether value-on-path filtering is enabled.
select_by_value_on_path_variable (str | None) – Variable name used for value-on-path filtering.
select_by_value_on_path_min (float | None) – Value-on-path filter minimum.
select_by_value_on_path_max (float | None) – Value-on-path filter maximum.
select_by_tags (bool | None) – Whether tag-based filtering is enabled.
tags (str | Sequence[str] | None) – Tag names to select when tag-based filtering is used.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
defer_apply (bool) – When
True, defer the final apply step after creation.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths( ... ds, ... filename="/path/to/particle_paths.fvp", ... coloring=fv.constant.Coloring.SCALAR, ... scalar_func="Duration", ... )
vis.create_plot2d¶
- fieldview.vis.create_plot2d(dataset=None, *, left_axis_func=None, right_axis_func=None, show_right_axis=None, show_path=None, show_plot=None, background=None, horizontal_axis_mode=None, path_style=None, sampling=None, annotation=None, options=None)[source]¶
Create a 2D plot for the current or supplied dataset.
Parameters¶
- dataset:
Dataset to attach to the new plot. When omitted, the current dataset is used.
- left_axis_func:
Scalar function name for the left axis. When omitted, FieldView keeps its default left-axis function.
- right_axis_func:
Scalar function name for the right axis. Use None to leave the right axis disabled.
- show_right_axis, show_path, show_plot, background:
Initial display flags for the new plot.
- horizontal_axis_mode:
Horizontal axis quantity such as distance, x, y, or z.
- path_style:
Plot style for rendered path data.
- sampling, annotation, options:
Nested dictionaries or typed payload objects from
fieldview.utilsmatching the corresponding helper objects onPlot2D.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> left_func = ds.scalar_functions[0] >>> plot = fv.vis.create_plot2d( ... ds, ... left_axis_func=left_func, ... show_plot=True, ... show_path=True, ... )
- Parameters:
dataset (Dataset | None)
left_axis_func (str | None)
right_axis_func (str | None)
show_right_axis (bool | None)
show_path (bool | None)
show_plot (bool | None)
background (bool | None)
horizontal_axis_mode (Plot2DHorizontalAxis | str | None)
path_style (Plot2DPathStyle | str | None)
sampling (Plot2DSamplingOptions | Mapping[str, object] | None)
annotation (Plot2DAnnotationOptions | Mapping[str, object] | None)
- Return type:
vis.create_vortex_cores¶
- fieldview.vis.create_vortex_cores(dataset=None, *, method, vector_func, visibility=None, line_type=None, geometric_color=None, min_vortex_strength_enabled=None, min_vortex_strength=None, coloring=None, scalar_func=None, scalar_path_variable=None, colormap=None, legend=None)[source]¶
Create a vortex-cores surface.
method and vector_func are required. method must be
"Vorticity Alignment"or"Eigenmode Analysis".- Parameters:
dataset (Dataset | None) – Dataset to attach the new feature object to. When omitted, the current dataset is used.
method (VortexCoreMethod | str) – Vortex-core extraction method.
vector_func (str) – Vector variable name used for the extraction.
visibility (bool | None) – Whether the object is initially visible.
line_type (LineType | str | None) – Line style used for the extracted cores.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
min_vortex_strength_enabled (bool | None) – Whether the minimum-vortex-strength filter is enabled.
min_vortex_strength (float | None) – Minimum vortex-strength filter value.
coloring (Coloring | str | None) – Coloring mode for the extracted cores.
scalar_func (str | None) – Scalar function name used for scalar coloring.
scalar_path_variable (str | None) – Path-variable name used for scalar coloring.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> vc = fv.vis.create_vortex_cores( ... ds, ... method="Vorticity Alignment", ... vector_func="Vorticity Vectors [PLOT3D]", ... coloring=fv.constant.Coloring.SCALAR, ... scalar_path_variable="Vortex Strength", ... )
vis.create_annotation_text¶
- fieldview.vis.create_annotation_text(text, *, position=None, visibility=None, color=None, font=None, font_size=None, align=None, direction=None)[source]¶
Create a screen-space text annotation.
- Parameters:
text (str)
position (object)
visibility (bool | None)
color (GeometricColor | int | None)
font_size (int | None)
align (AnnotationTextAlign | str | None)
direction (AnnotationTextDirection | str | None)
- Return type:
vis.create_annotation_arrow¶
Coordinate Surface Class¶
- class fieldview.vis.Coord[source]¶
Coordinate surface wrapper.
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> >>> cs = fv.vis.create_coord(ds) >>> cs.plane = fv.constant.Plane.X >>> cs.x_plane.value = 2.0 >>> cs.coloring = fv.constant.Coloring.SCALAR >>> cs.transparency = 0.5 >>> cs.colormap.name = fv.constant.ColormapName.SPECTRUM
- property contours: ContourColoring¶
Contour color mode.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.contours = fv.constant.ContourColoring.BLACK
- Type:
ContourColoring
- copy()[source]¶
Return a new coord surface with the same settings.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> copy_obj = cs.copy()
- Return type:
- delete()[source]¶
Delete this coord surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.delete()
- Return type:
None
- property display_type: DisplayType¶
Surface display type.
- Type:
DisplayType
- export(filename, format='txt')[source]¶
Export this coordinate surface to a text/MAT/CSV file.
- Parameters:
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.export("/tmp/coord_surface.csv", format="csv")
- property geometric_color: GeometricColor¶
Geometric color used when not scalar-colored.
- Type:
GeometricColor
- integrate()¶
Integrate the current scalar function over this surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> surf = fv.vis.create_boundary(ds) >>> surf.scalar_func = ds.scalar_functions[0] >>> result = surf.integrate() >>> result.surface 'boundary_surf'
- Return type:
- integrate_partial_surface(point, tolerance=None)[source]¶
Integrate the connected partial region containing point.
Returns
Nonewhen point does not isolate a partial region on the current coordinate surface.- Parameters:
- Return type:
IntegrationResult | None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> probe = fv.data.probe_ijk((2, 3, 4), grid=1, dataset=ds) >>> cs = fv.vis.create_coord(ds) >>> cs.scalar_func = probe.scalar.func >>> cs.plane = fv.constant.Plane.X >>> cs.x_plane.value = probe.point.x >>> result = cs.integrate_partial_surface(tuple(probe.point))
- modify(*, plane=None, x_plane=None, y_plane=None, z_plane=None, r_plane=None, t_plane=None, coloring=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, ruled_grid=None, scalar_minmax=None, colormap=None, legend=None, sweep_steps=None)[source]¶
Modify multiple coord properties atomically.
- Parameters:
x_plane (RangedValue | None) – Optional X-plane ranged-value controller.
y_plane (RangedValue | None) – Optional Y-plane ranged-value controller.
z_plane (RangedValue | None) – Optional Z-plane ranged-value controller.
r_plane (RangedValue | None) – Optional R-plane ranged-value controller.
t_plane (RangedValue | None) – Optional T-plane ranged-value controller.
coloring (Coloring | str | None) – Coloring mode for the coord surface.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
visibility (bool | None) – Whether the coord surface is visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
ruled_grid (RuledGridOptions | None) – Ruled-grid display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
sweep_steps (int | None) – Sweep step count.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.modify(coloring=fv.constant.Coloring.SCALAR, transparency=0.5)
- property plane: Plane¶
Active plane (x/y/z/r/t).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.plane = fv.constant.Plane.Y
- Type:
Plane
- property r_plane: RangedValue¶
R plane range controller (cylindrical datasets).
Example usage:
>>> import os >>> import fieldview as fv >>> dataset_path = os.path.join( ... fv.home, "examples", "heat_exchanger", "cocurrent.uns" ... ) >>> ds = fv.data.load_fvuns(dataset_path) >>> cs = fv.vis.create_coord(ds, plane=fv.constant.Plane.R) >>> cs.r_plane.value = 1.0
- Type:
RangedValue
- property ruled_grid: RuledGridOptions¶
Ruled grid options.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.ruled_grid.show = True >>> cs.ruled_grid.color = fv.constant.GeometricColor.RED
- Type:
RuledGridOptions
- property scalar_func: str | None¶
Selected scalar function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.scalar_func = "Density (Q1)"
- Type:
str | None
- property scalar_minmax: ScalarMinMax¶
Scalar min/max options.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.scalar_minmax.show = True >>> cs.scalar_minmax.max.text = "Max: %%SCALAR_MAX"
- Type:
ScalarMinMax
- property show_mesh: bool¶
Mesh overlay visibility.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.show_mesh = True
- Type:
bool
- sweep(cycles=1, output_file=None, direction=None)[source]¶
Sweep the coordinate surface and optionally write frames to a file.
- Parameters:
cycles (int) – Number of sweep cycles to run.
output_file (str | PathLike[str] | None) – Optional movie or frame output path.
direction (SweepDirection | None) – Optional sweep direction mode.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.sweep(2, "/tmp/out.mp4", fv.constant.SweepDirection.BOUNCE)
- property sweep_steps: int¶
Sweep step count.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.sweep_steps = 50
- Type:
int
- property t_plane: RangedValue¶
T plane range controller (cylindrical datasets).
Example usage:
>>> import os >>> import fieldview as fv >>> dataset_path = os.path.join( ... fv.home, "examples", "heat_exchanger", "cocurrent.uns" ... ) >>> ds = fv.data.load_fvuns(dataset_path) >>> cs = fv.vis.create_coord(ds, plane=fv.constant.Plane.T) >>> cs.t_plane.value = 15.0
- Type:
RangedValue
- property threshold: bool¶
Threshold enabled state.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.threshold = True
- Type:
bool
- property threshold_func: str | None¶
Selected threshold function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.threshold_func = "Density (Q1)"
- Type:
str | None
- property threshold_range: Range¶
Threshold range.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.threshold_range = fv.Range(0.5, 1.0)
- Type:
Range
- property transparency: float¶
Surface transparency (0.0-1.0).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.transparency = 0.5
- Type:
float
- property vector_func: str | None¶
Selected vector function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.vector_func = "Momentum Vectors [PLOT3D]"
- Type:
str | None
- property vector_options: VectorOptions¶
Vector display options.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.vector_options.head_type = fv.constant.VectorHeadType.HEAD3D >>> cs.vector_options.shaft_type = fv.constant.VectorShaftType.CURVED
- Type:
VectorOptions
- property x_plane: RangedValue¶
X plane range controller.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.x_plane.value = 2.5 >>> cs.x_plane.range.min = -1.0 >>> cs.x_plane.range.max = 3.0
- Type:
RangedValue
- property y_plane: RangedValue¶
Y plane range controller.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.y_plane.value = 0.0
- Type:
RangedValue
- property z_plane: RangedValue¶
Z plane range controller.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_coord(ds) >>> cs.z_plane.value = 1.0
- Type:
RangedValue
- class fieldview.utils.RuledGridOptions[source]¶
Ruled grid options.
- color: GeometricColor | int | None = None¶
Geometric color (1-10).
- horizontal_axis: RuledGridAxisOptions | None = None¶
Horizontal axis options.
- vertical_axis: RuledGridAxisOptions | None = None¶
Vertical axis options.
Computational Surface Class¶
- class fieldview.vis.Comp[source]¶
Computational surface wrapper.
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_comp(ds) >>> cs.plane = fv.constant.Plane.I >>> cs.i_plane.value = 10 >>> cs.coloring = fv.constant.Coloring.SCALAR >>> cs.colormap.name = fv.constant.ColormapName.SPECTRUM
- property contours: ContourColoring¶
Contour line coloring.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.contours = fv.constant.ContourColoring.SCALAR
- Type:
ContourColoring
- copy()[source]¶
Return a new comp surface with the same settings.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_comp(ds) >>> copy_obj = cs.copy()
- Return type:
- delete()[source]¶
Delete the comp surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_comp(ds) >>> cs.delete()
- Return type:
None
- property display_type: DisplayType¶
Surface display type.
- Type:
DisplayType
- export(filename, format='txt')[source]¶
Export this comp surface to a text file.
- Parameters:
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_comp(ds) >>> cs.export("/tmp/comp_surface.txt", format="txt")
- property geometric_color: GeometricColor¶
Geometric color used when not scalar-colored.
- Type:
GeometricColor
- property grid: int¶
Dataset-relative grid number (1-based).
This is the UI-oriented alias for
grid_index. The two properties refer to the same selected dataset grid.Example usage:
>>> cs = fv.vis.create_comp(ds, grid=1) >>> cs.grid = 2
- Type:
int
- property grid_index: int¶
Dataset-relative grid index (0-based).
This is the Python-oriented alias for
grid. The two properties refer to the same selected dataset grid.Example usage:
>>> cs = fv.vis.create_comp(ds, grid_index=0) >>> cs.grid_index = 1
- Type:
int
- property i_plane: RangedValue¶
I plane range controller.
Example usage:
>>> cs = fv.vis.create_comp(ds, plane=fv.constant.Plane.I) >>> cs.i_plane.value = 10
- Type:
RangedValue
- integrate()¶
Integrate the current scalar function over this surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> surf = fv.vis.create_boundary(ds) >>> surf.scalar_func = ds.scalar_functions[0] >>> result = surf.integrate() >>> result.surface 'boundary_surf'
- Return type:
- property j_plane: RangedValue¶
J plane range controller.
Example usage:
>>> cs = fv.vis.create_comp(ds, plane=fv.constant.Plane.J) >>> cs.j_plane.value = 8
- Type:
RangedValue
- property k_plane: RangedValue¶
K plane range controller.
Example usage:
>>> cs = fv.vis.create_comp(ds, plane=fv.constant.Plane.K) >>> cs.k_plane.value = 12
- Type:
RangedValue
- modify(*, grid=None, grid_index=None, plane=None, i_plane=None, j_plane=None, k_plane=None, coloring=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, scalar_minmax=None, colormap=None, legend=None, I_inc=None, J_inc=None, K_inc=None)[source]¶
Modify multiple comp properties atomically.
gridandgrid_indexare interchangeable aliases for selecting the target dataset grid.gridis 1-based to match the UI, whilegrid_indexis 0-based for Python-style indexing. When both are provided, they must refer to the same grid.- Parameters:
grid (int | None) – Optional 1-based dataset grid number.
grid_index (int | None) – Optional 0-based dataset grid index.
i_plane (RangedValue | None) – Optional I-plane ranged-value controller.
j_plane (RangedValue | None) – Optional J-plane ranged-value controller.
k_plane (RangedValue | None) – Optional K-plane ranged-value controller.
coloring (Coloring | str | None) – Coloring mode for the comp surface.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
visibility (bool | None) – Whether the comp surface is visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
I_inc (int | None) – Sweep increment for the I axis.
J_inc (int | None) – Sweep increment for the J axis.
K_inc (int | None) – Sweep increment for the K axis.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_comp(ds) >>> cs.modify(visibility=False, transparency=0.2)
- property plane: Plane¶
Active plane (i/j/k).
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.plane = fv.constant.Plane.I
- Type:
Plane
- property scalar_func: str | None¶
Selected scalar function name.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.scalar_func = ds.scalar_functions[0]
- Type:
str | None
- property scalar_minmax: ScalarMinMax¶
Scalar min/max options.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> smm = cs.scalar_minmax >>> smm.show = True
- Type:
ScalarMinMax
- property show_mesh: bool¶
Mesh overlay visibility.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.show_mesh = True
- Type:
bool
- sweep(cycles=1, output_file=None, direction=None)[source]¶
Sweep the comp surface and optionally write frames to a file.
- Parameters:
cycles (int) – Number of sweep cycles to run.
output_file (str | PathLike[str] | None) – Optional movie or frame output path.
direction (SweepDirection | None) – Optional sweep direction mode.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> cs = fv.vis.create_comp(ds, plane=fv.constant.Plane.I) >>> cs.sweep(2, "/tmp/comp_sweep.mp4", fv.constant.SweepDirection.BOUNCE)
Notes
output_filemust use.png,.mp4, or.avi.
- property threshold: bool¶
Threshold enabled state.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.threshold = True
- Type:
bool
- property threshold_func: str | None¶
Selected threshold function name.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.threshold_func = ds.scalar_functions[0]
- Type:
str | None
- property threshold_range: Range¶
Threshold min/max range.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.threshold_range = fv.Range(min=0.2, max=0.8)
- Type:
Range
- property transparency: float¶
Transparency (0.0-1.0).
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.transparency = 0.35
- Type:
float
- property vector_func: str | None¶
Selected vector function name.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> cs.vector_func = ds.vector_functions[0]
- Type:
str | None
- property vector_options: VectorOptions¶
Vector display options.
Example usage:
>>> cs = fv.vis.create_comp(ds) >>> opts = cs.vector_options >>> opts.scale = 1.2
- Type:
VectorOptions
Iso Surface Class¶
- class fieldview.vis.Iso[source]¶
Iso surface wrapper.
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)") >>> iso.coloring = fv.constant.Coloring.SCALAR >>> iso.iso_value.value = 0.8
- property contours: ContourColoring¶
Contour line coloring.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.contours = fv.constant.ContourColoring.SCALAR
- Type:
ContourColoring
- copy()[source]¶
Return a new iso surface with the same settings.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)") >>> copy_obj = iso.copy()
- Return type:
- property cutting_plane: CuttingPlane¶
Current cutting-plane definition.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.cutting_plane = fv.utils.CuttingPlane.point_and_normal((0, 0, 0), (1, 0, 0))
- Type:
CuttingPlane
- delete()[source]¶
Delete this iso surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)") >>> iso.delete()
- Return type:
None
- property display_type: DisplayType¶
Surface display type.
- Type:
DisplayType
- export(filename, format='txt')[source]¶
Export this iso surface to a text file.
- Parameters:
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)") >>> iso.export("/tmp/iso_surface.txt", format="txt")
- property geometric_color: GeometricColor¶
Geometric color used when not scalar-colored.
- Type:
GeometricColor
- integrate()¶
Integrate the current scalar function over this surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> surf = fv.vis.create_boundary(ds) >>> surf.scalar_func = ds.scalar_functions[0] >>> result = surf.integrate() >>> result.surface 'boundary_surf'
- Return type:
- integrate_partial_surface(point, tolerance=None)[source]¶
Integrate the connected partial region containing point.
Returns
Nonewhen point does not isolate a partial region on the current iso surface.- Parameters:
- Return type:
IntegrationResult | None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> probe = fv.data.probe_ijk((2, 3, 4), grid=1, dataset=ds) >>> iso = fv.vis.create_iso(ds, iso_func=probe.scalar.func) >>> iso.scalar_func = probe.scalar.func >>> iso.iso_value.value = probe.scalar.value >>> result = iso.integrate_partial_surface(tuple(probe.point))
- property iso_func: str | CuttingPlane | None¶
Iso function selection.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.iso_func = ds.scalar_functions[1]
- Type:
str | CuttingPlane | None
- property iso_value: RangedValue¶
Iso value range controller.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.iso_value.value = 0.8
- Type:
RangedValue
- modify(*, iso_func=None, iso_value=None, cutting_plane=None, coloring=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, unrolled=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, scalar_minmax=None, colormap=None, legend=None, sweep_steps=None)[source]¶
Modify multiple iso-surface properties atomically.
- Parameters:
iso_func (str | CuttingPlane | dict[str, object] | None) – Iso function name, cutting plane, or cutting-plane payload dict.
iso_value (RangedValue | None) – Optional iso-value ranged-value controller.
cutting_plane (CuttingPlane | dict[str, object] | None) – Optional cutting-plane override.
coloring (Coloring | str | None) – Coloring mode for the iso surface.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
unrolled (bool | None) – Whether unrolled display is enabled.
visibility (bool | None) – Whether the iso surface is visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
sweep_steps (int | None) – Sweep step count.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)") >>> iso.modify(visibility=False, transparency=0.25)
- property scalar_func: str | None¶
Selected scalar function name.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.scalar_func = ds.scalar_functions[0]
- Type:
str | None
- property scalar_minmax: ScalarMinMax¶
Scalar min/max options.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> smm = iso.scalar_minmax >>> smm.show = True
- Type:
ScalarMinMax
- property show_mesh: bool¶
Mesh overlay visibility.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.show_mesh = True
- Type:
bool
- sweep(cycles=1, output_file=None, direction=None)[source]¶
Sweep the iso surface and optionally write frames to a file.
- Parameters:
cycles (int) – Number of sweep cycles to run.
output_file (str | PathLike[str] | None) – Optional movie or frame output path.
direction (SweepDirection | None) – Optional sweep direction mode.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> iso = fv.vis.create_iso(ds, iso_func="Density (Q1)") >>> iso.sweep(2, "/tmp/iso_sweep.mp4", fv.constant.SweepDirection.BOUNCE)
Notes
output_filemust use.png,.mp4, or.avi.
- property sweep_steps: int¶
Sweep step count.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.sweep_steps = 25
- Type:
int
- property threshold: bool¶
Threshold enabled state.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.threshold = True
- Type:
bool
- property threshold_func: str | None¶
Selected threshold function name.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.threshold_func = ds.scalar_functions[0]
- Type:
str | None
- property threshold_range: Range¶
Threshold min/max range.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.threshold_range = fv.Range(min=0.2, max=0.8)
- Type:
Range
- property transparency: float¶
Transparency (0.0-1.0).
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.transparency = 0.35
- Type:
float
- property unrolled: bool¶
Unrolled display state.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.unrolled = True
- Type:
bool
- property vector_func: str | None¶
Selected vector function name.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> iso.vector_func = ds.vector_functions[0]
- Type:
str | None
- property vector_options: VectorOptions¶
Vector display options.
Example usage:
>>> iso = fv.vis.create_iso(ds, iso_func=ds.scalar_functions[0]) >>> opts = iso.vector_options >>> opts.scale = 1.2
- Type:
VectorOptions
- class fieldview.utils.CuttingPlane[source]¶
Cutting-plane definition used by iso surfaces.
- static point_and_normal(point, normal)[source]¶
Create a cutting plane from one point and a normal vector.
- Parameters:
point (TripletLike) – XYZ point lying on the plane.
normal (TripletLike) – XYZ normal vector defining the plane orientation.
- Return type:
Boundary Surface Class¶
- class fieldview.vis.Boundary[source]¶
Boundary surface wrapper.
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.coloring = fv.constant.Coloring.SCALAR >>> bnd.scalar_func = ds.scalar_functions[0] >>> bnd.display_type = fv.constant.DisplayType.MESH >>> bnd.transparency = 0.25 >>> bnd.colormap.name = fv.constant.ColormapName.SPECTRUM
- property available_types: list[str]¶
All boundary type names available in the dataset.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.available_types
- Type:
list[str]
- property contours: ContourColoring¶
Contour color mode.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.contours = "scalar"
- Type:
ContourColoring
- copy()[source]¶
Return a new boundary surface with the same settings.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> copy_obj = bnd.copy()
- Return type:
- delete()[source]¶
Delete this boundary surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.delete()
- Return type:
None
- property display_type: DisplayType¶
Surface display type.
- Type:
DisplayType
- export(filename, format='txt')[source]¶
Export this boundary surface to a file.
- Parameters:
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.export("/tmp/boundary_surface.csv", format="csv")
- property geometric_color: GeometricColor¶
Geometric color used when not scalar-colored.
- Type:
GeometricColor
- integrate()¶
Integrate the current scalar function over this surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> surf = fv.vis.create_boundary(ds) >>> surf.scalar_func = ds.scalar_functions[0] >>> result = surf.integrate() >>> result.surface 'boundary_surf'
- Return type:
- property material: str | None¶
Material name used when
coloringis material.Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.material = "Gold"
- Type:
str | None
- modify(*, x_clip=None, y_clip=None, z_clip=None, r_clip=None, t_clip=None, coloring=None, material=None, geometric_color=None, display_type=None, line_type=None, contours=None, show_mesh=None, visibility=None, transparency=None, scalar_func=None, vector_func=None, threshold=None, threshold_func=None, threshold_range=None, vector_options=None, scalar_minmax=None, colormap=None, legend=None, types=None)[source]¶
Modify multiple boundary properties atomically.
- Parameters:
x_clip (Range | dict[str, object] | None) – Optional X clipping range.
y_clip (Range | dict[str, object] | None) – Optional Y clipping range.
z_clip (Range | dict[str, object] | None) – Optional Z clipping range.
r_clip (Range | dict[str, object] | None) – Optional R clipping range.
t_clip (Range | dict[str, object] | None) – Optional T clipping range.
coloring (Coloring | str | None) – Coloring mode for the boundary surface.
material (Material | str | None) – Material selection used when material coloring is active.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (DisplayType | str | None) – Surface display type.
line_type (LineType | str | None) – Line style used for wireframe-capable display modes.
contours (ContourColoring | str | None) – Contour coloring mode.
show_mesh (bool | None) – Whether the mesh overlay is shown.
visibility (bool | None) – Whether the boundary surface is visible.
transparency (float | None) – Surface transparency amount.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for vector display modes.
threshold (bool | None) – Whether thresholding is enabled.
threshold_func (str | None) – Scalar function name used for thresholding.
threshold_range (Range | None) – Threshold value range.
vector_options (VectorOptions | None) – Vector display options.
scalar_minmax (ScalarMinMax | None) – Scalar min/max annotation options.
colormap (Colormap | None) – Scalar colormap options.
legend (Legend | None) – Legend options.
types (BoundaryTypeSelection | str | list[str] | tuple[str, ...] | None) – Boundary-type selection or explicit boundary-type names.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.modify(coloring=fv.constant.Coloring.SCALAR, transparency=0.3)
- property r_clip: Range¶
R clip range controller (cylindrical datasets).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.r_clip.min = bnd.r_clip.min + 0.1
- Type:
Range
- property scalar_func: str | None¶
Selected scalar function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.scalar_func = ds.scalar_functions[0]
- Type:
str | None
- property scalar_minmax: ScalarMinMax¶
Scalar min/max annotation options.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.scalar_minmax.show = True >>> bnd.scalar_minmax.min.text = "Min: %%SCALAR_MIN"
- Type:
ScalarMinMax
- property show_mesh: bool¶
Mesh overlay visibility.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.show_mesh = True
- Type:
bool
- property t_clip: Range¶
Theta clip range controller (cylindrical datasets).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.t_clip.min = bnd.t_clip.min + 1.0
- Type:
Range
- property threshold: bool¶
Threshold enabled state.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.threshold = True
- Type:
bool
- property threshold_func: str | None¶
Selected threshold function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.threshold_func = "Density (Q1)"
- Type:
str | None
- property threshold_range: Range¶
Threshold range.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.threshold_range = bnd.threshold_range
- Type:
Range
- property transparency: float¶
Surface transparency (0.0-1.0).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.transparency = 0.25
- Type:
float
- property types: list[str]¶
Active boundary type names.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds) >>> bnd.types = ds.boundary_types # equivalent to fv.constant.BoundaryTypeSelection.ALL
- Type:
list[str]
- property vector_func: str | None¶
Selected vector function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.vector_func = "Momentum Vectors [PLOT3D]"
- Type:
str | None
- property vector_options: VectorOptions¶
Vector display options.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.vector_options.head_type = fv.constant.VectorHeadType.HEAD3D
- Type:
VectorOptions
- property x_clip: Range¶
X clip range controller.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.x_clip = fv.Range(-1.0, 1.0)
- Type:
Range
- property y_clip: Range¶
Y clip range controller.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.y_clip.min = bnd.y_clip.min + 0.1
- Type:
Range
- property z_clip: Range¶
Z clip range controller.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> bnd.z_clip.min = bnd.z_clip.min + 0.1
- Type:
Range
Surface Flows Class¶
- class fieldview.vis.SurfaceFlows[source]¶
Surface restricted flow path wrapper.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sf = fv.vis.create_surface_flows( ... ds, ... mode=fv.constant.SurfaceFlowMode.NO_SLIP, ... vector_func="Velocity Vectors [PLOT3D]", ... ) >>> sf.direction = fv.constant.CalculationDirection.BOTH >>> sf.calculate()
- property direction: CalculationDirection¶
Integration direction.
- Type:
CalculationDirection
- property display_type: PathsDisplayType¶
Display representation for surface flows.
Only
COMPLETEis supported.- Type:
PathsDisplayType
- property mode: SurfaceFlowMode¶
Surface-flow extraction mode.
- Type:
SurfaceFlowMode
- modify(*, mode=<object object>, visibility=None, line_type=None, geometric_color=None, coloring=None, scalar_func=None, scalar_path_variable=None, vector_func=None, direction=None, time_limit_enabled=None, time_limit=<object object>, seeding=None, seed_file=<object object>, offset_distance=None, step=None, colormap=None, legend=None, calculate=False)[source]¶
Modify multiple surface-flow settings in one call.
Set
calculate=Trueto run the calculation after the settings update.- Parameters:
mode (object) – Optional surface-flow extraction mode.
visibility (bool | None) – Whether the object is visible.
line_type (LineType | str | None) – Line style used for the extracted paths.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
coloring (Coloring | str | None) – Coloring mode for the extracted paths.
scalar_func (str | None) – Scalar function name used for scalar coloring.
scalar_path_variable (str | None) – Path-variable name used for scalar coloring.
vector_func (str | None) – Vector function name used for path calculation.
direction (CalculationDirection | str | None) – Integration direction.
time_limit_enabled (bool | None) – Whether the time-limit field is enabled.
time_limit (float | None | object) – Optional tracing time limit.
seeding (SurfaceFlowSeeding | str | None) – Seeding mode.
seed_file (str | PathLike[str] | None | object) – Optional seed-file path.
offset_distance (float | None) – Surface offset distance.
step (int | None) – Integration step count.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
calculate (bool) – When
True, run the calculation after updating the settings.
- Return type:
None
- property scalar_func: str | None¶
Dataset scalar function cached for registry loading.
- Type:
Optional[str]
- property scalar_path_variable: str | None¶
Active scalar coloring selection for dataset or feature variables.
- Type:
Optional[str]
- property seeding: SurfaceFlowSeeding¶
Seeding density/source mode.
- Type:
SurfaceFlowSeeding
- class fieldview.vis.SeparationLines[source]¶
Separation-line path wrapper.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sep = fv.vis.create_separation_lines(ds) >>> sep.coloring = fv.constant.Coloring.SCALAR
- property display_type: PathsDisplayType¶
Display representation for separation lines.
- Type:
PathsDisplayType
- modify(*, visibility=None, line_type=None, geometric_color=None, coloring=None, colormap=None, legend=None)[source]¶
Modify multiple separation-line display settings.
- Parameters:
visibility (bool | None) – Whether the object is visible.
line_type (LineType | str | None) – Line style used for the extracted lines.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
coloring (Coloring | str | None) – Coloring mode for the extracted lines.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
None
- class fieldview.vis.ReattachmentLines[source]¶
Reattachment-line path wrapper.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> reatt = fv.vis.create_reattachment_lines(ds) >>> reatt.line_type = fv.constant.LineType.THICK
- property display_type: PathsDisplayType¶
Display representation for reattachment lines.
- Type:
PathsDisplayType
- modify(*, visibility=None, line_type=None, geometric_color=None, coloring=None, colormap=None, legend=None)[source]¶
Modify multiple reattachment-line display settings.
- Parameters:
visibility (bool | None) – Whether the object is visible.
line_type (LineType | str | None) – Line style used for the extracted lines.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
coloring (Coloring | str | None) – Coloring mode for the extracted lines.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
None
Streamlines Surface Class¶
- class fieldview.vis.Streamlines[source]¶
Streamlines surface wrapper.
Notes
seed_coordcannot be changed while the streamline object still has seeds. Delete them first withdelete_all_seeds().seed_surface()requires a liveBoundary,Comp,Coord, orIsosurface from the same dataset as the streamline object.Streak controls use a single validation rule:
release_interval > 0and0 < duration < release_interval. Invalid values are rejected before any core update, andcopy()raises if the source object violates that contract.Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines( ... ds, ... vector_func=ds.vector_functions[0], ... coloring=fv.constant.Coloring.SCALAR, ... scalar_func=ds.scalar_functions[0], ... display_type=fv.constant.PathsDisplayType.FILAMENT, ... seed_coord=fv.constant.StreamlinesSeedCoord.IJK_REAL, ... ) >>> sl.add_seeds([(1.0, 1.0, 1.0), (40.0, 20.0, 10.0)], grid=1) >>> sl.calculate()
- add_seeds(seeds, *, grid=1, grids=None)[source]¶
Add one or more seed points.
- Parameters:
seeds (Sequence[Sequence[int | float]]) – Sequence of seed coordinates. Use XYZ values when
seed_coordisxyz; otherwise use IJK or IJK-real triplets.grid (int) – Default grid number to apply to all seeds when the active seed coordinate mode requires grid ids.
grids (Sequence[int] | None) – Optional per-seed grid numbers. When provided, the length must match
seeds.
- Return type:
None
Example usage:
>>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0), (10.0, 8.0, 6.0)], grid=1)
- property animate: bool¶
Animate path traversal in the viewer.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.animate = True
- Type:
bool
- property animate_direction: AnimationDirection¶
Direction of streamline animation.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.animate_direction = "forward"
- Type:
AnimationDirection
- property animate_divs: int¶
Number of animation divisions.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.animate_divs = 30
- Type:
int
- calculate()[source]¶
Run streamline calculation using current seeds and parameters.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate()
- Return type:
None
- copy()[source]¶
Return a new streamlines surface with the same settings and seeds.
Raises
InvalidArgumentErrorif the current streak controls are not valid for the Python API contract.Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> copy_obj = sl.copy()
- Return type:
- delete()[source]¶
Delete this streamlines surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.delete()
- Return type:
None
- delete_all_seeds()[source]¶
Delete all seeds.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.delete_all_seeds()
- Return type:
None
- property direction: CalculationDirection¶
Trace direction for calculation.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.direction = "both"
- Type:
CalculationDirection
- property display_type: PathsDisplayType¶
Path display style.
Example usage:
>>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.display_type = fv.constant.PathsDisplayType.FILAMENT
- Type:
PathsDisplayType
- property duration: int¶
Streakline duration.
Must be > 0 and < release_interval.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.duration = 1
- Type:
int
- export(filename, format='fvp')[source]¶
Export this streamlines surface to an FVP file.
- Parameters:
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.calculate() >>> sl.export("/tmp/streamlines.fvp", format="fvp")
- modify(*, coloring=None, geometric_color=None, line_type=None, display_type=None, sphere_scale=None, ribbon_width=None, transparency=None, visibility=None, scalar_func=None, vector_func=None, animate=None, animate_direction=None, animate_divs=None, show_seeds=None, seed_coord=None, direction=None, step=None, time_limit=<object object>, release_interval=None, duration=None, colormap=None, legend=None, calculate=False)[source]¶
Update multiple properties in one call.
Calculation runs implicitly when any calculation parameter (
direction,step,time_limit,release_interval,duration) is changed, or whencalculate=True.- Parameters:
coloring (Coloring | str | None) – Coloring mode for the streamline geometry.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
display_type (PathsDisplayType | str | None) – Path display type such as complete, filament, or ribbon.
sphere_scale (float | None) – Sphere or arrow size scale.
ribbon_width (int | None) – Ribbon width used by ribbon display modes.
transparency (float | None) – Transparency amount for the streamline geometry.
visibility (bool | None) – Whether the streamline object is visible.
scalar_func (str | None) – Scalar function name used for scalar coloring.
vector_func (str | None) – Vector function name used for streamline integration.
animate (bool | None) – Whether streamline animation is enabled.
animate_direction (AnimationDirection | str | None) – Direction used for streamline animation.
animate_divs (int | None) – Number of animation divisions.
show_seeds (bool | None) – Whether seed markers are shown.
seed_coord (StreamlinesSeedCoord | str | None) – Seed coordinate system to use for subsequent seed operations.
direction (CalculationDirection | str | None) – Integration direction used for calculation.
step (int | None) – Integration step size.
time_limit (float | None | object) – Optional tracing time limit. Pass
Noneto clear the current limit.release_interval (int | None) – Optional streakline release interval.
duration (int | None) – Optional streakline duration.
colormap (Colormap | dict[str, object] | None) – Optional colormap settings as a
Colormapor payload dict.legend (Legend | dict[str, object] | None) – Optional legend settings as a
Legendor payload dict.calculate (bool) – When
True, run streamline calculation after applying the updates.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.modify(visibility=False, show_seeds=False)
release_interval and duration are validated together before any core call. Invalid combinations are rejected without partial updates.
- property num_seeds: int¶
Number of seeds currently assigned (read-only).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.num_seeds
- Type:
int
- property release_interval: int¶
Streakline release interval.
Must be > 0, and the paired duration must remain smaller than this value.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.release_interval = 3
- Type:
int
- property ribbon_width: int¶
Ribbon width for ribbon display mode.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.ribbon_width = 24
- Type:
int
- property scalar_func: str | None¶
Selected scalar function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.scalar_func = "Density (Q1)"
- Type:
str | None
- property seed_coord: StreamlinesSeedCoord¶
Coordinate system used by seed operations.
Changing seed_coord while seeds exist is rejected by the core. Delete existing seeds first with
delete_all_seeds().Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.seed_coord
- Type:
StreamlinesSeedCoord
- seed_surface(surface, *, inc=3, num_seeds=10)[source]¶
Seed from another live surface (Boundary, Comp, Coord, or Iso).
The surface must not be deleted and must belong to the same dataset as this streamline object.
- Parameters:
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> bnd = fv.vis.create_boundary(ds, types=fv.constant.BoundaryTypeSelection.ALL) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.seed_surface(surface=bnd)
- property show_seeds: bool¶
Show or hide seed points in the viewer.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.show_seeds = True
- Type:
bool
- property sphere_scale: float¶
Sphere/arrow size scale.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.sphere_scale = 1.25
- Type:
float
- property step: int¶
Integration step size.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.step = 3
- Type:
int
- property streak: StreamlinesStreak¶
Convenience access to streak controls.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> streak = sl.streak
- Type:
StreamlinesStreak
- property time_limit: float | None¶
Optional time limit for tracing.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.time_limit = 0.25
- Type:
float | None
- property transparency: float¶
Transparency percentage.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.transparency = 0.2
- Type:
float
- property vector_func: str | None¶
Selected vector function name.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> sl = fv.vis.create_streamlines(ds, vector_func=ds.vector_functions[0]) >>> sl.seed_coord = fv.constant.StreamlinesSeedCoord.IJK_REAL >>> sl.add_seeds([(5.0, 5.0, 5.0)], grid=1) >>> sl.calculate() >>> sl.vector_func = "Momentum Vectors [PLOT3D]"
- Type:
str | None
Particle Paths Surface Class¶
- class fieldview.vis.ParticlePaths[source]¶
Particle paths surface wrapper.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.display_type = fv.constant.PathsDisplayType.SPHERES_AND_LINES
- property animate: bool¶
Animation toggle for particle paths.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.animate = True
- Type:
bool
- property animate_direction: AnimationDirection¶
Animation direction (forward or backward).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.animate_direction = fv.constant.AnimationDirection.FORWARD
- Type:
constant.AnimationDirection
- property animate_divs: int¶
Number of animation divisions.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.animate_divs = 25
- Type:
int
- copy()[source]¶
Return a new particle-paths surface with the same settings.
Example usage:
>>> copy_obj = ppath.copy()
- Return type:
- delete()[source]¶
Delete this particle-path surface.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.delete()
- Return type:
None
- property display_type: PathsDisplayType¶
Display representation for particle paths.
Example usage:
>>> ppath = fv.vis.create_particle_paths(ds, filename="paths.fvp") >>> ppath.display_type = fv.constant.PathsDisplayType.SPHERES_AND_LINES
- Type:
PathsDisplayType
- modify(*, coloring=None, geometric_color=None, line_type=None, display_type=None, sphere_scale=None, transparency=None, visibility=None, scalar_func=None, animate=None, animate_direction=None, animate_divs=None, subset_inc=None, select_by_initial_value=None, select_by_initial_value_variable=None, select_by_initial_value_min=None, select_by_initial_value_max=None, select_by_value_on_path=None, select_by_value_on_path_variable=None, select_by_value_on_path_min=None, select_by_value_on_path_max=None, select_by_tags=None, tags=None, colormap=None, legend=None)[source]¶
Modify multiple particle-path display attributes in one call.
- Parameters:
coloring (Coloring | str | None) – Coloring mode for the particle paths.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
line_type (LineType | str | None) – Line style used for the particle paths.
display_type (PathsDisplayType | str | None) – Path display type such as complete or filament.
sphere_scale (float | None) – Sphere or marker size scale.
transparency (float | None) – Particle-path transparency amount.
visibility (bool | None) – Whether the particle paths are visible.
scalar_func (str | None) – Scalar function name used for scalar coloring.
animate (bool | None) – Whether particle-path animation is enabled.
animate_direction (AnimationDirection | str | None) – Direction used for animation.
animate_divs (int | None) – Number of animation divisions.
subset_inc (int | None) – Subsampling increment for displayed paths.
select_by_initial_value (bool | None) – Whether initial-value filtering is enabled.
select_by_initial_value_variable (str | None) – Variable name used for initial-value filtering.
select_by_initial_value_min (float | None) – Initial-value filter minimum.
select_by_initial_value_max (float | None) – Initial-value filter maximum.
select_by_value_on_path (bool | None) – Whether value-on-path filtering is enabled.
select_by_value_on_path_variable (str | None) – Variable name used for value-on-path filtering.
select_by_value_on_path_min (float | None) – Value-on-path filter minimum.
select_by_value_on_path_max (float | None) – Value-on-path filter maximum.
select_by_tags (bool | None) – Whether tag-based filtering is enabled.
tags (str | Sequence[str] | None) – Tag names to select when tag-based filtering is used.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
None
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.modify(visibility=True, animate=True, animate_divs=20)
- property path_variables: list[str]¶
Imported particle-path variable names (read-only).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.path_variables
- Type:
list[str]
- property scalar_func: str | None¶
Scalar variable name used for scalar coloring.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.scalar_func = "Duration"
- Type:
Optional[str]
- property select_by_initial_value: bool¶
Enable or disable Select By Initial Value.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_initial_value = True
- Type:
bool
- property select_by_initial_value_range: Range¶
Current and absolute range for Select By Initial Value (read-only).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_initial_value_range
- Type:
Range
- property select_by_initial_value_variable: str | None¶
Variable name used by Select By Initial Value.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_initial_value_variable = "Duration"
- Type:
Optional[str]
- property select_by_tags: bool¶
Enable or disable Select By Tag filtering.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_tags = True
- Type:
bool
- property select_by_value_on_path: bool¶
Enable or disable Select By Value on Path.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_value_on_path = True
- Type:
bool
- property select_by_value_on_path_range: Range¶
Current and absolute range for Select By Value on Path (read-only).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_value_on_path_range
- Type:
Range
- property select_by_value_on_path_variable: str | None¶
Variable name used by Select By Value on Path.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.select_by_value_on_path_variable = "Duration"
- Type:
Optional[str]
- property selected_tags: list[str]¶
Currently selected tag names.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.selected_tags = ["stream_1", "stream_2"]
- Type:
list[str]
- property sphere_scale: float¶
Scale factor for spheres/arrows in path displays.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.sphere_scale = 1.25
- Type:
float
- property subset_inc: int¶
Subset increment used when displaying path samples.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.subset_inc = 1
- Type:
int
- property tags: list[str]¶
Available imported tag names (read-only).
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.tags
- Type:
list[str]
- property transparency: float¶
Surface transparency in range 0.0 to 1.0.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> ppath = fv.vis.create_particle_paths(ds, filename="/path/to/particle_paths.fvp") >>> ppath.transparency = 0.25
- Type:
float
2D Plot Class¶
- class fieldview.vis.Plot2D[source]¶
2D plot wrapper.
Use
create_plot2d()to create instances. A plot owns zero or morePlot2DPathobjects and exposes nested axis, sampling, annotation, and border settings through helper objects.Example usage:
>>> plot = fv.vis.create_plot2d( ... left_axis_func="Pressure", ... right_axis_func="Density", ... show_plot=True, ... ) >>> path = plot.create_line_path_volume((0.0, 0.0, 0.0), (1.0, 0.0, 0.0)) >>> plot.left_axis.label = "Pressure" >>> plot.right_axis_func = None
- annotation¶
- create_line_path_volume(start, end, **_options)[source]¶
Create a volume line path from two dataset-coordinate points.
- Parameters:
start (TripletLike) – Three-number start point in dataset coordinates. For Cartesian datasets this is
(x, y, z). For cylindrical datasets this is the displayed cylindrical triplet, such as(r, theta, z)or(r, theta, x).end (TripletLike) – Three-number end point in dataset coordinates. For Cartesian datasets this is
(x, y, z). For cylindrical datasets this is the displayed cylindrical triplet, such as(r, theta, z)or(r, theta, x).**_options (object) – Reserved for future compatibility. Currently ignored.
- Return type:
Notes¶
Some non-fatal host diagnostics are returned as Python warnings rather than exceptions. In interactive FieldView sessions those warnings may appear in the Python console.
- delete_path(path)[source]¶
Delete one path owned by this plot.
- Parameters:
path (Plot2DPath) – Path handle owned by this
Plot2D.- Return type:
None
- horizontal_axis¶
- property horizontal_axis_mode: Plot2DHorizontalAxis¶
Quantity shown on the horizontal axis.
- Type:
Plot2DHorizontalAxis
- import_path_txt(filename)[source]¶
Import one path from a FieldView path text file.
- left_axis¶
- modify(*, left_axis_func=<object object>, right_axis_func=<object object>, show_right_axis=<object object>, show_path=<object object>, show_plot=<object object>, background=<object object>, horizontal_axis_mode=<object object>, path_style=<object object>, sampling=<object object>, annotation=<object object>, options=<object object>, horizontal_axis=<object object>, left_axis=<object object>, right_axis=<object object>)[source]¶
Modify multiple plot settings in one host round trip.
Supported keyword arguments mirror
create_plot2d(), plus horizontal_axis, left_axis, and right_axis nested payloads.- Parameters:
left_axis_func (str | None | object) – Left-axis scalar function name.
right_axis_func (str | None | object) – Right-axis scalar function name, or None to clear.
show_right_axis (bool | None | object) – Show/hide the right axis.
show_path (bool | None | object) – Show/hide path geometry in the host plot.
show_plot (bool | None | object) – Show/hide the plot in the host.
background (bool | None | object) – Toggle background drawing mode.
horizontal_axis_mode (Plot2DHorizontalAxis | str | None | object) – Horizontal axis quantity selector.
path_style (Plot2DPathStyle | str | None | object) – Path draw style.
sampling (Plot2DSamplingOptions | Mapping[str, object] | None | object) – Nested sampling payload as a mapping or
fieldview.utils.Plot2DSamplingOptions.annotation (Plot2DAnnotationOptions | Mapping[str, object] | None | object) – Nested annotation payload as a mapping or
fieldview.utils.Plot2DAnnotationOptions.options (Plot2DOptions | Mapping[str, object] | None | object) – Nested border/layout payload as a mapping or
fieldview.utils.Plot2DOptions.horizontal_axis (Plot2DAxisOptions | Mapping[str, object] | None | object) – Nested axis payload as a mapping or
fieldview.utils.Plot2DAxisOptions.left_axis (Plot2DAxisOptions | Mapping[str, object] | None | object) – Nested axis payload as a mapping or
fieldview.utils.Plot2DAxisOptions.right_axis (Plot2DAxisOptions | Mapping[str, object] | None | object) – Nested axis payload as a mapping or
fieldview.utils.Plot2DAxisOptions.
- Return type:
None
- options¶
- property path_style: Plot2DPathStyle¶
Drawing style applied to plotted path data.
- Type:
Plot2DPathStyle
- property paths: tuple[Plot2DPath, ...]¶
Read-only view of the plot’s current paths.
- Type:
tuple[Plot2DPath, …]
- right_axis¶
- property right_axis_func: str | None¶
Scalar function used on the right axis, or None when disabled.
- Type:
Optional[str]
- sampling¶
- class fieldview.vis.Plot2DPath[source]¶
Path handle owned by a
Plot2D.A path may be either a native volume line created from two XYZ points or an imported path loaded from a FieldView path text file.
Example usage:
>>> plot = fv.vis.create_plot2d(left_axis_func="Pressure") >>> path = plot.create_line_path_volume((0.0, 0.0, 0.0), (1.0, 0.0, 0.0)) >>> path.name = "centerline" >>> path.export_txt("centerline.txt")
- property end: tuple[float, float, float] | None¶
End point in dataset coordinates.
For Cartesian datasets this is
(x, y, z). For cylindrical datasets this is the displayed cylindrical triplet, such as(r, theta, z)or(r, theta, x).- Type:
Optional[tuple[float, float, float]]
- export_txt(filename)[source]¶
Export this path to a FieldView path text file.
Parameters¶
- filename:
Destination text file path.
- property kind: Plot2DPathKind¶
Path type reported by the host.
- Type:
Plot2DPathKind
- class fieldview.vis.Plot2DAxis[source]¶
Axis settings for a
Plot2D.Instances are available from
Plot2D.horizontal_axis,Plot2D.left_axis, andPlot2D.right_axis.Example usage:
>>> plot = fv.vis.create_plot2d(left_axis_func="Pressure", show_plot=True) >>> plot.left_axis.label = "Pressure" >>> plot.left_axis.major_grid_lines.enabled = True
- major_grid_lines¶
- major_tick_marks¶
- property max: float | None¶
Explicit maximum axis value, or None for host defaults.
- Type:
Optional[float]
- property min: float | None¶
Explicit minimum axis value, or None for host defaults.
- Type:
Optional[float]
- minor_grid_lines¶
- minor_tick_marks¶
- class fieldview.vis.Plot2DSampling[source]¶
Sampling controls for a
Plot2D.Example usage:
>>> plot = fv.vis.create_plot2d(left_axis_func="Pressure") >>> plot.sampling.mode = fv.constant.Plot2DSamplingMode.UNIFORM >>> plot.sampling.number_samples = 40
- property mode: Plot2DSamplingMode¶
Sampling mode used for plot evaluation.
- Type:
Plot2DSamplingMode
- class fieldview.vis.Plot2DAnnotation[source]¶
Annotation settings for a
Plot2D.Supported attributes are show_date, show_legend, title, title_color, subtitle, and subtitle_color.
Example usage:
>>> plot = fv.vis.create_plot2d(left_axis_func="Pressure") >>> plot.annotation.title = "Pressure Along Path" >>> plot.annotation.show_legend = True
- class fieldview.vis.Plot2DOptions[source]¶
Border and framing options for a
Plot2D.Example usage:
>>> plot = fv.vis.create_plot2d(left_axis_func="Pressure") >>> plot.options.border_layout = fv.constant.Plot2DBorderLayout.ACTIVE_AXES >>> plot.options.border_style = fv.constant.Plot2DLineStyle.DASHED
Vortex Cores Class¶
- class fieldview.vis.VortexCores[source]¶
Vortex cores surface wrapper.
Example usage:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> vc = fv.vis.create_vortex_cores( ... ds, ... method="Vorticity Alignment", ... vector_func="Vorticity Vectors [PLOT3D]", ... ) >>> vc.coloring = fv.constant.Coloring.SCALAR
- copy()[source]¶
Return a new vortex-cores surface with the same settings.
Example usage:
>>> copy_obj = vc.copy()
- Return type:
- delete()[source]¶
Delete this vortex-cores surface.
Example usage:
>>> vc.delete()
- Return type:
None
- property display_type: PathsDisplayType¶
Display representation for vortex cores.
Only
COMPLETEis supported.Example usage:
>>> vc.display_type = fv.constant.PathsDisplayType.COMPLETE
- Type:
PathsDisplayType
- property method: str | None¶
Active vortex-core extraction method.
Example usage:
>>> vc.method
- Type:
Optional[str]
- property min_vortex_strength: float¶
Current MIN VORTEX STRENGTH slider value.
Example usage:
>>> vc.min_vortex_strength = 0.5
- Type:
float
- property min_vortex_strength_enabled: bool¶
Enable/disable the MIN VORTEX STRENGTH filter.
Example usage:
>>> vc.min_vortex_strength_enabled = True
- Type:
bool
- modify(*, visibility=None, line_type=None, geometric_color=None, min_vortex_strength_enabled=None, min_vortex_strength=None, coloring=None, scalar_func=None, scalar_path_variable=None, vector_func=None, colormap=None, legend=None)[source]¶
Modify multiple vortex-cores display attributes in one call.
- Parameters:
visibility (bool | None) – Whether the object is visible.
line_type (LineType | str | None) – Line style used for the extracted cores.
geometric_color (GeometricColor | int | None) – Geometric color id used when geometric coloring is active.
min_vortex_strength_enabled (bool | None) – Whether the minimum-vortex-strength filter is enabled.
min_vortex_strength (float | None) – Minimum vortex-strength filter value.
coloring (Coloring | str | None) – Coloring mode for the extracted cores.
scalar_func (str | None) – Scalar function name used for scalar coloring.
scalar_path_variable (str | None) – Path-variable name used for scalar coloring.
vector_func (str | None) – Vector variable name used for the extraction or display.
colormap (Colormap | dict[str, object] | None) – Scalar colormap options.
legend (Legend | dict[str, object] | None) – Legend options.
- Return type:
None
Example usage:
>>> vc.modify( ... visibility=True, ... coloring="scalar", ... scalar_path_variable="Vortex Strength", ... )
- property scalar_func: str | None¶
Dataset scalar function cached for registry loading.
Example usage:
>>> vc.scalar_func = "Density (Q1)"
- Type:
Optional[str]
Annotation Class¶
- class fieldview.vis.AnnotationText[source]¶
Text annotation wrapper.
- property align: AnnotationTextAlign¶
Text alignment.
- Type:
AnnotationTextAlign
- property direction: AnnotationTextDirection¶
Text direction.
- Type:
AnnotationTextDirection
- modify(*, text=None, visibility=None, position=None, color=None, font=None, font_size=None, align=None, direction=None)[source]¶
Update multiple text annotation properties in one call.
- Parameters:
text (str | None)
visibility (bool | None)
position (object)
color (GeometricColor | int | None)
font_size (int | None)
align (AnnotationTextAlign | str | None)
direction (AnnotationTextDirection | str | None)
- Return type:
None
Layout¶
fieldview.layout¶
Layout management helpers for interactive or batch FieldView sessions.
The functions in this module operate on graphics windows within the current
FieldView layout. Window numbers are 1-based and match the numbering used by
the host UI. The current window is the default target whenever an operation
accepts window=None.
Use fieldview.layout when you need to inspect the current pane layout,
switch the active window, split a view into additional panes, close panes, or
configure multi-window view synchronization.
Example:
>>> import os
>>> import fieldview as fv
>>> data_dir = os.path.join(fv.home, "examples", "f18")
>>> ds = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> split = fv.layout.split_vertical(mode="copy")
>>> fv.layout.select(split.new_window)
- fieldview.layout.get_windows()[source]¶
Return metadata for all graphics windows in the current layout.
This works in both interactive and batch graphics sessions.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> windows = fv.layout.get_windows()
- Return type:
- fieldview.layout.current()[source]¶
Return the 1-based number of the current graphics window.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> window = fv.layout.current()
- Return type:
- fieldview.layout.select(window)[source]¶
Make
windowthe current graphics window.- Parameters:
window (int) – 1-based graphics window number to select.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> split = fv.layout.split_vertical(mode="copy") >>> fv.layout.select(split.source_window)
- fieldview.layout.split_vertical(mode='copy', window=None)[source]¶
Split a window vertically and return metadata for the new window.
window=Nonetargets the current window. The new window becomes current on success.- Parameters:
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> split = fv.layout.split_vertical(mode="copy")
- fieldview.layout.split_horizontal(mode='copy', window=None)[source]¶
Split a window horizontally and return metadata for the new window.
window=Nonetargets the current window. The new window becomes current on success.- Parameters:
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> split = fv.layout.split_horizontal(mode="copy")
- fieldview.layout.get_view_sync(window=None)[source]¶
Return whether a window propagates view/camera changes to synced panes.
window=Nonetargets the current window.- Parameters:
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> enabled = fv.layout.get_view_sync()
- fieldview.layout.set_view_sync(enabled, window=None)[source]¶
Enable or disable multi-window view syncing for a graphics window.
window=Nonetargets the current window.- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> split = fv.layout.split_vertical(mode="copy") >>> fv.layout.set_view_sync(True, window=split.source_window) >>> fv.layout.set_view_sync(True, window=split.new_window)
- fieldview.layout.close(window=None)[source]¶
Close a graphics window.
window=Nonecloses the current window. When the current child window is closed, FieldView selects its parent window.- Parameters:
window (int | None) – Optional 1-based window number to close. When omitted, the current graphics window is closed.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> split = fv.layout.split_vertical(mode="copy") >>> fv.layout.close(split.new_window)
View¶
fieldview.view¶
View-control helpers for interactive or batch FieldView sessions.
By default the functions in this module operate on the current graphics
window. Use window= to target a specific 1-based window number.
This module is responsible for coarse view operations such as centering,
fitting, cardinal or isometric alignment, and perspective or overlay toggles.
Use it together with fieldview.layout for pane selection and
fieldview.camera for lower-level navigation and camera-state control.
Example:
>>> import os
>>> import fieldview as fv
>>> data_dir = os.path.join(fv.home, "examples", "f18")
>>> ds = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> fv.view.fit()
>>> fv.view.align("+z")
- fieldview.view.center(x=None, y=None, z=None, *, window=None)[source]¶
Center the view.
With no coordinates, centers automatically on the current scene contents. With
x,y, andzprovided, translates the current view so the specified world-space point appears at the window center. This operation preserves the current viewing orientation and camera offset, so both eye and target may move together.window=Nonetargets the current window.- Parameters:
x (float | None) – X coordinate of the world-space point to place at the screen center. Provide all of
x,y, andztogether, or omit all three for automatic centering.y (float | None) – Y coordinate of the world-space point to place at the screen center.
z (float | None) – Z coordinate of the world-space point to place at the screen center.
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.center() >>> fv.view.center(0.0, 0.0, 0.0)
- fieldview.view.fit(*, window=None)[source]¶
Fit the current scene contents to the view.
window=Nonetargets the current window.- Parameters:
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.fit()
- fieldview.view.reset(*, window=None)[source]¶
Reset world transforms for the selected window.
This matches the UI reset action for the world transform.
window=Nonetargets the current window.- Parameters:
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.reset()
- fieldview.view.align(direction, *, window=None)[source]¶
Align the view to a cardinal or isometric direction.
window=Nonetargets the current window.- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.align("+x") >>> fv.view.align(("+x", "+y", "+z"))
- fieldview.view.set_perspective(enabled, angle=None, *, window=None)[source]¶
Enable or disable perspective for a window.
window=Nonetargets the current window.- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.set_perspective(True, angle=30.0)
- fieldview.view.get_perspective(*, window=None)[source]¶
Return the current perspective state for a window.
window=Nonetargets the current window.- Parameters:
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.set_perspective(True, angle=30.0) >>> state = fv.view.get_perspective()
- fieldview.view.set_outline(enabled)[source]¶
Enable or disable dataset outlines for the current scene.
- Parameters:
enabled (bool) – Whether dataset outlines should be visible.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.set_outline(True)
- fieldview.view.get_outline()[source]¶
Return whether dataset outlines are currently visible.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> visible = fv.view.get_outline()
- Return type:
- fieldview.view.set_axis_markers(enabled)[source]¶
Enable or disable the global axis-marker overlay.
- Parameters:
enabled (bool) – Whether the global axis-marker overlay should be visible.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.set_axis_markers(True)
- fieldview.view.get_axis_markers()[source]¶
Return whether the global axis-marker overlay is visible.
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> visible = fv.view.get_axis_markers()
- Return type:
Camera¶
fieldview.camera¶
Direct camera/navigation helpers for interactive or batch FieldView sessions.
The fieldview.camera module complements fieldview.view:
fieldview.viewhandles coarse view operations such as fit, center, and perspective enable/disable.fieldview.camerahandles direct navigation and deterministic camera capture/restore.
All functions default to the current graphics window and accept window=
when a specific pane must be targeted directly.
Use this module when automation needs reproducible camera moves, explicit camera targeting, or save-and-restore behavior across multiple layout panes.
Example:
>>> import os
>>> import fieldview as fv
>>> data_dir = os.path.join(fv.home, "examples", "f18")
>>> ds = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> fv.view.fit()
>>> fv.camera.orbit(15.0, -10.0)
- fieldview.camera.pan(dx, dy, *, window=None)[source]¶
Translate the camera laterally in screen/view space.
Positive
dxmoves right. Positivedymoves upward. The target and eye move together, so the viewing direction is preserved.- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.camera.pan(0.1, 0.05)
- fieldview.camera.zoom(factor, *, window=None)[source]¶
Adjust the current zoom or perspective magnification by a factor.
factormust be greater than zero. Values larger than1zoom in and values between0and1zoom out.- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.camera.zoom(1.2)
- fieldview.camera.dolly(distance, *, window=None)[source]¶
Move the camera forward or backward along its current view direction.
Positive values move the camera closer to the current target. Negative values move it farther away.
- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.camera.dolly(0.5)
- fieldview.camera.rotate(yaw, pitch, roll=0.0, *, window=None)[source]¶
Rotate the camera orientation using yaw, pitch, and optional roll.
yawrotates about the current up axis,pitchrotates about the current right axis, androllrotates about the current forward axis.- Parameters:
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.camera.rotate(10.0, -5.0, 0.0)
- fieldview.camera.orbit(dx, dy, *, window=None)[source]¶
Convenience wrapper around
rotate()for orbit-style navigation.dxis the yaw rotation in degrees about the current up axis.dyis the pitch rotation in degrees about the current right axis.This is equivalent to
rotate(dx, dy, 0.0, window=window).Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.camera.orbit(15.0, -10.0)
- fieldview.camera.look_at(target, eye=None, up=None, *, window=None)[source]¶
Aim the camera at a target, with optional explicit eye and up vectors.
When
eyeorupis omitted, the current value for that component is used as the input to the look-at solve. The resulting camera frame is orthonormalized by the host, so the finalupdirection may be adjusted to remain perpendicular to the final view direction.- Parameters:
target (object) – Three-number target position to look at.
eye (object) – Optional three-number camera position. When omitted, the current eye position is reused as the look-at input.
up (object) – Optional three-number up vector. When omitted, the current up vector is reused as the look-at input and may be adjusted to produce a valid orientation.
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.camera.look_at((0.0, 0.0, 0.0))
- fieldview.camera.get_state(*, window=None)[source]¶
Capture the current deterministic view state for exact reuse.
- Parameters:
window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> state = fv.camera.get_state()
- fieldview.camera.set_state(state, *, window=None)[source]¶
Restore a deterministic view state previously returned by
get_state().- Parameters:
state (ViewState) – Deterministic view state object previously returned by
get_state().window (int | None) – Optional 1-based window number. When omitted, the current graphics window is used.
- Return type:
None
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> state = fv.camera.get_state() >>> fv.camera.orbit(20.0, -10.0) >>> fv.camera.set_state(state)
Export¶
fieldview.export¶
Image export helpers for rendered FieldView output.
The fieldview.export namespace provides thin wrappers around FieldView’s
host-side image export commands. These functions are intended for automation
workflows that need to capture the current graphics view to PNG, JPG, BMP, or
other supported image formats.
Example:
>>> import os
>>> import fieldview as fv
>>> data_dir = os.path.join(fv.home, "examples", "f18")
>>> ds = fv.data.load_plot3d(
... os.path.join(data_dir, "f18i9b_g_bin"),
... os.path.join(data_dir, "f18i9b_q_bin"),
... )
>>> fv.view.fit()
>>> request_id = fv.export_png("/tmp/f18.png")
- fieldview.export.export_image(path, format='png', source='graphics', render_sync=True)[source]¶
Export an image through FieldView.
- Parameters:
- Returns:
Request id from the dispatcher.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.fit() >>> request_id = fv.export_image("/tmp/f18.jpg", format="jpg")
- fieldview.export.export_png(path, source='graphics', render_sync=True)[source]¶
Export a PNG image.
- Parameters:
- Returns:
Request id from the dispatcher.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.fit() >>> request_id = fv.export_png("/tmp/f18.png")
- fieldview.export.export_jpg(path, source='graphics', render_sync=True)[source]¶
Export a JPG image.
- Parameters:
- Returns:
Request id from the dispatcher.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.fit() >>> request_id = fv.export_jpg("/tmp/f18.jpg")
- fieldview.export.export_bmp(path, source='graphics', render_sync=True)[source]¶
Export a BMP image.
- Parameters:
- Returns:
Request id from the dispatcher.
- Return type:
Example:
>>> import os >>> import fieldview as fv >>> data_dir = os.path.join(fv.home, "examples", "f18") >>> ds = fv.data.load_plot3d( ... os.path.join(data_dir, "f18i9b_g_bin"), ... os.path.join(data_dir, "f18i9b_q_bin"), ... ) >>> fv.view.fit() >>> request_id = fv.export_bmp("/tmp/f18.bmp")
Utilities¶
Shared enums and helpers for the FieldView Python package.
- class fieldview.utils.Colormap[source]¶
Scalar colormap options.
- name: ColormapName | str | None = None¶
constant.ColormapName or user map filename.
- class fieldview.utils.VectorOptions[source]¶
Vector display options.
- display_type: CurvedVectorDisplayType | str | None = None¶
Curved vector display type (complete/filament/growing).
- head_type: VectorHeadType | str | None = None¶
2D or 3D heads.
- shaft_type: VectorShaftType | str | None = None¶
Straight or curved shafts.
- type: VectorProjectionType | str | None = None¶
Vector projection type (total/yz/xz/xy/projected).
- class fieldview.utils.Legend[source]¶
Legend options.
- type: LegendType | str | None = None¶
constant.LegendType (spectrum/contour).
- class fieldview.utils.ScalarMinMax[source]¶
Scalar min/max annotation options.
Constants¶
Enum constants for the FieldView Python package.
- class fieldview.constant.AnimationDirection[source]¶
Streamline animation direction.
FORWARD
BACKWARD
- class fieldview.constant.AnnotationTextAlign[source]¶
Annotation text alignment.
LEFT
TOP
CENTER
MIDDLE
RIGHT
BOTTOM
- class fieldview.constant.AnnotationTextDirection[source]¶
Annotation text direction.
HORIZONTAL
VERTICAL
- class fieldview.constant.Axes[source]¶
Axis combinations for mirror/translate operations.
X
Y
Z
XY
XZ
YZ
XYZ
- class fieldview.constant.CalculationDirection[source]¶
Streamline calculation direction.
FORWARD
BACKWARD
BOTH
- class fieldview.constant.Coloring[source]¶
Surface coloring mode identifier.
GEOMETRIC
SCALAR
MATERIAL
- class fieldview.constant.ColormapName[source]¶
Colormap name identifiers.
SPECTRUM
NASA_1
NASA_2
GRAY_SCALE
COLOR_STRIPED
BLACK_AND_WHITE
STRIPED
ZEBRA
ACHROMATIC_VISION_1
ACHROMATIC_VISION_2
BANDED_BLUE_TO_RED_DARK
BANDED_BLUE_TO_RED_LIGHT
BANDED_GRAYSCALE
BIG_DIFFERENCE
BIO_SPECTRUM_1
BIO_SPECTRUM_2
BLOODFLOW_DOPPLER
BLUE_CHROME
CAMOUFLAGE
CCM_BLUE_RED
CCM_COOL_WARM
CCM_HIGH_CONTRAST
CCM_SPECTRUM
CD_SPECTRUM
CD_STRIPED
CHROME
COLD
DARK_RADIATION
DARK_SPECTRUM
DARK_GREEN_GRADIENT
FLAME_TRANSITION
GOLD
HIGH_CONTRAST
HOT
HOT_TO_COLD_DIFF
INDIGO_FLAME
LEAF_COLOR
RADIATION_COLORS
RED_TO_BLUE_DIFF
RED_TO_PURPLE_DIFF
RELIEF_MAP
RELIEF_MAP_LAND
RELIEF_MAP_OCEAN
SIMPLE_FLUX
SMALL_DIFFERENCE
SPECTRUM_DIFF_GRAY
SPECTRUM_DIFF_WHITE
STEEL_BLUE
TEAL_BLACK_GRADIENT
INFERNO
MAGMA
PLASMA
VIRIDIS
- class fieldview.constant.ContourColoring[source]¶
Contour coloring identifier.
NONE
BLACK
WHITE
GEOMETRIC
SCALAR
- class fieldview.constant.CurvedVectorDisplayType[source]¶
Curved vector display type identifier.
COMPLETE: Complete display.
FILAMENT: Filament display.
GROWING: Growing display.
- class fieldview.constant.DisplayType[source]¶
Surface display type identifier.
CONSTANT: Constant shading.
FACETED: Faceted shading.
SMOOTH: Smooth shading.
MESH: Mesh display.
CONTOURS: Contour lines.
CRINKLE: Crinkle display.
VERTICES: Unlit vertices.
SHADED_VERTICES: Lit vertices.
VECTORS: Vector display mode.
- class fieldview.constant.DuplicateOperation[source]¶
Duplicate operation to apply to the dataset.
NONE
MIRROR
ROTATE
TRANSLATE
- class fieldview.constant.Font[source]¶
Text font identifier.
LEE
LEE_BOLD
LEE_ITALIC
LEE_BOLD_ITALIC
LEEMONO
LEEMONO_BOLD
LEEMONO_ITALIC
LEEMONO_BOLD_ITALIC
LEESE
LEESE_BOLD
NOTO
NOTO_SANS_REGULAR
ROMAN_SANS_SERIF
ROMAN
ITALICS
SCRIPT
- class fieldview.constant.GeometricColor[source]¶
FV geometric color ids (1-10).
BLACK
WHITE
RED
GREEN
BLUE
CYAN
MAGENTA
YELLOW
PURPLE
GRAY
- class fieldview.constant.GridProcessing[source]¶
Balance between preprocessing cost and load speed.
LESS
BALANCED
MORE
- class fieldview.constant.InputMode[source]¶
How new loads interact with existing datasets.
REPLACE replaces the current dataset; previously returned Dataset objects become invalid.
REPLACE
APPEND
- class fieldview.constant.LegendAnnotationPosition[source]¶
Legend annotation relative position.
LEFT
RIGHT
TOP
BOTTOM
- class fieldview.constant.Material[source]¶
Boundary material preset names.
ALUMINUM
BRASS
BRONZE
CHROME
COPPER
GOLD
IRON
SILVER
STEEL
TITANIUM
GLOSSY_PAINT
MATTE_PAINT
SHINY_PLASTIC
DULL_PLASTIC
GLASS
RUBBER
- class fieldview.constant.NumericalFormat[source]¶
Numerical format identifier.
FLOATING_POINT
EXPONENTIAL
POWERS_OF_TEN
- class fieldview.constant.PathsDisplayType[source]¶
Streamline display type identifier.
COMPLETE
FILAMENT
FILAMENT_ARROWS
FILAMENT_SPHERES
GROWING
SPHERES_AND_LINES
SPHERES
POLYSPHERES
DOTS
LINES_OF_SPHERES
LINES_OF_DOTS
RIBBONS
- class fieldview.constant.Plot2DHorizontalAxis[source]¶
2D plot horizontal axis mode.
DISTANCE
X
Y
Z
R
T
- class fieldview.constant.Plot2DPathStyle[source]¶
2D plot path drawing style.
LINES
SYMBOLS
LINES_AND_SYMBOLS
- class fieldview.constant.Plot2DSamplingMode[source]¶
2D plot path sampling mode.
CELL_CROSSINGS
UNIFORM
- class fieldview.constant.Plot3dFileFormat[source]¶
Explicit Plot3D file format when auto-detect is disabled.
FORMATTED
UNFORMATTED
DP_UNFORMATTED
BINARY
- class fieldview.constant.ServerConfig[source]¶
Server configuration selector.
Use
LOCAL/LOCAL_PARALLELor pass a configuration name string (without the.srvextension) found under the sconfig folder.LOCAL
LOCAL_PARALLEL
- class fieldview.constant.ServerType[source]¶
Execution mode for dataset operations.
STANDARD
SHMEM
P4
- class fieldview.constant.StreamlinesSeedCoord[source]¶
Streamline seed coordinate type.
IJK
IJK_REAL
XYZ
- class fieldview.constant.SurfaceFlowMode[source]¶
Surface flow calculation mode.
NO_SLIP
EULER
OFFSET
- class fieldview.constant.SurfaceFlowSeeding[source]¶
Surface flow seeding mode.
LOW_DENSITY
MEDIUM_DENSITY
HIGH_DENSITY
FROM_FILE
- class fieldview.constant.VectorHeadType[source]¶
Vector head type identifier.
HEAD2D: 2D heads.
HEAD3D: 3D heads.
- class fieldview.constant.VectorProjectionType[source]¶
Vector projection type identifier.
TOTAL: Total vector.
YZ: Project to YZ.
XZ: Project to XZ.
XY: Project to XY.
PROJECTED: Projected vector.
Exceptions¶
FieldView-specific exception hierarchy.