Change Account and Submit

Contents

Change Account and Submit#

This example demonstrates how to utilize the shared account feature within the Flow360 Python API. It covers the process of interactively selecting a shared account, submitting a pre-existing volume mesh to initiate a project under that account, and subsequently reverting to the original account context.

 1import flow360 as fl
 2from flow360.examples import OM6wing
 3
 4# choose shared account interactively
 5fl.Accounts.choose_shared_account()
 6
 7# retrieve mesh files
 8OM6wing.get_files()
 9
10# submit mesh
11project = fl.Project.from_volume_mesh(
12    OM6wing.mesh_filename,
13    name="Account change mesh upload from Python",
14)
15
16# leave the account
17fl.Accounts.leave_shared_account()

Notes#

  • Accounts.leave_shared_account() is used to exit the shared account context and return to the user’s primary account.