flow360.VolumeMesh#
- class VolumeMesh[source]#
Bases:
Flow360Resource
Volume mesh component
Attributes
returns mesh no_slip_walls
id
returns id of resource
returns metadata info for resource
name
returns name of resource
returns mesh no_slip_walls
solver_version
returns solver version of resource
status
returns status for resource
Methods
__init__
(id)complete_multipart_upload
(remote_file_name, ...)Completes a multipart upload for the specified remote file name and upload ID.
copy_from_example
(example_id[, name])Create a new volume mesh by copying from an example mesh identified by example_id.
create
(name, params, surface_mesh_id[, ...])Create volume mesh from surface mesh
create_case
(name, params[, tags, solver_version])Create new case :param name: :param params: :param tags: :return:
create_multipart_upload
(remote_file_name)Creates a multipart upload for the specified remote file name and file.
delete
([path, method])Resource delete
download
([to_file, to_folder, overwrite])Download volume mesh file :param to_file: :return:
download_file
(file_name[, to_file, ...])Download file from surface mesh :param file_name: :param to_file: :return:
from_cloud
(mesh_id)Get volume mesh info from cloud :param mesh_id: :return:
from_file
(file_name[, params, name, tags, ...])Upload volume mesh from file :param volume_mesh_name: :param file_name: :param params: :param tags: :param solver_version: :return:
get
([path, method, json, params])Resource get
get_download_file_list
()return list of files available for download
get_info
([force])returns metadata info for resource
is_cloud_resource
()returns true if is cloud resource
open_in_browser
()Open resource in browser
post
(json[, path, method])Resource post
put
(json[, path, method])Resource put
short_description
()upload_part
(remote_file_name, upload_id, ...)Uploads a part of the file as part of a multipart upload.
Inherited Common Usage
- property info#
returns metadata info for resource
- property no_slip_walls#
returns mesh no_slip_walls
- property all_boundaries#
returns mesh no_slip_walls
- download_file(file_name, to_file=None, to_folder='.', overwrite=True, progress_callback=None, **kwargs)[source]#
Download file from surface mesh :param file_name: :param to_file: :return:
- download(to_file=None, to_folder='.', overwrite=True)[source]#
Download volume mesh file :param to_file: :return:
- classmethod from_file(file_name, params=None, name=None, tags=None, solver_version=None, endianess=None, isascii=False)[source]#
Upload volume mesh from file :param volume_mesh_name: :param file_name: :param params: :param tags: :param solver_version: :return:
- classmethod copy_from_example(example_id, name=None)[source]#
Create a new volume mesh by copying from an example mesh identified by example_id.
- Parameters:
- Returns:
A new instance of VolumeMesh copied from the example mesh if successful.
- Return type:
Examples
>>> new_mesh = VolumeMesh.copy_from_example('example_id_123', name='New Mesh')