flow360.Case#
- class Case[source]#
Bases:
CaseBase,Flow360ResourceCase component
- property params: Flow360Params | SimulationParams#
returns case params
- has_parent()[source]#
Check if case has parent case
- Returns:
True when case has parent, False otherwise
- Return type:
- property parent: Case#
parent case
- Returns:
parent case object
- Return type:
- Raises:
RuntimeError – When case does not have parent
- property info: CaseMetaV2#
returns metadata info for case
- property info_v2: CaseMetaV2#
returns metadata v2 info for case
- property project_id: str | None#
Returns the project id of the case if case was run with V2 interface.
- property volume_mesh: VolumeMeshV2#
returns volume mesh
- property volume_mesh_id#
returns volume mesh id
- property results: CaseResultsModel#
returns results object to managing case results
- move_to_folder(folder)[source]#
Move the current case to the specified folder.
- Parameters:
folder (Folder) – The destination folder where the item will be moved.
- Returns:
Returns the modified item after it has been moved to the new folder.
- Return type:
self
Notes
This method sends a REST API request to move the current item to the specified folder. The folder parameter should be an instance of the Folder class with a valid ID.
- rename(new_name)[source]#
Rename the current case.
- Parameters:
new_name (str) – The new name for the case.
- classmethod from_local_storage(local_storage_path, meta_data)[source]#
Create a Case instance from local storage.
- Parameters:
local_storage_path (str) – The path to the local storage directory.
meta_data (CaseMeta) –
Case metadata containing:
id (str): The unique identifier for the case.
name (str): The name of the case.
user_id (str): The user ID associated with the case, can be “local”.
- Returns:
An instance of Case with data loaded from local storage.
- Return type: