Interpolate

Interpolate#

This example demonstrates how to create a new case by interpolating results from an existing case onto a different mesh. It shows how to retrieve an existing project, case, and mesh from the cloud and run a new case initialized from the parent case’s results.

import flow360 as fl

project = fl.Project.from_cloud("PROJECT_ID_HERE")

parent_case = fl.Case(id="PARENT_CASE_ID_HERE")

mesh = fl.VolumeMesh(id="MESH_ID_HERE")

project.run_case(params=parent_case.params, fork_from=parent_case,
                  interpolate_to_mesh=mesh, name="Interpolated case")