Fork a Cloud Case#
This example demonstrates the procedure for continue from an existing simulation case stored in the cloud. It shows how to retrieve a parent case, modify specific simulation parameters (in this instance, the angle of attack), and subsequently initiate a new case based on these adjusted parameters while referencing the original case.
1import flow360 as fl
2
3project = fl.Project.from_cloud("PROJECT_ID_HERE")
4
5parent_case = fl.Case(id="PARENT_CASE_ID_HERE")
6
7param: fl.SimulationParams = parent_case.params
8
9# fork with new angle of attack being 1.23 degrees
10param.operating_condition.alpha = 1.23 * fl.u.deg
11
12project.run_case(params=param, fork_from=parent_case, name="Forked case with new alpha")
Notes#
Existing projects and cases are accessed via
Project.from_cloud
andCase
respectively.Simulation parameters are retrieved from the parent case using
parent_case.params
and subsequently modified.The
fork_from
argument withinproject.run_case
specifies the parent case from which the new simulation is derived.