Using exsiting cloud project

Using exsiting cloud project#

In this example we will deomonstrate how to use an existing cloud project.

 1import flow360 as fl
 2
 3my_project = fl.Project.from_cloud("PROJECT_ID_HERE")
 4# Applicable for projects with Geometry being the starting point.
 5geo = my_project.geometry
 6
 7geo.group_faces_by_tag("groupName")
 8
 9# Submit a case with changed freestream velocity and angle of attack
10with fl.SI_unit_system:
11    far_field_zone = fl.AutomatedFarfield()
12
13    params = fl.SimulationParams(
14        meshing=fl.MeshingParams(
15            defaults=fl.MeshingDefaults(
16                boundary_layer_first_layer_thickness=0.001,
17                surface_max_edge_length=1,
18            ),
19            volume_zones=[far_field_zone],
20        ),
21        reference_geometry=fl.ReferenceGeometry(),
22        operating_condition=fl.AerospaceCondition(
23            velocity_magnitude=105,  # Changed
24            alpha=10 * fl.u.deg,  # Changed
25        ),
26        time_stepping=fl.Steady(max_steps=1000),
27        models=[
28            fl.Wall(
29                surfaces=[geo["*"]],
30                name="Wall",
31            ),
32            fl.Freestream(
33                surfaces=[far_field_zone.farfield],
34                name="Freestream",
35            ),
36        ],
37        outputs=[
38            fl.SurfaceOutput(
39                surfaces=geo["*"],
40                output_fields=["Cp", "Cf", "yPlus", "CfVec"],
41            )
42        ],
43    )
44
45my_project.run_case(
46    params=params, name="Case of Simple Airplane from Python with modifidied freestream"
47)