Cubit Python API  17.10
『cubit』 名称スペース参照

クラス

class   AssemblyItem
  アセンブリツリーインターフェースを実装するクラスです。 詳細...

 
class   Body
  ボディのオブジェクトを定義し、そのほとんどが「Cubit」と並行している。 Body クラス 詳細...

 
class   BoltHoleInfo
  構造のための BoltHoleInfo CubitInterface で使用されるデータ 詳細...

 
class   CFD_BC_Entity
  CFD境界条件データの取得を実装するクラスです。 詳細...

 
class   シオブサーバー
 
class   CubitFailureException
  基盤となるCubit関数が失敗したことを呼び出し元へ通知する例外クラスです。 詳細...

 
class   CubitMessageHandler
  CubitMessageHandler は、ユーザーへのメッセージ表示方法を上書きするための仕組みを提供します。 詳細...

 
class   CubitProgressHandler
 
class   メッセージメッセージメッセージ
 
class   Curve
  カーブのオブジェクトを定義し、そのほとんどがCubitのRefEdgeクラスと並行している。 詳細...

 
class   Dir
  方向オブジェクトを定義する。 詳細...

 
class   Entity
  すべてのジオメトリおよびメッシュタイプのベースクラス。 詳細...

 
class   ExternalExitHandler
 
class   GeomEntity
  基本クラスは、具体的にジオメトリタイプ(Body, Surfaceなど) 詳細...

 
class   InvalidEntityException
  無効なエンティティを使用しようとしたことを呼び出し元へ通知する例外クラスです。 詳細...

 
class   InvalidInputException
  無効な入力が渡されたことを関数の呼び出し元へ通知する例外クラスです。 詳細...

 
class   Loc
  位置オブジェクトを定義します。 詳細...

 
class   MeshErrorFeedback
  メッシュコマンドのフィードバック処理を実装するクラスです。 詳細...

 
class   MeshImport
 
class   Surface
  サーフェスのオブジェクトを定義し、そのほとんどが「Cubit」のRefFaceクラスと並行している。 詳細...

 
class   Vertex
  「頂点」を定義するオブジェクトは、ほとんどがCubitのRefVertexクラスと並行しています。 詳細...

 
class   Volume
  ボリュームのオブジェクトを定義し、ほとんどがCubitのRefVolumeクラスと並行しています。 詳細...

 
class   VolumeGap
  構造のための VolumeGap CubitInterface で使用されるデータ 詳細...

 

関数

def  body (id_in)
  自分のIDでボディを取り戻す。 詳細...

 
def  brick (width, depth=-1, height=-1)
  特定の幅、深さ、高さのブリックを作成します。 詳細...

 
def  copy_body (init_body)
  指定されたボディの複製を作成します。 詳細...

 
def  create_arc_curve (v0, v1, intermediate_point)
  結末の頂点と中間点を使用してカーブの弓を作成します。 詳細...

 
def  create_curve (v0, v1)
  二つの頂点の間でカーブを作る。 詳細...

 
def  create_spline (points, surface_id)
  サーフェス上の3Dポイントの連続を通じてスピリットカーブを作成します。 詳細...

 
def  create_surface (curves)
  境界線のカーブからボディの葉を作成します。 詳細...

 
def  create_vertex (x, y, z)
  指定された座標で頂点を作成します。 詳細...

 
def  create_window ()
 
def  curve (id_in)
  カーブオブジェクトをそのIDで回収します。 詳細...

 
def  シリンダー (height, x_radius, y_radius, top_radius)
  指示されたサイズのシリンダーまたは曲がった「円錐」を作成します。 詳細...

 
def  delete_window (id)
 
def  get_all_cfd_bcs ()
 
def  get_assembly_children (assembly_id)
 
def  get_assembly_items ()
 
def  get_block_cad_material (block_id)
 
def  get_block_string_attributes (block_id)
 
def  get_mesh_error_count ()
 
def  get_mesh_errors ()
 
def  get_top_level_assembly_items ()
 
def  get_volume_cad_material (volume_id)
 
def  get_volumes_for_node (node_name, node_instance)
 
def  move (entity, vector, preview=False)
  翻訳一 Entity 特定のベクトル 詳細...

 
def  プリズム (height, sides, major, minor)
  指定されたサイズのプリズムを作成します。 詳細...

 
def  ピラミッド (height, sides, major, minor, top=0.0)
  特定のサイズのピラミッドを作成します。 詳細...

 
def  reflect (entity, axis, preview=False)
  反映一 Entity 特定の軸(例えば平面正常)について 詳細...

 
def  reset ()
  Cubitの状態をリセットします。 詳細...

 
def  scale (entity, factor, preview=False)
  スケール A Entity 特定の要因によって均一に 詳細...

 
def  set_element_variable (element_ids, variable_name, variables)
  Exodus輸出のための指定されたメッシュ要素にスケール変数を設定します。 詳細...

 
def  set_nodal_variable (node_ids, variable_name, variables)
  スケーラー変数を指定されたメッシュノードに設定します。 詳細...

 
def  スペース (radius, x_cut=0, y_cut=0, z_cut=0, inner_radius=0)
  全てまたは一部のスペースを作成します。 詳細...

 
def  subtract (tool_in, from_in, imprint_in=False, keep_old_in=False)
  ボーリーのサブトラクト操作を実行する:ターゲットボディからツールボディを削除します。 詳細...

 
def  surface (id_in)
  サーフェスオブジェクトをそのIDで回収します。 詳細...

 
def  sweep_curve (curves, along_curves, draft_angle, draft_type, rigid)
  Sweep 1 つまたは複数のカーブをパスに沿ってボディの表を作成します。 詳細...

 
def  トーロス (center_radius, swept_radius)
  特定のサイズのトーラを作成します。 詳細...

 
def  tweak_curve_offset (curves, distances, keep_old=False, preview=False)
  tweak_surface_offsetの2D相当機能です。シートボディ上の指定カーブをオフセットします。 詳細...

 
def  tweak_curve_remove (curves, keep_old=False, preview=False)
  指定されたカーブを削除し、隣接する「サーフェス」をボディの葉に伸ばします。 詳細...

 
def  tweak_surface_offset (surfaces, distances)
  サーフェスを指定するオフセットは距離によって指定されます。 詳細...

 
def  tweak_surface_remove (surfaces, extend_ajoining=True, keep_old=False, preview=False)
  指定されたサーフェスをボディから削除し、選択的に隣接するサーフェスを拡張します。 詳細...

 
def  tweak_vertex_fillet (verts, radius, keep_old=False, preview=False)
  2D シート頂点シャンファー:指定された頂点にシャンファーを作成し、隣接するカーブをオフセットします。 詳細...

 
def  unite (body_in, keep_old_in=False)
  ボーリーユニット操作を実行する:指定されたボディが1つに合併する。 詳細...

 
def  vertex (id_in)
  アイデンティティで「頂点」オブジェクトを回収します。 詳細...

 
def  volume (id_in)
  自分のIDでボリュームを回収します。 詳細...

 
インタフェースコントロール
def  インタ (argv)
  Cubitエンジンをオプションスタートアップの論点でスタートアップします。 詳細...

 
def  破壊 ()
  Cubitを閉じ、アクティブ・ジャーナルファイルを閉じます。 詳細...

 
def  set_cubit_message_handler (hdlr)
  Cubit出力をカスタムメッセージトレーナーにリダイレクトします。 詳細...

 
def  get_cubit_message_handler ()
  現在のCubit message handlerを取得します。 詳細...

 
def  set_exit_handler (hdlr)
  Cubitにカスタマイズされた出力コールバックを設定します。 詳細...

 
def  set_progress_handler (progress)
  Cubitでプロセスバーの通話バックトレーナーを登録します。 詳細...

 
def  replace_progress_handler (progress)
  現在の進歩バーのコールバックトレーダーを置き換え、古いトレーダーを返します。 詳細...

 
def  set_cubit_interrupt (interrupt)
  Cubitで中断可能な操作を有効または無効にします。 詳細...

 
システムコントロールとデータ
def  set_playback_paused_on_error (pause)
  プレイバックがエラーで停止するかどうかを設定します。 詳細...

 
def  is_playback_paused_on_error ()
  プレイバックが間違って休憩されているかどうかを問う。 詳細...

 
def  pause_playback ()
  ジャーナリズムを直ちに再生する。 詳細...

 
def  stop_playback ()
  雑誌プレイバックを完全に止める。 詳細...

 
def  resume_playback ()
  休憩した雑誌プレイバックを再生します。 詳細...

 
def  is_playback_paused ()
  ジャーナルプレイバックが中止されているかどうかを確認します。 詳細...

 
def  developer_commands_are_enabled ()
  開発者コマンドが有効であるかどうかを確認します。 詳細...

 
def  get_interface (interface_name)
  名前によってCubitインターフェイスをリセットします。 詳細...

 
def  release_interface (instance)
  以前リリースされたCubitインターフェイスをリリース。 詳細...

 
def  add_filename_to_recent_file_list (filename)
  GUIファイルメニューでCubitの最新ファイルリストにファイル名を追加します。 詳細...

 
def  get_version ()
  現在のCubitバージョンのストリップを復元します。 詳細...

 
def  get_revision_date ()
  Cubitの修正日を更新します。 詳細...

 
def  get_build_number ()
  Cubitの構築番号を復元します。 詳細...

 
def  get_acis_version ()
  ACISコアバージョンストリップを復元します。 詳細...

 
def  get_acis_version_as_int ()
  ACISコアバージョンを全体として復元します。 詳細...

 
def  get_sgm_version ()
  SGM(Solid Geometry Manager)のバージョンを取得します。 詳細...

 
def  get_exodus_version ()
  Exodus『メッシュ』図書館のバージョンを復元します。 詳細...

 
def  get_meshgems_version ()
  MeshGems図書館のバージョンを復元します。 詳細...

 
def  get_graphics_version ()
  VTK(Visualization Toolkit)バージョンはCubitによって使用されます。 詳細...

 
def  get_python_version ()
  Pythonの翻訳バージョンをCubitによって使用します。 詳細...

 
def  get_default_geometry_engine ()
  デフォルトモデラーエンジンの名前を取得します。 詳細...

 
def  is_catia_engine_available ()
  CATIAのジオメトリエンジンが利用可能であるかどうかを決定する。 詳細...

 
def  is_acis_engine_available ()
  ACISのジオメトリエンジンが利用可能であるかどうかを決定する。 詳細...

 
def  is_opencascade_engine_available ()
  OpenCASCADEのジオメトリエンジンが利用可能であるかどうかを決定する。 詳細...

 
def  is_special_build (build_type)
  特別な構築タイプが利用可能であるかどうかを確認します。 詳細...

 
def  print_cmd_options ()
  Cubitのサポートされたスタートアップオプションを表示します。 詳細...

 
def  is_modified ()
  モデルが輸入または最後の保存以来変更されたかどうかを確認します。 詳細...

 
def  set_modified ()
  モデルのmodified状態を"unmodified"へリセットします。 詳細...

 
def  is_undo_save_needed ()
  モデルが undo チェックポイント保存を必要としているかどうかを確認します。 詳細...

 
def  set_undo_saved ()
  モデルに不必要な旗を明るくする。 詳細...

 
def  is_performing_undo ()
  操作が現在実行されているかどうかを問う。 詳細...

 
def  was_last_cmd_undoable ()
  最後に実行されたコマンドが不適切かどうかを報告する。 詳細...

 
def  get_undo_enabled ()
  undo が現在有効であるかどうかを問う。 詳細...

 
def  number_undo_commands ()
  ステックにコマンドの数を調べる。 詳細...

 
def  is_command_echoed ()
  Cubitがコンソールにコマンドを表示するかどうかを確認します。 詳細...

 
def  get_command_from_history (command_number)
  Cubitの歴史バッファーから特定のコマンドを取り戻す。 詳細...

 
def  get_command_history_count ()
  コマンドの番号をCubitの歴史バッファーで入手してください。 詳細...

 
def  get_next_command_from_history ()
  次のコマンドを歴史バッファーから取得します。 詳細...

 
def  get_previous_command_from_history ()
  歴史バッファーから前のコマンドを取得します。 詳細...

 
def  write_to_journal (words)
  Cubitのジャーナルと録音ストリームにカスタマイズされたエントリーを追加します。 詳細...

 
def  journal_commands (state)
  Cubitコマンドの記録を有効または無効にします。 詳細...

 
def  is_command_journaled ()
  Cubitがコマンドを記録しているかどうかを問う。 詳細...

 
def  get_current_journal_file ()
  現在の雑誌ファイルのフィルネームを取得します。 詳細...

 
def  is_working_dir_set ()
  「Workingdir」のオプションがCubitスタートアップで提供されたかどうかを確認します。 詳細...

 
def  app_util ()
  グローバルサービスのためのAppUtilインターフェイスをCubitに戻します。 詳細...

 
def  cgm_iface ()
  CGMベースのジオメトリインターフェイスをCubitに戻します。 詳細...

 
def  cgm ()
  Cubitによって使用された原始CGMAppコアインスタンスを返します。 詳細...

 
コマンドユーティリティ
def  cmd (input_string)
  直ちにCubitのコマンドストリップを実行します(モデル状態を変更します)。 詳細...

 
def  silent_cmd (input_string)
  Cubitのコマンドを実行し、エコインやバルボス出力なしで実行します。 詳細...

 
def  print_info (message)
  Cubitのメッセージシステムを通じてメッセージを印刷します。 詳細...

 
def  parse_cubit_list (type, entity_list_string)
  Cubitスタイルのエンティティ選択表現をIDリストに分割します。 詳細...

 
def  parse_locations (location_str)
  Cubitの位置仕様を具体的な3D座標に分けます。 詳細...

 
def  string_from_id_list (ids)
  インテガーのリストをコンパクトなCubitスタイルのIDストリップに変換します。 詳細...

 
def  get_id_string (entity_ids, sort=True)
  インテガーのリストをコンパクトなCubitスタイルのID範囲列に変換します。 詳細...

 
def  print_raw_help (input_line, order_dependent, consecutive_dependent)
  コマンドを入力する際にコンテキスト感性の助けを表示します。 詳細...

 
def  get_error_count ()
  現在のCubitセッションにおけるエラーの総数を修正します。 詳細...

 
def  get_cubit_digits_setting ()
  現在のCubit "digits"設定を取得します。 詳細...

 
def  is_part_of_list (target_id, id_list)
  ID リストに ID が存在するかどうかを確認します。 詳細...

 
def  get_last_id (entity_type)
  特定のタイプの最後に作成されたエンティティのIDを取得します。 詳細...

 
def  entity_exists (entity_type, id)
  指定されたタイプおよびIDのエンティティが存在するかどうかを確認します。 詳細...

 
def  get_idless_signature (entity_type, entity_id)
  ジオメトリまたはメッシュのエンティティの無名の署名を得る。 詳細...

 
def  get_idless_signatures (entity_type, entity_id_list)
  ジオメトリまたはメッシュのエンティティの範囲の無名の署名を取得します。 詳細...

 
def  is_file_hdf5 (filename)
  ファイルがHDF5ファイルであるかどうかを確認します。 詳細...

 
def  get_aprepro_vars ()
  現在のAprpro変数名をリトリウムします。 詳細...

 
def  get_aprepro_value_as_string (variable_name)
  Aprepro 変数のストレージ値を取得します。 詳細...

 
def  get_aprepro_numeric_value (variable_name)
  指定された Aprepro 変数の数値値を取得します。 詳細...

 
Graphics Viewing
def  get_view_distance ()
  カメラの位置と焦点の間の距離を得る。 詳細...

 
def  get_view_at ()
  カメラの現在のat(ターゲット)ポイントを取得します。 詳細...

 
def  get_view_from ()
  カメラの現在の'from'(位置)点を取得します。 詳細...

 
def  get_view_up ()
  カメラの'up'方向ベクトルを取得します。 詳細...

 
def  reset_camera ()
  カメラの表示を再設定し、補助グラフィックウィンドウを明るくします。 詳細...

 
def  flush_graphics ()
  強制直ちに操作グラフィックを表示する。 詳細...

 
def  is_perspective_on ()
  展望プロジェクションが有効であるかどうかを確認します。 詳細...

 
def  is_clipping_plane_on ()
  現在のクリップ平面の状態を取得する:rtype: boolean. 詳細...

 
def  is_clipping_plane_manipulation_on ()
  現在のクリップ平面操作の状態を取得する:rtype: boolean. 詳細...

 
def  is_occlusion_on ()
  閉鎖が有効であるかどうかを確認します。 詳細...

 
def  is_scale_visibility_on ()
  スケールの記録がグラフィックウィンドウで見られるかどうかを確認します。 詳細...

 
def  is_mesh_visibility_on ()
  メッシュグラフィックがグラフィックウィンドウで表示されているかどうかを確認します。 詳細...

 
def  is_geometry_visibility_on ()
  ジオメトリグラフィックがグラフィックウィンドウで見られるかどうかを確認します。 詳細...

 
def  get_rendering_mode ()
  現在のグラフィック・レンダーモードを取得します。 詳細...

 
def  set_rendering_mode (mode)
  現在のグラフィック・レンダーモードを設定する(「グラフィック・モード <オプション>」に等しい)。 詳細...

 
def  set_label_type (entity_type, label_flag)
  特定のエンティティタイプのためのラベルディスプレイタイプを設定します。 詳細...

 
def  get_label_type (entity_type)
  特定のエンティティタイプの現在のラベル表示タイプを取得します。 詳細...

 
Graphics Entity Selections
def  clear_drawing_set (set_name)
  すべてのジオメトリを名付けされた絵画セット(『たとえば』、メッシュプレビュー)で明るくします。 詳細...

 
def  unselect_entity (entity_type, entity_id)
  現在選択されているエンティティを選択しないでください。 詳細...

 
def  get_rubberband_shape ()
  現在のゴムバンドの選択形状を取得します。 詳細...

 
def  is_select_partial_on ()
  部分選択が有効であるかどうかを確認します。 詳細...

 
def  clear_highlight ()
  すべてのエンティティを明確にします。 詳細...

 
def  clear_preview ()
  他のディスプレイ設定に影響を及ぼさずに明確なプレビューグラフィック。 詳細...

 
def  highlight (entity_type, entity_id)
  グラフィックウィンドウで指定されたエンティティを選択せずに表示します。 詳細...

 
def  get_selected_ids ()
  すべての現在選択されているエンティティIDを選択したオーダーで取り戻します。 詳細...

 
def  get_selected_id (index)
  インデックスによって選択されたエンティティIDを取得します。 詳細...

 
def  get_selected_type (index)
  インデックスによって選択されたエンティティタイプを取得します。 詳細...

 
def  get_pick_type ()
  エンティティの選択のための現在の選択モードを取得します。 詳細...

 
def  set_pick_type (pick_type, silent=False)
  エンティティの選択のための現在の選択モードを設定します。 詳細...

 
def  set_filter_types (num_types, filter_types)
  複数の選択フィルタータイプをグラフィック選択に設定します。 詳細...

 
def  add_filter_type (filter_type)
  グラフィック・ピック・フィルターにエンティティタイプを追加します。 詳細...

 
def  remove_filter_type (filter_type)
  グラフィック・ピックフィルターからエンティティタイプを削除します。 詳細...

 
def  is_type_filtered (filter_type)
  特定のエンティティタイプが現在、選択から排除されているかどうかを確認します。 詳細...

 
def  get_pick_filters ()
  エンティティタイプのリストを復元し、現在、選択することを許可しています。 詳細...

 
def  clear_picked_list ()
  現在選ばれたエンティティのリストを明らかにします。 詳細...

 
def  step_next_possible_selection ()
  現在の選択リストの次のエンティティに進みます。 詳細...

 
def  step_previous_possible_selection ()
  現在の選択リストのエンティティに戻ります。 詳細...

 
def  print_current_selections ()
  すべての選択したエンティティとそのタイプを印刷します。 詳細...

 
def  print_currently_selected_entity ()
  現在選択されたエンティティの詳細を印刷します。 詳細...

 
def  current_selection_count ()
  現在の選択リストにエンティティの番号を入力します。 詳細...

 
メッシングスキームサポート
def  get_default_element_type ()
  現在のデフォルト要素タイプをメッシングに戻します。 詳細...

 
def  is_volume_meshable (volume_id)
  ボリュームが現在のメッシングスキームの下で測定可能であるかどうかを確認します。 詳細...

 
def  is_surface_meshable (surface_id)
  サーフェスが現在のメッシングスキームの下で測定可能であるかどうかを確認します。 詳細...

 
def  get_vertex_type (surface_id, vertex_id)
  指定された頂点のサーフェスの頂点のタイプを返します。 詳細...

 
def  get_submap_corner_types (surface_id)
  頂点IDとその角型コードのリストをサーフェスサブマップに取得します。 詳細...

 
def  get_curve_bias_type (curve_id)
  カーブに適用されたバイアスのスキームタイプを回復します。 詳細...

 
def  get_curve_bias_geometric_factor (curve_id)
  主なジオメトリの進歩要因をカーブを破壊するために使用します。 詳細...

 
def  get_curve_bias_geometric_factor2 (curve_id)
  二重バイアスのカーブのための二次的なジオメトリ進歩因子を取得します。 詳細...

 
def  get_curve_bias_first_interval_length (curve_id)
  biased curve上の最初のinterval長を取得します。 詳細...

 
def  get_curve_bias_first_interval_fraction (curve_id)
  最初のインターバルサイズとして使用されたカーブの長さの分割を回収します。 詳細...

 
def  get_curve_bias_fine_size (curve_id)
  「薄いサイズ」パラメーターをカーブのバイアスに取得する場合、設定します。 詳細...

 
def  get_curve_bias_coarse_size (curve_id)
  「コアサイズ」パラメーターをカーブのバイアスに取得する場合、設定します。 詳細...

 
def  get_curve_bias_first_last_ratio1 (curve_id)
  最初から最後のインターバルの比率を、バイアスのカーブの始まりに取り戻します。 詳細...

 
def  get_curve_bias_first_last_ratio2 (curve_id)
  最初から最後のインターバルの比率を、バイアスのカーブの終わりに取り戻す。 詳細...

 
def  get_curve_bias_last_first_ratio1 (curve_id)
  最後から最初のインターバルの比率を、バイアスのカーブの始まりに取り戻します。 詳細...

 
def  get_curve_bias_last_first_ratio2 (curve_id)
  最後から最初のインターバルの比率を、バイアスのカーブの終わりに取り戻す。 詳細...

 
def  get_curve_bias_from_start (curve_id, value)
  バイアスがカーブのスタート頂点から測定されているかどうかを決定する。 詳細...

 
def  get_curve_bias_from_start_set (curve_id)
  「スタートからビアス」の旗が明確にカーブに設定されているかどうかを確認します。 詳細...

 
def  get_curve_bias_start_vertex_id (curve_id)
  「頂点」IDをカーブのバイアスの始まりとして指定します。 詳細...

 
def  get_curve_mesh_scheme_curvature (curve_id)
  曲線メッシュスキームの適応値をカーブに戻します。 詳細...

 
def  get_curve_mesh_scheme_pinpoint_locations (curve_id)
  カーブのためのメッシュスキームの位置を回復します。 詳細...

 
def  get_mesh_scheme (geometry_type, entity_id)
  メッシングのスキームをジオメトリのエンティティに適用します。 詳細...

 
def  get_smooth_scheme (geometry_type, entity_id)
  指定されたジオメトリのエンティティのためにスムージングのスキームを取り戻します。 詳細...

 
def  get_mesh_scheme_firmness (geometry_type, entity_id)
  指定された「サーフェス」またはボリュームのためにメッシングのスキームの固定性を回復します。 詳細...

 
def  get_tetmesh_proximity_flag (volume_id)
  四面体要素のメッシングのボリュームの近く層旗を取得します。 詳細...

 
def  get_tetmesh_proximity_layers (volume_id)
  四面体要素のメッシングの近く層の数をボリュームに取得します。 詳細...

 
def  get_tetmesh_growth_factor (volume_id)
  四面体要素の成長因子をボリュームでメッシングする。 詳細...

 
def  get_tetmesh_parallel ()
  グローバル・パラレル・テトメッシャー・フラッグ(‘HPC)の設定を取得します。 詳細...

 
def  get_tetmesh_num_anisotropic_layers ()
  異方性の四面体要素層のグローバル数を設定します。 詳細...

 
def  get_tetmesh_optimization_level ()
  グローバルな四面体要素のメッシングの最適化レベルを取得します。 詳細...

 
def  get_tetmesh_insert_mid_nodes ()
  四面体要素メッシングの間に中間エッジ(平方)のノードの入力を示すグローバルフラッグを取得します。 詳細...

 
def  get_tetmesh_optimize_mid_nodes ()
  四面体要素メッシングの間にエッジのノードの最適化を示すグローバルフラッグを取得します。 詳細...

 
def  get_tetmesh_optimize_overconstrained_tets ()
  過剰に制限されたテトラヘドラの最適化を示すグローバルフラッグを取得します。 詳細...

 
def  get_tetmesh_optimize_overconstrained_edges ()
  過剰に制限されたエッジの最適化を示すグローバルフラッグを取得します。 詳細...

 
def  get_tetmesh_minimize_slivers ()
  スライバーテトラヘドラの最小化を示すグローバルフラッグを取得します。 詳細...

 
def  get_tetmesh_minimize_interior_points ()
  四面体要素のメッシングにおける内部点の最小化を示すグローバルフラッグを取得します。 詳細...

 
def  get_tetmesh_relax_surface_constraints ()
  四面体要素メッシングにおけるサーフェスメッシュ制限のリラックスを示すグローバルフラッグを取得します。 詳細...

 
def  get_mesh_geometry_approximation_angle (geometry_type, entity_id)
  特定のエンティティで TriMesh/TetMesh のジオメトリ接近の角度を取得します。 詳細...

 
def  get_trimesh_surface_gradation ()
  トリメシュスキームのためのグローバルサーフェスのメッシュの学位を取得します。 詳細...

 
def  get_trimesh_volume_gradation ()
  TriMeshスキームのためのグローバルボリュームのメッシュの学位を取得します。 詳細...

 
def  get_trimesh_use_surface_proximity ()
  トリメシュのスキームのためのグローバルサーフェスの近隣の旗を取り戻す。 詳細...

 
def  get_trimesh_surface_proximity_ratio ()
  グローバルサーフェスの近距離比率をトリメシュスキームに戻す。 詳細...

 
def  get_trimesh_target_min_size (geometry_type, entity_id)
  ターゲットの最小サイズ三角形を特定のジオメトリのエンティティに設定し、TriMeshのスキームに設定します。 詳細...

 
def  get_trimesh_geometry_sizing ()
  グローバルジオメトリサイズの国旗をトリメシュスキームに取り戻す。 詳細...

 
def  get_trimesh_num_anisotropic_layers ()
  異方性の三角形層のグローバル数をTriMeshのスキームに取り戻す。 詳細...

 
def  get_trimesh_split_overconstrained_edges ()
  トリメシュのスキームで過剰なエッジを分割するためのグローバルフラッグを取り戻す。 詳細...

 
def  get_trimesh_tiny_edge_length ()
  グローバルな小さなエッジ長さをトリメシュスキームに取り戻す。 詳細...

 
def  get_trimesh_ridge_angle ()
  トリメシュスキームのグローバルリッジの角度を取り戻す。 詳細...

 
def  get_node_constraint ()
  ノード制限が有効であるかどうかを問う(中間ノードをジオメトリに移動する)。 詳細...

 
def  get_node_constraint_value ()
  ノード制限設定の数値値を調べる。 詳細...

 
def  get_node_constraint_smart_threshold ()
  スマートノード制限の現在の品質制限を調べる。 詳細...

 
def  get_node_constraint_smart_metric ()
  ノード制限のための現在の品質指標を検索します。 詳細...

 
def  get_dbl_sculpt_default (variable)
  sculptと呼ばれるパラメーターのデフォルト値を返します。 詳細...

 
def  get_int_sculpt_default (variable)
  Retrieve default integer-valid sculpt パラメーター 詳細...

 
def  get_bool_sculpt_default (variable)
  Retrieve default boolean-valued sculpt パラメーター。 詳細...

 
def  get_string_sculpt_default (variable)
  Retrieve default string-valued sculpt パラメーター。 詳細...

 
Mesh Sizing Support
def  get_mesh_intervals (geometry_type, entity_id)
  指定されたエンティティのためにメッシュのインターバルを数える。 詳細...

 
def  get_mesh_size (geometry_type, entity_id)
  効果的なターゲットエッジの長さをメッシングのエンティティに戻します。 詳細...

 
def  get_requested_mesh_size (geometry_type, id)
  メッシュサイズをジオメトリのエンティティに明確に設定します。 詳細...

 
def  has_valid_size (geometry_type, entity_id)
  ジオメトリのエンティティが有効なサイズであるかどうかを確認します。 詳細...

 
def  get_mesh_interval_firmness (geometry_type, entity_id)
  指定されたジオメトリエンティティのインターバルの固定性を回復します。 詳細...

 
def  get_requested_mesh_interval_firmness (geometry_type, entity_id)
  特定のエンティティのために明示的に要求されたインターバルの固定性を回復します。 詳細...

 
def  get_mesh_size_type (geometry_type, entity_id)
  指定されたエンティティのメッシュサイズ設定タイプを返します。 詳細...

 
def  get_requested_mesh_size_type (geometry_type, entity_id)
  指定されたエンティティで明示的に要求されたメッシュサイズ設定タイプを復元します。 詳細...

 
def  auto_size_needs_to_be_calculated ()
  自動メッシュサイズが時代遅れであり、再計算が必要であるかどうかを確認します。 詳細...

 
def  get_default_auto_size ()
  Cubitのヘウリスティックデフォルト自動メッシュサイズを現在のモデルに設定します。 詳細...

 
def  get_requested_mesh_intervals (geometry_type, entity_id)
  メッシュのインターバルの数をジオメトリのエンティティに明確に設定します。 詳細...

 
def  is_interval_count_odd (surface_id)
  サーフェスのいずれかのループがメッシュのインターバルの異常な数を持っているかどうかを確認します。 詳細...

 
def  get_auto_size (geometry_type, entity_id_list, auto_factor)
  エンティティのセットのための自動メッシュサイズを予測します。 詳細...

 
def  get_element_budget (element_type, entity_id_list, auto_factor)
  定められたサイズの設定のボリュームセットの合計要素の数を推定します。 詳細...

 
def  get_exodus_sizing_function_variable_name ()
  Exodusに基づくサイズ機能の変数名を返します。 詳細...

 
def  get_exodus_sizing_function_file_name ()
  Exodusサイズ機能ファイル名を返します。 詳細...

 
def  get_sizing_function_name (entity_type, entity_id)
  メッシングサイズ機能のタイプを「サーフェス」またはボリュームに戻します。 詳細...

 
def  exodus_sizing_function_file_exists ()
  Exodusサイズ機能ファイルが現在存在しているかどうかを確認します。 詳細...

 
Mesh Query Support
def  is_meshed (geometry_type, entity_id)
  指定されたジオメトリのエンティティがマッサージされたかどうかを決定する。 詳細...

 
def  get_hex_count ()
  現在のモデルで六面体要素の数を回収します。 詳細...

 
def  get_pyramid_count ()
  現在のモデルにおけるピラミッド要素の数を回収します。 詳細...

 
def  get_tet_count ()
  現在のモデルで四面体要素の数を回収します。 詳細...

 
def  get_quad_count ()
  現在のモデルにおける四方的な要素の数を回収します。 詳細...

 
def  get_tri_count ()
  現在のモデルにおける三角的な要素の数を回収します。 詳細...

 
def  get_edge_count ()
  現在のモデルでサーフェスの要素の間でエッジの数を回収します。 詳細...

 
def  get_sphere_count ()
  現在のモデルで要素のスペースの数を回収します。 詳細...

 
def  get_wedge_count ()
  現在のモデルで要素の数を回収します。 詳細...

 
def  get_node_count ()
  現在のモデルでノードの数を回収します。 詳細...

 
def  get_element_count ()
  現在のモデルで輸出可能な要素の数を回収します。 詳細...

 
def  get_volume_element_count (volume_id)
  3D要素の数を指定されたボリュームで回収します。 詳細...

 
def  get_surface_element_count (surface_id)
  指定された「サーフェス」に要素の数を返します。 詳細...

 
def  volume_contains_tets (volume_id)
  指定されたボリュームに四面体要素が含まれているかどうかを決定する。 詳細...

 
def  get_hex_sheet (node_id_1, node_id_2)
  六面体要素を構成するすべての六面体要素のIDを2つのノードを通して取り戻す。 詳細...

 
def  get_mesh_edge_length (edge_id)
  指定されたメッシュのエッジの長さを計算します。 詳細...

 
def  get_meshed_volume_or_area (geometry_type, entity_ids)
  合計メッシュボリュームまたはサーフェス面積は、CADエンティティまたはメッシュ要素のために。 詳細...

 
def  get_elem_quality_stats (entity_type, id_list, metric_name, single_threshold, use_low_threshold, low_threshold, high_threshold, make_group)
  参照パラメーターなしでget_quality_statsのPythonフレンドリーなバージョン。 詳細...

 
def  get_quality_stats_at_geometry (geom_type, mesh_type, geom_id_list, expand_levels, metric_name, single_threshold, use_low_threshold, low_threshold, high_threshold, make_group)
  Python友好的版のget_quality_statsがジオメトリエンティティで動作する。 詳細...

 
def  get_quality_value (mesh_type, mesh_id, metric_name)
  特定の品質指標の値を単一のメッシュの要素に返します。 詳細...

 
def  get_quality_values (mesh_type, mesh_ids, metric_name)
  複数のメッシュの要素の品質指標値を返します。 詳細...

 
def  calculate_timestep_estimate (entity_type, entity_ids)
  要素のサイズと物質特性に基づいてタイムステップを推定します。 詳細...

 
def  calculate_timestep_estimate_with_props (entity_type, entity_id_list, density, youngs_modulus, poissons_ratio)
  安定した時間のステップを、ユーザーによって指定された材料の特性を使用して推定します。 詳細...

 
def  get_target_timestep ()
  現在のターゲットタイムステップ範囲は、密度複数メトリックに使用されます。 詳細...

 
def  get_overconstrained_tets_in_volumes (volumes)
  指定されたボリュームの範囲内で過剰に制限されたテトラヘドラのIDを取得します。 詳細...

 
def  best_edge_to_collapse_interior_node (node_id)
  崩壊するのに最適なエッジを見つけて、三角形のメッシュの中で内側のノードを取り除く。 詳細...

 
def  get_edges_to_swap (curve_id)
  エッジを三角形でナイフエッジのカーブで取得し、交換のための候補者です。 詳細...

 
def  get_n_largest_distances_between_meshes (n, entity_type1, ids1, entity_type2, ids2)
  最大のノードから要素の距離を2つのメッシュの間で見つける。 詳細...

 
ジオメトリトポロジーサポート
def  get_entities (entity_type)
  特定のタイプ(ジオメトリおよびメッシュ)のすべての現在のエンティティのIDを取得します。 詳細...

 
def  get_current_ids (entity_type)
  特定のタイプのすべての現在のジオメトリエンティティのIDを取得します。 詳細...

 
def  get_body_count ()
  モデルにボディの現在の番号を入力します。 詳細...

 
def  get_volume_count ()
  モデルにボリュームの現在の番号を入力します。 詳細...

 
def  get_surface_count ()
  モデルにサーフェスの現在の番号を入力します。 詳細...

 
def  get_curve_count ()
  モデルにカーブの現在の番号を入力します。 詳細...

 
def  get_vertex_count ()
  モデルに「頂点」の現在の番号を入力します。 詳細...

 
def  get_curve_count_in_volumes (target_volume_ids)
  指定されたボリュームにカーブの現在の番号を入力します。 詳細...

 
def  get_relatives (source_geometry_type, source_id, target_geom_type)
  特定のエンティティの親族(親または子供)を取得します。 詳細...

 
def  are_adjacent_surfaces (surface_ids)
  2つ以上のサーフェスが少なくとも1つのマニュアルカーブを共有しているかどうかを返す。 詳細...

 
def  are_adjacent_curves (curve_ids)
  二つまたは複数のカーブが少なくとも一つのマニフルな頂点を共有しているかどうかを返す。 詳細...

 
def  get_adjacent_surfaces (geometry_type, entity_id)
  指定されたサーフェス(サーフェス自体を含む)に隣接するサーフェスのリストを取得します。 詳細...

 
def  get_adjacent_volumes (geometry_type, entity_id)
  指定されたエンティティに隣接するボリュームのリストを取得します。 詳細...

 
def  get_num_volume_shells (volume_id)
  シェル数をボリュームで取得します。 詳細...

 
def  get_valence (vertex_id)
  特定の頂点のためのバレンタイン(事件番号エッジ)を取得します。 詳細...

 
def  get_list_of_free_ref_entities (geometry_type)
  すべてのジオメトリタイプの無料(無関連)エンティティを取得します。 詳細...

 
def  get_owning_body (geometry_type, entity_id)
  特定のエンティティのために所有するボディを取得します。 詳細...

 
def  get_owning_volume (geometry_type, entity_id)
  指定されたエンティティのために所有するボリュームを取得します。 詳細...

 
def  get_owning_volume_by_name (entity_name)
  エンティティの所有するボリュームをその名前で取得します。 詳細...

 
def  get_common_curve_id (surface_1_id, surface_2_id)
  二つのサーフェスによって共有されたカーブを返す。 詳細...

 
def  get_common_vertex_id (curve_1_id, curve_2_id)
  二つのカーブによって共有された頂点を返す。 詳細...

 
def  get_connected_surfaces (surf_ids)
  特定のセットに接続されたサーフェスを見つける。 詳細...

 
def  gather_surfaces_by_orientation (seed_surf_ids, all_surf_ids)
  サーフェスを共有するエッジを通して接続し、サーフェスの封鎖を形成します。 詳細...

 
ジオメトリ属性サポート
def  is_visible (geometry_type, entity_id)
  特定のジオメトリのエンティティのための検索可視性。 詳細...

 
def  is_virtual (geometry_type, entity_id)
  特定のジオメトリのエンティティが仮想であるかどうかを問う。 詳細...

 
def  contains_virtual (geometry_type, entity_id)
  特定のジオメトリのエンティティの子供のエンティティが仮想であるかどうかを問う。 詳細...

 
def  is_merged (geometry_type, entity_id)
  特定のジオメトリのエンティティが別のエンティティに合併したかどうかを確認します。 詳細...

 
def  get_merge_setting (geometry_type, entity_id)
  特定のエンティティのために合併モード(‘on’、‘off’、または‘auto’)を取得します。 詳細...

 
def  get_source_surfaces (volume_id)
  指定ボリュームのsweep source surfaceリストを取得します。 詳細...

 
def  get_target_surfaces (volume_id)
  指定ボリュームのsweep target surfaceリストを取得します。 詳細...

 
def  get_entity_modeler_engine (geometry_type, entity_id)
  特定のエンティティのためのモデラーエンジンタイプを取得します。 詳細...

 
def  get_entity_name (entity_type, entity_id, no_default=False)
  指定されたエンティティの名前を取得します。 詳細...

 
def  get_entity_names (entity_type, entity_id, no_default=False, first_name_only=False)
  指定されたエンティティと関連付けられたすべての名前を取得します。 詳細...

 
def  set_entity_name (entity_type, entity_id, new_name)
  指定されたエンティティの名前を設定します。 詳細...

 
def  get_id_from_name (name)
  エンティティの完全なIDをその名前で取り戻します。 詳細...

 
def  get_all_ids_from_name (geo_type, name)
  指定されたジオメトリタイプのエンティティのすべてのIDを取得し、その名前は特定のプレフィックスから始まります。 詳細...

 
def  get_namespace_list ()
 
def  get_entity_color (entity_type, entity_id)
  指定されたエンティティの色を得る。 詳細...

 
def  get_entity_color_index (entity_type, entity_id)
  指定されたエンティティの色指数を取得します。 詳細...

 
def  is_multi_volume (body_id)
  ボディが複数のボリュームを含んでいるかどうかを確認します。 詳細...

 
def  is_sheet_body (volume_id)
  ボリュームがボディ(ゼロ厚さ)であるかどうかを決定する。 詳細...

 
ジオメトリ Query サポート
def  get_vertex_coordinates (entityID)
  「頂点」の3D座標を取得します。 詳細...

 
def  get_distance_between (vertex_id_1, vertex_id_2)
  二つの頂点の間のエウクリディアの距離を得る。 詳細...

 
def  get_curve_type (curve_id)
  指定されたカーブのためのカーブタイプを取得します。 詳細...

 
def  get_curve_length (curve_id)
  指定されたカーブの3D長さを取得します。 詳細...

 
def  get_arc_length (curve_id)
  指定されたカーブのパラメトリック(arc) 長さを取得します。 詳細...

 
def  get_distance_from_curve_start (x_coordinate, y_coordinate, z_coordinate, curve_id)
  距離をカーブに沿って、その始まりからカーブの最も近い点まで取得します。 詳細...

 
def  get_curve_radius (curve_id)
  指定されたカーブの半径を計算します。 詳細...

 
def  get_curve_center (curve_id)
  指定されたカーブの中心点を回復します。 詳細...

 
def  get_arc_center_radius (curve_id)
  指定された弓のカーブの中心点と半径を得る。 詳細...

 
def  evaluate_exterior_angle_at_curve (curve_id, volume_id)
  外側の角度を単一のカーブにボリュームに関して返します。 詳細...

 
def  evaluate_exterior_angle (curve_list, test_angle)
  隣接する「サーフェス」の間の外側の角度が特定の限界より低いカーブを見つける。 詳細...

 
def  get_similar_curves (curve_ids, tol=1e-3, use_percent_tol=True, on_similar_vols=True)
  あるカーブに似た長さを含むカーブを見つける。 詳細...

 
def  get_surface_type (surface_id)
  指定されたサーフェスのためのサーフェスタイプを取得します。 詳細...

 
def  get_surface_normal (surface_id)
  指定されたサーフェスの中心にあるユニット法線ベクトルを取得します。 詳細...

 
def  get_surface_normal_at_coord (surface_id, coord)
  ユニット法線ベクトルをサーフェスの指定点で取得します。 詳細...

 
def  get_surface_centroid (surface_id)
  グラフィック面積に基づいて指定された「サーフェス」の約セントロイドを得る。 詳細...

 
def  get_surface_sense (surface_id)
  指定サーフェスの向き("sense")を取得します。 詳細...

 
def  is_surface_planer (surface_id)
  特定のサーフェスが計画的であるかどうかを問う。 詳細...

 
def  is_surface_planar (surface_id)
 
def  get_surface_area (surface_id)
  指定された「サーフェス」の面積を取得します。 詳細...

 
def  get_hydraulic_radius_surface_area (surface_id)
  指定された「サーフェス」の水力半径を計算します。 詳細...

 
def  get_surface_principal_curvatures (surface_id)
  真ん中のサーフェスの主な曲線を手に入れる。 詳細...

 
def  evaluate_surface_angle_at_vertex (surf_id, vert_id)
  内側の角度を指定された「サーフェス」の頂点に戻します。 詳細...

 
def  project_unit_square (pts, surface_id, quad_id, node00_id, node10_id)
  地図は単位平方(四角形の座標)で表示し、それらをサーフェスに投げ込む。 詳細...

 
def  get_similar_surfaces (surface_ids, tol=1e-3, use_percent_tol=True, on_similar_vols=True)
  サーフェスと同様の面積とカーブを数えるサーフェスを見つける。 詳細...

 
def  print_surface_summary_stats ()
  モデル内のすべてのサーフェスの概要統計を印刷します。 詳細...

 
def  get_volume_area (volume_id)
  指定されたボリュームの「サーフェス」の総面積を取得します。 詳細...

 
def  get_volume_volume (vol_id)
  指定されたボリュームの閉じたボリュームを取得します。 詳細...

 
def  get_hydraulic_radius_volume_area (volume_id)
  指定されたボリュームの水素半径を計算します。 詳細...

 
def  get_similar_volumes (volume_ids, tol=1e-3, use_percent_tol=True)
  ボリュームと同様のサイズと顔の数をボリュームに表示します。 詳細...

 
def  get_bounding_box (geometry_type, entity_id)
  指定されたエンティティのための軸に合致した結合ボックスを取得します。 詳細...

 
def  get_total_bounding_box (geometry_type, entity_list)
  エンティティのリストのための組み合わせボックスを取得します。 詳細...

 
def  get_tight_bounding_box (geometry_type, entity_list)
  エンティティのリストのための緊密なブランドボックスを取得します。 詳細...

 
def  get_total_volume (volume_list)
  ボリュームリストのための総ボリュームを取得します。 詳細...

 
def  print_volume_summary_stats ()
  モデル内のすべてのボリュームの概要統計を印刷します。 詳細...

 
def  get_center_point (entity_type, entity_id)
  指定されたエンティティの3Dセンターまたは座標を取得します。 詳細...

 
def  is_periodic (geometry_type, entity_id)
  特定のサーフェスまたはカーブが定期的であるかどうかを問う。 詳細...

 
def  get_geometry_type (geom_type, ent_ids)
  サーフェスまたはカーブのリストのための分析ジオメトリタイプを返します。 詳細...

 
def  get_distance_between_entities (geom_type_1, entity_id_1, geom_type_2, entity_id_2)
  2つのジオメトリのエンティティの間の最小の距離を得る。 詳細...

 
def  is_point_contained (geometry_type, entity_id, xyz_point)
  ポイントがエンティティと関連しているかどうかを決定するか、その点がエンティティと関連しているか、その点がエンティティと関連しているか、その点がエンティティと関連しているかどうかを決定する。 詳細...

 
def  snap_locations_to_geometry (locations, entity_type, entity_id, tol)
  スナップは、指定されたエンティティの最も近い点にXYZの位置を指定します。 詳細...

 
def  measure_between_entities (entity_type1, entity_id1, entity_type2, entity_id2)
  2つのジオメトリのエンティティとその最も近い点の間の最も短い距離を返します。 詳細...

 
def  get_coordinate_systems_id_list ()
  座標システムIDのリストを返します。 詳細...

 
ジオメトリメッシュエンティティサポート
def  get_geometry_node_count (entity_type, entity_id)
  メッシュのノード番号をジオメトリのエンティティに取得します。 詳細...

 
def  get_vertex_node (vertex_id)
  ノードIDを頂点が所有するものとします。 詳細...

 
def  get_curve_nodes (curve_id)
  カーブが所有するノードIDのリストを取得します。 詳細...

 
def  get_curve_edges (curve_id)
  エッジの要素IDのリストをカーブに取得します。 詳細...

 
def  get_surface_nodes (surface_id)
  サーフェスが所有するノードIDのリストを取得します。 詳細...

 
def  get_surface_quads (surface_id)
  四方(四方)の要素IDのリストをサーフェスに取得します。 詳細...

 
def  get_surface_tris (surface_id)
  三角形(三)の要素IDのリストをサーフェスで取得します。 詳細...

 
def  get_volume_nodes (volume_id)
  ボリュームが所有するノードIDのリストを取得します。 詳細...

 
def  get_volume_hexes (volume_id)
  ヘクサヘドロン(六面体要素)IDのリストをボリュームに含む。 詳細...

 
def  get_volume_tets (volume_id)
  ボリュームに含まれるテトラヘドロン(四面体要素)IDのリストを取得します。 詳細...

 
def  get_volume_wedges (volume_id)
  ボリュームに含まれるゲームIDのリストを取得します。 詳細...

 
def  get_volume_pyramids (volume_id)
  ボリュームに含まれるピラミッドIDのリストを取得します。 詳細...

 
def  get_surface_num_loops (surface_id)
  サーフェスのスロップ数を取得します。 詳細...

 
def  get_surface_loop_curves (surface_id)
  サーフェスの各ロップのためのカーブIDを取得します。 詳細...

 
def  get_surface_loop_nodes (surface_id)
  ノードIDの注文リストをサーフェスの端に取得します。 詳細...

 
def  get_entity_sense (source_type, source_id, sideset_id)
  サイドセットでエンティティの感覚を得る。 詳細...

 
def  get_wrt_entity (source_type, source_id, sideset_id)
  サイドセットに項目のwith-respect-toエンティティを取得します。 詳細...

 
def  get_geometric_owner (mesh_entity_type, mesh_entity_list)
  メッシュのエンティティのセットのためにジオメトリの所有者を得る。 詳細...

 
def  get_geometry_owner (entity_type, entity_id)
  メッシュの要素のジオメトリの所有者を得る。 詳細...

 
def  get_all_geometric_owners (mesh_entity_type, mesh_entity_list)
  メッシュのエンティティとその子のエンティティのセットのジオメトリの所有者のリストを取得します。 詳細...

 
Mesh Element Queries
def  get_connectivity (entity_type, entity_id)
  メッシュ要素を含むノードIDのリストを取得します。 詳細...

 
def  get_expanded_connectivity (entity_type, entity_id)
  内部のノードを含むメッシュの要素のノードIDのリストを取得します。 詳細...

 
def  get_sub_elements (entity_type, entity_id, dimension)
  低次元のエンティティを高次元のメッシュの要素から得る。 詳細...

 
def  get_node_exists (node_id)
  モデルにノードがあるかどうかを確認します。 詳細...

 
def  get_exodus_id (entity_type, entity_id)
  メッシュのエンティティのためのグローバル要素IDを取得します。 詳細...

 
def  get_element_exists (element_id)
  モデルにグローバルなメッシュ要素IDが存在するかどうかを確認します。 詳細...

 
def  get_element_type (element_id)
  グローバル要素IDのための特定のメッシュの要素タイプを取得します。 詳細...

 
def  get_element_type_id (element_id)
  グローバル要素IDを地元のメッシュエンティティIDに戻します。 詳細...

 
def  get_element_block (element_id)
  特定のグローバル要素を含むブロックIDを取得します。 詳細...

 
def  get_global_element_id (element_type, id)
  get_exodus_idのアライアス:地元のメッシュのエンティティのグローバル要素IDを取得します。 詳細...

 
def  get_hex_global_element_id (hex_id)
  特定の六面体の要素のためのグローバル要素IDを取得します。 詳細...

 
def  get_tet_global_element_id (tet_id)
  特定の四面体の要素のためのグローバル要素IDを取得します。 詳細...

 
def  get_wedge_global_element_id (wedge_id)
  グローバル要素IDを特定の要素のスケジュールで取得します。 詳細...

 
def  get_pyramid_global_element_id (pyramid_id)
  特定のピラミッドの要素のためのグローバル要素IDを取得します。 詳細...

 
def  get_tri_global_element_id (tri_id)
  グローバル要素IDを特定の三角形要素のために取得します。 詳細...

 
def  get_quad_global_element_id (quad_id)
  グローバル要素IDを特定の四方的な要素のために取得します。 詳細...

 
def  get_edge_global_element_id (edge_id)
  特定のエッジの要素のためのグローバル要素IDを取得します。 詳細...

 
def  get_sphere_global_element_id (sphere_id)
  特定のノード(SPHEREの要素)のためのグローバル要素IDを取得します。 詳細...

 
def  get_node_global_id (node_id)
  Exodusファイルに割り当てられたグローバルノードIDをメッシュのノードに取得します。 詳細...

 
def  get_closest_node (x_coordinate, y_coordinate, z_coordinate)
  特定の点に最も近いメッシュノードを見つける。 詳細...

 
def  get_nodal_coordinates (node_id)
  メッシュノードの座標を取得します。 詳細...

 
def  get_node_faces (node_id)
  ノードに隣接するすべての四方的な要素(顔)のIDを取得します。 詳細...

 
def  get_node_tris (node_id)
  ノードに隣接するすべての三角的な要素のIDを取得します。 詳細...

 
def  get_node_edges (node_id)
  ノードに付属するすべてのエッジの要素のIDを取得します。 詳細...

 
def  get_node_position_fixed (node_id)
  メッシュのノードが固定されているかどうかを尋ねる(スムージングに対して制限されている)。 詳細...

 
def  get_mesh_element_type (entity_type, entity_id)
  メッシュの要素タイプをジオメトリのエンティティに適用します。 詳細...

 
ジオメトリのサポートが欠けている
def  get_small_curves (target_volume_ids, mesh_size)
  エッジと長さを含むカーブを特定のボリュームの範囲内の範囲の下で見つける。 詳細...

 
def  get_smallest_curves (target_volume_ids, number_to_return)
  指定されたボリュームに最小のカーブの返信ID。 詳細...

 
def  get_small_surfaces (target_volume_ids, area_threshold)
  指定しきい値未満の面積を持つサーフェスを検索します。 詳細...

 
def  get_small_surfaces_HR (target_volume_ids, mesh_size)
  Pythonと呼ばれるバージョン:小さな水力半径の「サーフェス」を特定します。 詳細...

 
def  is_narrow_surface (surface_id, mesh_size)
  サーフェスに2つの非寄付のエッジが狭い地域を形成するかどうかを決定する。 詳細...

 
def  get_narrow_surfaces (target_volume_ids, mesh_size)
  指定されたボリュームで狭い地域を含むサーフェスを見つける。 詳細...

 
def  get_small_and_narrow_surfaces (target_ids, small_area, small_curve_size)
  面積に小さくあるいは狭い地域を含む「サーフェス」を見つける。 詳細...

 
def  get_closed_narrow_surfaces (target_ids, narrow_size)
  閉鎖されたサーフェスに顔を見つけ、その2つの境界線のエッジが距離の範囲内に残る。 詳細...

 
def  get_narrow_regions (target_ids, narrow_size)
  指定されたボリュームの範囲内で狭い地域を含む顔を見つける。 詳細...

 
def  get_surfs_with_narrow_regions (target_ids, narrow_size)
  エッジカップルの指向と近所に基づいて狭い地域を含むサーフェスを見つける。 詳細...

 
def  is_close_loop_surface (surface_id, mesh_size)
  サーフェスが特定の限界に近い複数のロップを持っているかどうかを確認します。 詳細...

 
def  get_close_loops (target_volume_ids, mesh_size)
  特定の限界に近い複数のロップを持つ顔を見つける。 詳細...

 
def  get_close_loops_with_thickness (target_volume_ids, mesh_size, genus)
  限界より近い複数のロープを持つ顔を見つけ、最小のロープ分離を返します。 詳細...

 
def  get_close_loop_thickness (surface_id)
  サーフェスの間の距離の最小分離を計算します。 詳細...

 
def  get_small_volumes (target_volume_ids, mesh_size)
  メッシュサイズに基づいて限界の下にあるサイズのボリュームを見つける。 詳細...

 
def  is_chamfer_surface (surface_id, thickness_threshold)
  顔のサーフェスがシャンファーであるかどうかを判断する。 詳細...

 
def  get_chamfer_surfaces (target_volume_ids, thickness_threshold)
  ボリュームのリストのためのシャンファーサーフェスのリストを取得します。 詳細...

 
def  get_chamfer_chains (surface_id)
  特定のサーフェスのためにシャンファーチェーンを返します。 詳細...

 
def  get_chamfer_chain_collections (volume_list, thickness_threshold)
  指定されたボリュームにシャンファーチェーンを形成するサーフェスのコレクションを返します。 詳細...

 
def  is_cylinder_surface (surface_id)
  特定の顔のサーフェスが円形のシリンダーであるかどうかを決定する。 詳細...

 
def  is_blend_surface (surface_id)
  顔のサーフェスが混合物(フィレット)であるかどうかを決定する。 詳細...

 
def  get_blend_surfaces (target_volume_ids)
  定められたボリュームの範囲内でサーフェスの混合物(フィレット)を見つける。 詳細...

 
def  get_small_radius_blend_surfaces (target_volume_ids, max_radius)
  サーフェスと曲線の半径を混ぜる <=max_radiusを見つける。 詳細...

 
def  get_blend_chains (surface_id)
  混合チェーンを特定のサーフェスのために返します。 詳細...

 
def  get_blend_chain_collections (volume_list, radius_threshold)
  指定されたボリュームに混合チェーンを形成するサーフェスの収集を返します。 詳細...

 
def  is_cone_surface (surface_id)
  サーフェスが「円錐」であるかどうかを決定する。 詳細...

 
def  find_cone_surfaces (surface_id)
  候補者から始まる「円錐」のサーフェス(s)を特定します。 詳細...

 
def  get_cone_surfaces (target_volume_ids)
  特定のボリュームで完全なコニカル「サーフェス」を特定します。 詳細...

 
def  get_surface_cone_collections (volume_list, radius_threshold=0.0)
  指定されたボリュームで「円錐」を含むサーフェスのコレクションを特定します。 詳細...

 
def  is_cavity_surface (surface_id)
  指定された「サーフェス」が穴の一部であるかどうかを確認します。 詳細...

 
def  get_cavity_surfaces (surface_id)
  サーフェスを指定されたサーフェスに近い穴に戻します。 詳細...

 
def  get_protrusion_surfaces (surface_id)
  サーフェスを指定されたサーフェスに結びついたプロトゥーズに戻します。 詳細...

 
def  is_protrusion_surface (surface_id)
  指定された「サーフェス」がプロトゥーズの一部であるかどうかを確認します。 詳細...

 
def  get_surface_cavity_collections (volume_list, area_threshold=-1, angle_tolerance=-1, combine_cavities=True)
  指定されたボリュームに穴を形成するサーフェスのコレクションを返します。 詳細...

 
def  get_surface_protrusion_collections (volume_list, area_threshold=-1, angle_tolerance=-1, combine_protrusions=True)
  指定されたボリュームにプロトルを形成するサーフェスのコレクションを返します。 詳細...

 
def  is_hole_surface (surface_id, radius_threshold)
  指定された「サーフェス」が穴の一部であるかどうかを確認します。 詳細...

 
def  get_hole_surfaces (surface_id)
  サーフェスを指定されたサーフェスに近い穴に戻します。 詳細...

 
def  get_surface_hole_collections (volume_list, radius_threshold)
  指定されたボリュームに穴を形成するサーフェスのコレクションを返します。 詳細...

 
def  is_continuous_surface (surface_id, angle_tol)
  サーフェスに隣接する継続的なサーフェスがあるかどうかを確認する。 詳細...

 
def  get_continuous_surfaces (surface_id, angle_tol)
  隣接する継続的なサーフェスのリストを返します。 詳細...

 
def  get_continuous_curves (curve_id, angle_tol, require_two_valent=False)
  隣接する継続的なカーブのリストを返します。 詳細...

 
def  get_continuous_curve_collections (volume_list, angle_tolerance=-1)
  継続的なカーブのコレクションをボリュームに戻します。 詳細...

 
def  get_continuous_surface_collections (volume_list, angle_tolerance=-1)
  継続的なサーフェスのコレクションをボリュームに戻します。 詳細...

 
def  get_sharp_angle_vertices (target_volume_ids, upper_bound, lower_bound)
  「頂点」をカーブの鋭い角度でボリュームのセットで指定します。 詳細...

 
def  get_blunt_tangency_default_depth (vert_id, angle, add_material)
  デフォルトの深さを計算し、頂点でタンゲンスを混ぜるために使われた。 詳細...

 
def  get_tangential_intersections (target_volume_ids, upper_bound, lower_bound)
  指定された範囲外のタンジンティックな交差角を含むサーフェスを見つける。 詳細...

 
def  get_coincident_vertices (target_volume_ids, high_tolerance)
  指定されたボリューム群にまたがって、指定許容差内にある頂点ペアを検索します。 詳細...

 
def  get_close_vertex_curve_pairs (target_volume_ids, high_tolerance)
  指定されたボリューム群にまたがって、指定許容差内にある頂点ペアとカーブペアを検索します。 詳細...

 
def  get_overlapping_surfaces_in_bodies (body_ids, filter_slivers=False)
  ボディのセットで異なるボリュームの間で「サーフェス」を超えることを特定します。 詳細...

 
def  find_overlapping_curves (curve_ids)
  カーブの指定リストでカーブを超えることを特定します。 詳細...

 
def  get_gaps_between_volumes (target_volume_ids, maximum_gap_tolerance, maximum_gap_angle, cache_overlaps=0)
  サーフェスの間の格差をボリュームのリストで特定します。 詳細...

 
def  get_overlapping_volumes (target_volume_ids)
  ボリュームのリストでボリュームを超えることを特定します。 詳細...

 
def  get_overlapping_volumes_at_volume (volume_id, compare_volumes)
  単一のターゲットボリュームを超えるモデルでボリュームを特定します。 詳細...

 
def  get_overlapping_surfaces_at_surface (surface_id, compare_volumes, cache_overlaps=0)
  単一のターゲットサーフェスを超えるモデルでサーフェスを特定します。 詳細...

 
def  get_overlap_max_gap ()
  現在の最大差許容差を取得し、「サーフェス」の過剰を計算するために使用される。 詳細...

 
def  set_overlap_max_gap (maximum_gap)
  許容差の最大差を設定して「サーフェス」の過剰を計算します。 詳細...

 
def  get_overlap_min_gap ()
  現在の最低差許容差を取得し、「サーフェス」の過剰を計算するために使用される。 詳細...

 
def  set_overlap_min_gap (min_gap)
  最低限の許容差を設定して「サーフェス」の表面を計算します。 詳細...

 
def  get_overlap_max_angle ()
  現在の最大角度許容差を「サーフェス」の過剰を計算するために使用する。 詳細...

 
def  set_overlap_max_angle (maximum_angle)
  最大角度の許容差を設定して「サーフェス」の表面を計算します。 詳細...

 
def  get_nearby_entities (gtype, ent_ids, compare_ents, distance)
  近くのエンティティをカーブ、サーフェス、またはボリュームのタイプで、同じタイプの特定のリストに指定します。 詳細...

 
def  get_nearby_volumes_at_volume (volume_id, compare_volumes, distances, progress=None)
  近くのボリュームを、ターゲットボリュームのリストのモデルに指定します。 詳細...

 
def  get_unmerged_curves_on_shells (shell_vols, thickness)
  シェル(シェル)の間で、シェル建設作業の流れで使用するためのボリュームの間で不溶なカーブを特定します。 詳細...

 
def  get_mergeable_vertices (target_volume_ids)
  合併可能な頂点のリストをボリュームまたはボディのリストから取得します。 詳細...

 
def  get_mergeable_curves (target_volume_ids)
  ボリュームまたはボディのリストから合併可能なカーブのリストを取得します。 詳細...

 
def  get_mergeable_surfaces (target_volume_ids)
  ボリュームまたはボディのリストから合併可能なサーフェスのリストを取得します。 詳細...

 
def  get_merge_tolerance ()
  現在の合併許容差値を返します。 詳細...

 
ジオメトリITEMソリューション
def  get_solutions_for_close_loop (surface_id, mesh_size)
  狭い地域を解決するために、近距離のサーフェスのための推奨された治療法を取得します。 詳細...

 
def  get_solutions_for_near_coincident_vertices (vertex_id_1, vertex_id_2)
  異なるボリュームで2つの偶然の頂点を解決するための修正を提供し、欠陥や誤解を解決します。 詳細...

 
def  get_solutions_for_bad_geometry (geom_type, geom_id)
  悪質なジオメトリの治療法をACISの癒しを通じて提供する(うつ病)。 詳細...

 
def  get_solutions_for_overlapping_volumes (volume_id_1, volume_id_2, maximum_gap_tolerance, maximum_gap_angle)
  gap許容差と角度許容差に基づいて、重複する2つのボリュームに対するremedyを提示します。 詳細...

 
def  get_solutions_for_overlapping_surfaces (surface_id_1, surface_id_2)
  異なるボリュームに2つのサーフェスを超えるための治療法を提案します。 詳細...

 
def  get_volume_gap_solutions (surface_id_1, surface_id_2)
  異なるボリュームで2つのサーフェスの間の格差を解決する方法を提案します。 詳細...

 
def  get_solutions_for_near_coincident_vertex_and_curve (vertex_id, curve_id)
  「頂点」が別のボリュームからカーブに置かれている場合の解決策を提案します。 詳細...

 
def  get_solutions_for_near_coincident_vertex_and_surface (vertex_id, surface_id)
  「頂点」が別のボリュームからサーフェスに置かれている場合の解決策を提案します。 詳細...

 
def  get_solutions_for_imprint_merge (surface_id1, surface_id2)
  印刷/合併のための治療法を提案すると、2つの上着のサーフェスが異なるボリュームにあります。 詳細...

 
def  get_solutions_for_volumes (vol_id, small_curve_size, mesh_size)
  サイズの範囲の下の「フィーチャ」でボリュームのための操作の修正を推奨します。 詳細...

 
def  get_solutions_for_classified_volume (classification, vol_id)
  ジオメトリの修正または「フィーチャ」の操作をボリュームに基づいて提案します。 詳細...

 
def  get_solutions_for_bolt (bolt_id, insert_id, threaded_vol_id)
  知られているサブコンポーネントIDを使用してボルトとして分類されたボリュームのための操作を提案します。 詳細...

 
def  get_solutions_for_bolt_hole (bearing_hole, threaded_holes)
  修理または修理のオプションを提案し、集中式のパイロットホールのセット。 詳細...

 
def  get_solutions_for_classified_surface (classification, surf_id)
  分類されたサーフェスのための修正や修正を提案します。 詳細...

 
def  get_solutions_for_thin_volume (vol_id, near_vols, include_weights=False, include_type=False)
  候補者の操作を生成して、薄いボリュームをボディの葉に減らす。 詳細...

 
def  get_solutions_for_sheet_volumes (vol_ids, thickness)
  「サーフェス」拡張と印刷/混合操作を提案してボディを接続します。 詳細...

 
def  get_solutions_for_sheet_volume_connection (args, kwargs)
  サーフェスツイック、印刷、および合併操作を提案して、2つのシートボリュームセットをブリッジします。 詳細...

 
def  get_solutions_for_small_surfaces (surface_id, small_curve_size, mesh_size)
  すでに小さく印刷されているサーフェスに操作を勧めます。 詳細...

 
def  get_solutions_for_connected_surfaces (surf_ids, common_surface_type)
  サーフェスの接続されたセットに2つの操作を提案します。 詳細...

 
def  get_solutions_for_small_curves (curve_id, small_curve_size, mesh_size)
  すでに小型のカーブに操作を勧めます。 詳細...

 
def  get_solutions_for_sharp_angle_vertex (vertex_id, small_curve_size, mesh_size)
  Retrieve recommended remedies for a sharp angle at a 'top point' は、頂点の鋭い角度のための推奨療法を取得します。 詳細...

 
def  get_solutions_for_surfaces_with_narrow_regions (surface_id, small_curve_size, mesh_size)
  操作を推奨し、狭い領域を狭い領域と定義された「サーフェス」で排除する。 詳細...

 
def  get_solutions_for_cone_surface (surface_id)
  サーフェスを「円錐」と分類するための治療法を提案します。 詳細...

 
def  get_solutions_for_decomposition (volume_list, exterior_angle, do_imprint_merge, tolerant_imprint)
  外側の角度基準に基づいてボリュームの可能な分解ソリューションを提供します。 詳細...

 
def  get_solutions_for_blends (surface_id)
  可能な混合除去ソリューションを特定のサーフェス(およびその混合チェーンが適用される場合)に提供します。 詳細...

 
def  get_solutions_for_chamfers (surface_id)
  特定のサーフェスのための可能なカムファー除去ソリューションを提供する(およびそのカムファーチェーンが適用される場合)。 詳細...

 
def  get_solutions_for_cavity_surface (surface_id)
  可能な穴の除去または調整ソリューションを特定の「サーフェス」(およびその穴が適用される場合)に提供します。 詳細...

 
def  get_solutions_for_protrusion_surface (surface_id)
  特定のサーフェス(および適用される場合、そのプロトゥーシング)のための可能なプロトゥーシング除去または調整ソリューションを提供する。 詳細...

 
def  get_mesh_error_solutions (error_code)
  推奨されたソリューションとメッシュエラーのコンテキストケーキを修正します。 詳細...

 
ジオメトリ理想化支援
def  get_reduce_bolt_core_default_dimensions (vol_id)
  ボルトのボリュームのデフォルトコアサイズを計算し、ボルトコアの操作を減らす。 詳細...

 
def  get_bolt_diameters (vol_ids)
  指定されたボルトボリュームのシャンクダイヤモンドを取得します。 詳細...

 
def  get_bolt_axis (vol_id)
  標準化された軸ベクトルをボルトボリュームから得る。 詳細...

 
def  get_bolt_shigley_radius (bolt_id, angle, washer_id=0)
  ボルトインターフェイスで同等のShigley frustum 半径を取得します。 詳細...

 
def  get_bolt_washer (bolt_id)
  洗濯機のボリュームIDを特定のボリュームと関連付けます。 詳細...

 
def  get_bolt_coordinate_system (geom_type, id)
  ボルトまたはボルトの穴のための地元の座標システムを取得します。 詳細...

 
def  get_bolt_clamped_members (vol_ids, nearby_vols, progress=None)
  ボルトに関連する粘着メンバーを特定します。 詳細...

 
def  get_bolts_in_clamped_members (geo_type, clamped_vols, candidate_bolts)
  ボリュームまたはブロックを固定するボリュームを特定します。 詳細...

 
def  get_bolt_holes_info (geo_type, clamped_members, radius_threshold, gap_threshold)
  圧縮されたメンバーの間で集中的なパイロットの穴を特定します。 詳細...

 
def  get_bolt_holes (geo_type, clamped_members, radius_threshold, gap_threshold)
  上部および下部のパイロットの穴サーフェスを粘着したメンバーから特定します。 詳細...

 
def  get_2D_sheet_volumes (vol_id)
  関連する 2D シートボリュームを 3D 薄ボリュームから取得します。 詳細...

 
def  get_3D_thin_volume (vol_id)
  オリジナルの3D薄いボリュームを2Dシートボリュームと結びつける。 詳細...

 
ブロック、サイドセット、ノードセット
def  get_block_count ()
  モデルに要素のブロックの現在の番号を入力します。 詳細...

 
def  get_block_id (entity_type, entity_id)
  要素のブロックIDをジオメトリのエンティティと関連付けます。 詳細...

 
def  get_block_ids (mesh_geometry_file_name)
  ブロックIDのリストをメッシュジオメトリファイルから取得します。 詳細...

 
def  get_block_id_list ()
  アクティブなブロックIDのリストを取得します。 詳細...

 
def  get_next_block_id ()
  次の利用可能なブロックIDを取得します。 詳細...

 
def  get_block_volumes (block_id)
  ブロックに含まれるボリュームIDのリストを取得します。 詳細...

 
def  get_block_surfaces (block_id)
  ブロックに含まれるサーフェスIDのリストを取得します。 詳細...

 
def  get_block_curves (block_id)
  ブロックに含まれるカーブIDのリストを取得します。 詳細...

 
def  get_block_vertices (block_id)
  ブロックに含まれる「頂点」IDのリストを取得します。 詳細...

 
def  get_block_nodes (block_id)
  ブロックに含まれるノードIDのリストを取得します。 詳細...

 
def  get_block_edges (block_id)
  ブロックに含まれるエッジIDのリストを取得します。 詳細...

 
def  get_block_tris (block_id)
  ブロックに含まれる三角形(三角形)IDのリストを取得します。 詳細...

 
def  get_block_faces (block_id)
  ブロックに含まれる顔IDのリストを取得します。 詳細...

 
def  get_block_pyramids (block_id)
  ブロックに含まれるピラミッドIDのリストを取得します。 詳細...

 
def  get_block_wedges (block_id)
  ブロックに含まれるゲームIDのリストを取得します。 詳細...

 
def  get_block_tets (block_id)
  ブロックに含まれるテトラヘドロン(四面体要素)IDのリストを取得します。 詳細...

 
def  get_block_hexes (block_id)
  ブロックに含まれるヘクサヘドロン(六面体要素)IDのリストを取得します。 詳細...

 
def  get_block_element_type (block_id)
  ブロックと関連付けられた要素タイプを取得します。 詳細...

 
def  get_block_attribute_count (block_id)
  ブロックに割り当てられた属性の数を取得します。 詳細...

 
def  get_block_element_attribute_count (block_id)
  指定されたブロックに要素に定義された属性の数を入力します。 詳細...

 
def  get_block_attribute_value (block_id, attribute_index)
  ブロックの特定の属性の値を取得します。 詳細...

 
def  get_block_attribute_name (block_id, attribute_index)
  ブロックのための特定の属性の名前を取得します。 詳細...

 
def  get_block_element_attribute_names (block_id)
  block要素に関連付けられた属性名のリストを取得します。 詳細...

 
def  get_valid_block_element_types (block_id)
  指定されたブロックの有効な要素タイプのリストを取得します。 詳細...

 
def  get_block_material (block_id)
  指定されたブロックに割り当てられた材料のIDを取得します。 詳細...

 
def  get_blocks_with_materials ()
  すべてのブロックIDとその関連する材料IDを取得します。 詳細...

 
def  get_sideset_count ()
  モデルにサイドセットの現在の番号を入力します。 詳細...

 
def  get_sideset_id_list ()
  すべてのアクティブなサイドセットIDのリストを取得します。 詳細...

 
def  get_next_sideset_id ()
  次の利用可能なサイドセットIDを取得します。 詳細...

 
def  get_sideset_curves (sideset_id)
  サイドセットと関連付けられたカーブIDのリストを取得します。 詳細...

 
def  get_sideset_edges (sideset_id)
  サイドセットに含まれるエッジIDのリストを取得します。 詳細...

 
def  get_sideset_surfaces (sideset_id)
  サイドセットに含まれるサーフェスIDのリストを取得します。 詳細...

 
def  get_sideset_quads (sideset_id)
  サイドセットに含まれる四方(四方) 要素 ID のリストを取得します。 詳細...

 
def  get_sideset_tris (sideset_id)
  サイドセットに含まれる三角形(三)要素IDのリストを取得します。 詳細...

 
def  get_sideset_area (sideset_id)
  サイドセットの総面積を取得します。 詳細...

 
def  get_sideset_element_type (sideset_id)
  サイドセットの要素タイプを取得します。 詳細...

 
def  get_sideset_contact_pairs (geom_type, ent_list, geom_tol=-1.0)
  サイドセットに基づくコンタクトインターフェイスを特定し、コンパクトな整合インタラクションレコードを返します。 詳細...

 
def  get_nodeset_count ()
  モデルにノードセットの現在の番号を入力します。 詳細...

 
def  get_nodeset_id_list ()
  すべてのアクティブなノードセットIDのリストを取得します。 詳細...

 
def  get_next_nodeset_id ()
  次の利用可能なノードセットIDを取得します。 詳細...

 
def  get_nodeset_volumes (nodeset_id)
  ノードセットと関連付けられたボリュームIDのリストを取得します。 詳細...

 
def  get_nodeset_surfaces (nodeset_id)
  ノードセットと関連付けられたサーフェスIDのリストを取得します。 詳細...

 
def  get_nodeset_curves (nodeset_id)
  ノードセットと関連付けられたカーブIDのリストを取得します。 詳細...

 
def  get_nodeset_vertices (nodeset_id)
  ノードセットと関連付けられた「頂点」IDのリストを取得します。 詳細...

 
def  get_nodeset_nodes (nodeset_id)
  ノードセットに明示的に割り当てられたノードIDのリストを取得します。 詳細...

 
def  get_nodeset_nodes_inclusive (nodeset_id)
  ノードセット(含む)と関連付けられたノードIDのリストを取得します。 詳細...

 
def  get_nodeset_node_count (nodeset_id)
  ノードセットにノードセットの番号を入力します。 詳細...

 
def  get_exodus_element_count (entity_id, entity_type)
  Exodusエンティティ内の要素数を取得します。 詳細...

 
def  get_exodus_entity_name (entity_type, entity_id)
  Exodusのエンティティの名前を得る。 詳細...

 
def  get_exodus_entity_type (entity_type, entity_id)
  エンティティのExodusタイプを取得します。 詳細...

 
def  get_exodus_entity_description (entity_type, entity_id)
  Exodusのエンティティの説明を得る。 詳細...

 
def  get_all_exodus_times (filename)
  Exodusファイルから利用可能なすべてのタイムステップを取得します。 詳細...

 
def  get_exodus_variable_names (container_type, container_id)
  Exodus変数の名前をノードセット、サイドセット、またはブロックで取得します。 詳細...

 
def  get_all_exodus_variable_names (filename, variable_type)
  Exodusファイルから特定のタイプのすべての変数名を取得します。 詳細...

 
def  get_exodus_variable_count (container_type, container_id)
  Exodusの変数の数をノードセット、サイドセット、またはブロックで取得します。 詳細...

 
def  get_copy_nodeset_on_geometry_copy_setting ()
  ジオメトリコピーの現在のノードセット行動設定を取得します。 詳細...

 
def  get_copy_sideset_on_geometry_copy_setting ()
  現在のサイドセット行動設定をジオメトリコピーに取得します。 詳細...

 
def  get_copy_block_on_geometry_copy_setting ()
  ジオメトリコピーの現在のブロック行動設定を取得します。 詳細...

 
def  set_copy_nodeset_on_geometry_copy_setting (val)
  ノードセット拡散の行動をジオメトリコピー中に設定します。 詳細...

 
def  set_copy_sideset_on_geometry_copy_setting (val)
  サイドセットの拡散の行動をジオメトリコピー中に設定します。 詳細...

 
def  set_copy_block_on_geometry_copy_setting (val)
  ブロックの拡散のための行動をジオメトリコピー中に設定します。 詳細...

 
Group Support
def  get_group_groups (group_id)
  特定の親のグループの直接子どものグループIDを取得する場合。 詳細...

 
def  get_group_volumes (group_id)
  特定のグループのための直接子どものボリュームIDを返します。 詳細...

 
def  get_group_bodies (group_id)
  特定のグループのための直接子どものボディIDを返します。 詳細...

 
def  get_group_surfaces (group_id)
  特定のグループのための直接子どものサーフェスIDを返します。 詳細...

 
def  get_group_curves (group_id)
  特定のグループのための直接子どものカーブIDを返します。 詳細...

 
def  get_group_vertices (group_id)
  特定のグループのための直接子どもの「頂点」IDを返します。 詳細...

 
def  get_group_nodes (group_id)
  特定のグループのための直接子どものノードIDを返します。 詳細...

 
def  get_group_edges (group_id)
  特定のグループのための直接子どものエッジIDを返します。 詳細...

 
def  get_group_quads (group_id)
  指定されたグループのための直接子どもの四重IDを返します。 詳細...

 
def  get_group_tris (group_id)
  特定のグループのための直接子どもの三角形IDを返します。 詳細...

 
def  get_group_tets (group_id)
  特定のグループのための直接子どものテトラヘドロンIDを返します。 詳細...

 
def  get_group_wedges (group_id)
  返信直接の子供は、特定のグループのための要素IDを割り当てます。 詳細...

 
def  get_group_pyramids (group_id)
  直接子どものピラミッド要素IDを指定されたグループに返します。 詳細...

 
def  get_group_spheres (group_id)
  特定のグループのための直接子どもの領域要素IDを返します。 詳細...

 
def  get_group_hexes (group_id)
  特定のグループのための直接子どもの六面体の要素IDを返します。 詳細...

 
def  get_next_group_id ()
  次の利用可能なグループIDをCubitから返します。 詳細...

 
def  delete_all_groups ()
  現在のCubitセッションからすべてのグループを削除します。 詳細...

 
def  delete_group (group_id)
  ID によって特定のグループを削除します。 詳細...

 
def  set_max_group_id (maximum_group_id)
  Cubitの内部最大グループIDを指定値に戻します。 詳細...

 
def  create_new_group ()
  新しい空のグループを作成し、そのIDを返します。 詳細...

 
def  remove_entity_from_group (group_id, entity_id, entity_type)
  特定のエンティティを特定のグループから削除します。 詳細...

 
def  add_entity_to_group (group_id, entity_id, entity_type)
  特定のエンティティを特定のグループに追加します。 詳細...

 
def  add_entities_to_group (group_id, entity_ids, entity_type)
  指定されたグループにエンティティのリストを追加します。 詳細...

 
def  group_names_ids ()
  すべての定義されたグループの名前とIDを返す(選択したグループを除く)。 詳細...

 
def  get_mesh_group_parent_ids (element_type, element_id)
  特定のメッシュの要素のために親のグループIDを返します。 詳細...

 
def  is_mesh_element_in_group (element_type, element_id)
  特定のメッシュの要素がどのグループに属しているかを確認します。 詳細...

 
メタデータサポート
def  get_assembly_classification_level ()
  分類レベルのメタデータを取得します。 詳細...

 
def  get_assembly_classification_category ()
  分類カテゴリのメタデータを取得します。 詳細...

 
def  get_assembly_weapons_category ()
  武器カテゴリメタデータを取得します。 詳細...

 
def  get_assembly_metadata (volume_id, data_type)
  指定されたボリュームのためのメタデータを取得します。 詳細...

 
def  is_assembly_metadata_attached (volume_id)
  メタデータがボリュームに付属しているかどうかを確認します。 詳細...

 
def  get_assembly_name (assembly_id)
  ノードという集団の名前を得る。 詳細...

 
def  get_assembly_path (assembly_id)
  集合のノードの完全なパスを取得し、その階級を特定します。 詳細...

 
def  get_assembly_type (assembly_id)
  assembly nodeのタイプ("part"または"assembly")を取得します。 詳細...

 
def  get_parent_assembly_path (assembly_id)
  ノードの親のパスを取得します。 詳細...

 
def  get_assembly_level (assembly_id)
  組み合わせのノードの階級を取得します。 詳細...

 
def  get_assembly_description (assembly_id)
  集合のノードの説明を得る。 詳細...

 
def  get_assembly_instance (assembly_id)
  集合のノードの例番号を取得します。 詳細...

 
def  get_parent_assembly_instance (assembly_id)
  会議のノードの親の例番号を取得します。 詳細...

 
def  get_assembly_file_format (assembly_id)
  コレクションノードが輸入された形式ファイルを取得します。 詳細...

 
def  get_assembly_units (assembly_id)
  ノードの組み合わせで使用される測定ユニットを取得します。 詳細...

 
def  get_assembly_material_description (assembly_id)
  材料の説明の一部を取得します。 詳細...

 
def  get_assembly_material_specification (assembly_id)
  材料の仕様を一つに分けましょう。 詳細...

 
Non-Exodus境界条件サポート
def  get_bc_id_list (bc_type_enum)
  特定のタイプの活性限界状態(BC)IDを取得します。 詳細...

 
def  get_bc_name (bc_type_enum, bc_id)
  特定の限界状態(BC)の名称を取得します。 詳細...

 
def  get_nodeset_id_list_for_bc (bc_type_enum, bc_id)
  限界状態に関連するノードセットIDのリストを取得します。 詳細...

 
def  get_sideset_id_list_for_bc (bc_type_enum, bc_id)
  限界状態に関連するサイドセットIDのリストを取得します。 詳細...

 
def  is_on_thin_shell (bc_type_enum, entity_id)
  薄いシールに限界条件が適用されているかどうかを確認します。 詳細...

 
def  temperature_is_on_solid (bc_type_enum, entity_id)
  安定した地域にBC温度が適用されるかどうかを確認します。 詳細...

 
def  convection_is_on_solid (entity_id)
  BCコンベクションが固体であるかどうかを確認します。 詳細...

 
def  convection_is_on_shell_area (entity_id, shell_area_enum)
  BCコンベクションがシールの上部または下部にあるかどうかを確認します。 詳細...

 
def  get_convection_coefficient (entity_id, bc_type_enum)
  コンベクションBCからコンベクションコエフィーを取得します。 詳細...

 
def  get_bc_temperature (bc_type_enum, entity_id, temp_type_enum)
  指定された BC 面積の温度値を取得します。 詳細...

 
def  temperature_is_on_shell_area (bc_type_enum, bc_area_enum, entity_id)
  BCの温度がシェルの面積にあるかどうかを確認します。 詳細...

 
def  heatflux_is_on_shell_area (bc_area_enum, entity_id)
  BCの熱流が面積のシールにあったかどうかを確認します。 詳細...

 
def  get_heatflux_on_area (bc_area_enum, entity_id)
  指定された面積に熱流値を取得します。 詳細...

 
def  get_cfd_type (entity_id)
  CFDの限界条件サブタイプを取得します。 詳細...

 
def  get_contact_pair_friction_value (entity_id)
  接触カップルの振動値を取得します。 詳細...

 
def  get_contact_pair_tolerance_value (entity_id)
  接続カップルのための許容差の上部線を取得します。 詳細...

 
def  get_contact_pair_tol_lower_value (entity_id)
  コンタクトカップルのための許容差の下限を取得します。 詳細...

 
def  get_contact_pair_tied_state (entity_id)
  接続カップルの関連状態を取得します。 詳細...

 
def  get_contact_pair_general_state (entity_id)
  一般的な接触状態を取得します。 詳細...

 
def  get_contact_pair_exterior_state (entity_id)
  接触カップルの外部状態を取得します。 詳細...

 
def  get_velocity_combine_type (entity_id)
  スピードの組み合わせタイプを取得します。 詳細...

 
def  get_acceleration_combine_type (entity_id)
  BCの加速のための組み合わせ方法を取得します。 詳細...

 
def  get_displacement_combine_type (entity_id)
  移動BCのための組み合わせ方法を取得します。 詳細...

 
def  get_pressure_value (entity_id)
  圧力BCの大きさ値を取得します。 詳細...

 
def  get_pressure_function (entity_id)
  BC圧力に関連する機能表現を得る。 詳細...

 
def  get_force_magnitude (entity_id)
  BCの強度を得る。 詳細...

 
def  get_moment_magnitude (entity_id)
  BCの強さの瞬間の大きさを得る。 詳細...

 
def  get_force_direction_vector (entity_id)
  BCの力のベクトルの方向を得る。 詳細...

 
def  get_force_moment_vector (entity_id)
  BCのベクトルの瞬間を手に入れましょう。 詳細...

 
def  get_constraint_type (constraint_id)
  特定の制限の種類を取得します。 詳細...

 
def  get_constraint_reference_point (constraint_id)
  指定制限の参照点を取得します。 詳細...

 
def  get_constraint_dependent_entity_point (constraint_id)
  特定の制限の依存するエンティティを取得します。 詳細...

 
def  get_material_property (material_property_enum, entity_id)
  物質財産の価値を得る。 詳細...

 
def  get_media_property (entity_id)
  材料のメディア分類を取得します。 詳細...

 
def  get_media_name_list ()
  すべてのCFDメディア名のリストを取得します。 詳細...

 
def  get_material_name_list ()
  すべての材料名のリストを取得します。 詳細...

 
def  get_material_name (material_id)
  ID によって材料またはCFDメディアの名前を取得します。 詳細...

 
境界層サポート
def  get_next_boundary_layer_id ()
  次の利用可能な境界層IDを取得します。 詳細...

 
def  is_boundary_layer_id_available (boundary_layer_id)
  境界層IDが現在利用可能であるかどうかを確認します。 詳細...

 
def  get_boundary_layer_algorithm (boundary_layer_id)
  指定された境界層によって使用されるアルゴリズムタイプを取得します。 詳細...

 
def  get_boundary_layers_by_base (base_type, base_id)
  指定されたベースエンティティと関連するすべての限界層を取得します。 詳細...

 
def  get_boundary_layers_by_pair (base_type, base_id, parent_id)
  ベース親のカップルと関連するすべての限界層を取得します。 詳細...

 
def  get_boundary_layer_continuity (boundary_layer_id)
  境界層の継続性設定を取得します。 詳細...

 
def  get_boundary_layer_id_list ()
  境界層の定義されたすべてのIDのリストを取得します。 詳細...

 
機械学習サポート
def  load_ML (args, kwargs)
  機械学習データを記憶に載せます。 詳細...

 
def  unload_ML (args, kwargs)
  機械学習データをメモリから削除します。 詳細...

 
def  get_ML_operation_features (ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size, reduced_features=False)
  ML『フィーチャ』ベクトルをCubit操作のリストに計算します。 詳細...

 
def  get_ML_features (ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size, reduced_features=False)
  複数のエンティティを可能にする操作のためのML「フィーチャ」のベクトルを計算します。 詳細...

 
def  get_ML_predictions (ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size, reduced_features=False)
  単一エンティティのペアに対する操作リストについて、ML予測を計算します。 詳細...

 
def  do_ML_predictions (ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size, reduced_features=False)
  複数のエンティティを含む操作のリストのためのML予測を計算します。 詳細...

 
def  get_ML_classification (geom_type, ent_id)
  単一のボリュームまたはサーフェスのトップランキングラベルを取得します。 詳細...

 
def  get_ML_classifications (geom_type, ent_ids)
  複数のボリュームまたはサーフェスを単一のバッチ操作に分類します。 詳細...

 
def  get_ML_classification_categories (geom_type)
  ジオメトリタイプのすべての利用可能な分類カテゴリを取り戻します。 詳細...

 
def  ML_train (geom_type)
  特定のジオメトリタイプのML分類モデルの強力なトレーニング。 詳細...

 
def  get_ML_operation_feature_types (ml_op_name, reduced_features=False)
  指定したML操作の各featureについて、データ型記述子を取得します。 詳細...

 
def  get_ML_operation_feature_names (ml_op_name, reduced_features=False)
  指定された ML 操作のための「フィーチャ」名のリストを返します。 詳細...

 
def  get_ML_operation_feature_size (ml_op_name, reduced_features=False)
  予想される「フィーチャ」 - ベクトルの長さを、特定のMLの操作のために回収します。 詳細...

 
def  get_ML_operation_label_size (ml_op_name)
  予想されるラベルベクトル長さを特定のML操作のために返します。 詳細...

 
def  get_ML_classification_models ()
  サポートされた分類 ML モデル名のリストを復元します。 詳細...

 
def  get_ML_regression_models ()
  サポートされた regression ML モデル名のリストをリトリウムします。 詳細...

 
def  get_ML_model_name (model_ID)
  MLモデルの名前をそのIDに基づいて取り戻します。 詳細...

 
def  get_ML_model_ID (model_name)
  特定の ML モデルまたは操作名のユニークな数値 ID を返します。 詳細...

 
def  get_ML_operation (op_name, entity_id1, entity_id2, params, user_configs, small_curve_size, mesh_size)
  コマンド、表示ラベル、およびML操作のプレビューテキストを生成します。 詳細...

 
def  get_ML_feature_importances (op_name)
  特定のMLの操作のために「フィーチャ」の重要性のスコアを回収します。 詳細...

 
def  get_ML_feature_distance (op_name, f1, f2)
  2つの「フィーチャ」とベクトルの間の重い距離を計算します。 詳細...

 
def  set_ML_base_user_dir (path, print_info偽物)
  ユーザーが提供するMLトレーニングデータのルートディレクトリを設定します(分類のみ)。 詳細...

 
def  get_ML_initialize_surviving_entities (op_name, ent1, ent2)
  CAD操作の前に「生き残りの追跡」のためのエンティティを捕獲します。 詳細...

 
def  get_ML_surviving_entities (op_name, begin_ents)
  どのエンティティがCAD操作の後に生き残るかを特定します。 詳細...

 

変数

  BAR = _cubit3.BAR
 
  BAR2 = _cubit3.BAR2
 
  BAR3 = _cubit3.BAR3
 
  BEAM = _cubit3.BEAM
 
  BEAM2 = _cubit3.BEAM2
 
  BEAM3 = _cubit3.BEAM3
 
  CI_BCENTITY_CC = _cubit3.CI_BCENTITY_CC
 
  CI_BCENTITY_CC_SHELL_BOTTOM = _cubit3.CI_BCENTITY_CC_SHELL_BOTTOM
 
  CI_BCENTITY_CC_SHELL_TOP = _cubit3.CI_BCENTITY_CC_SHELL_TOP
 
  CI_BCENTITY_FIRST = _cubit3.CI_BCENTITY_FIRST
 
  CI_BCENTITY_LAST = _cubit3.CI_BCENTITY_LAST
 
  CI_BCENTITY_SHELL_AREA_BOTTOM = _cubit3.CI_BCENTITY_SHELL_AREA_BOTTOM
 
  CI_BCENTITY_SHELL_AREA_GRADIENT = _cubit3.CI_BCENTITY_SHELL_AREA_GRADIENT
 
  CI_BCENTITY_SHELL_AREA_MIDDLE = _cubit3.CI_BCENTITY_SHELL_AREA_MIDDLE
 
  CI_BCENTITY_SHELL_AREA_TOP = _cubit3.CI_BCENTITY_SHELL_AREA_TOP
 
  CI_BCENTITY_SOLID_HEATFLUX = _cubit3.CI_BCENTITY_SOLID_HEATFLUX
 
  CI_BCENTITY_SOLID_TEMP = _cubit3.CI_BCENTITY_SOLID_TEMP
 
  CI_BCENTITY_TEMP = _cubit3.CI_BCENTITY_TEMP
 
  CI_BCENTITY_UNKNOWN = _cubit3.CI_BCENTITY_UNKNOWN
 
  CI_BCTYPE_ACCELERATION = _cubit3.CI_BCTYPE_ACCELERATION
 
  CI_BCTYPE_AXIS = _cubit3.CI_BCTYPE_AXIS
 
  CI_BCTYPE_CONSTRAINT = _cubit3.CI_BCTYPE_CONSTRAINT
 
  CI_BCTYPE_CONTACT_PAIR = _cubit3.CI_BCTYPE_CONTACT_PAIR
 
  CI_BCTYPE_CONTACT_REGION = _cubit3.CI_BCTYPE_CONTACT_REGION
 
  CI_BCTYPE_CONVECTION = _cubit3.CI_BCTYPE_CONVECTION
 
  CI_BCTYPE_DISPLACEMENT = _cubit3.CI_BCTYPE_DISPLACEMENT
 
  CI_BCTYPE_EXHAUSTFAN = _cubit3.CI_BCTYPE_EXHAUSTFAN
 
  CI_BCTYPE_FAN = _cubit3.CI_BCTYPE_FAN
 
  CI_BCTYPE_FIRST = _cubit3.CI_BCTYPE_FIRST
 
  CI_BCTYPE_FORCE = _cubit3.CI_BCTYPE_FORCE
 
  CI_BCTYPE_GAP = _cubit3.CI_BCTYPE_GAP
 
  CI_BCTYPE_HEATFLUX = _cubit3.CI_BCTYPE_HEATFLUX
 
  CI_BCTYPE_INLETVENT = _cubit3.CI_BCTYPE_INLETVENT
 
  CI_BCTYPE_INTAKEFAN = _cubit3.CI_BCTYPE_INTAKEFAN
 
  CI_BCTYPE_INTERFACE = _cubit3.CI_BCTYPE_INTERFACE
 
  CI_BCTYPE_INTERIOR = _cubit3.CI_BCTYPE_INTERIOR
 
  CI_BCTYPE_LAST = _cubit3.CI_BCTYPE_LAST
 
  CI_BCTYPE_LUMPMASS = _cubit3.CI_BCTYPE_LUMPMASS
 
  CI_BCTYPE_MASSFLOWINLET = _cubit3.CI_BCTYPE_MASSFLOWINLET
 
  CI_BCTYPE_MATERIAL = _cubit3.CI_BCTYPE_MATERIAL
 
  CI_BCTYPE_MEDIA = _cubit3.CI_BCTYPE_MEDIA
 
  CI_BCTYPE_MPC = _cubit3.CI_BCTYPE_MPC
 
  CI_BCTYPE_OUTFLOW = _cubit3.CI_BCTYPE_OUTFLOW
 
  CI_BCTYPE_OUTLETVENT = _cubit3.CI_BCTYPE_OUTLETVENT
 
  CI_BCTYPE_PERIODIC = _cubit3.CI_BCTYPE_PERIODIC
 
  CI_BCTYPE_PERIODICSHADOW = _cubit3.CI_BCTYPE_PERIODICSHADOW
 
  CI_BCTYPE_POROUSJUMP = _cubit3.CI_BCTYPE_POROUSJUMP
 
  CI_BCTYPE_PRESSURE = _cubit3.CI_BCTYPE_PRESSURE
 
  CI_BCTYPE_PRESSUREFARFIELD = _cubit3.CI_BCTYPE_PRESSUREFARFIELD
 
  CI_BCTYPE_PRESSUREINLET = _cubit3.CI_BCTYPE_PRESSUREINLET
 
  CI_BCTYPE_PRESSUREOUTLET = _cubit3.CI_BCTYPE_PRESSUREOUTLET
 
  CI_BCTYPE_RADIATOR = _cubit3.CI_BCTYPE_RADIATOR
 
  CI_BCTYPE_RIGIDBODY = _cubit3.CI_BCTYPE_RIGIDBODY
 
  CI_BCTYPE_SPRING = _cubit3.CI_BCTYPE_SPRING
 
  CI_BCTYPE_SUPERSONICINFLOW = _cubit3.CI_BCTYPE_SUPERSONICINFLOW
 
  CI_BCTYPE_SUPERSONICOUTFLOW = _cubit3.CI_BCTYPE_SUPERSONICOUTFLOW
 
  CI_BCTYPE_SYMMETRY = _cubit3.CI_BCTYPE_SYMMETRY
 
  CI_BCTYPE_TEMPERATURE = _cubit3.CI_BCTYPE_TEMPERATURE
 
  CI_BCTYPE_UNKNOWN = _cubit3.CI_BCTYPE_UNKNOWN
 
  CI_BCTYPE_VELOCITY = _cubit3.CI_BCTYPE_VELOCITY
 
  CI_BCTYPE_VELOCITYINLET = _cubit3.CI_BCTYPE_VELOCITYINLET
 
  CI_BCTYPE_WALL = _cubit3.CI_BCTYPE_WALL
 
  CI_CONDUCTIVITY = _cubit3.CI_CONDUCTIVITY
 
  CI_DENSITY = _cubit3.CI_DENSITY
 
  CI_ERROR = cvar.CI_ERROR
 
  CI_MATERIAL_FIRST = _cubit3.CI_MATERIAL_FIRST
 
  CI_MATERIAL_LAST = _cubit3.CI_MATERIAL_LAST
 
  CI_MATERIAL_UNKNOWNPROPERTY = _cubit3.CI_MATERIAL_UNKNOWNPROPERTY
 
  CI_MODULUS = _cubit3.CI_MODULUS
 
  CI_POISSON = _cubit3.CI_POISSON
 
  CI_SHEAR_MODULUS = _cubit3.CI_SHEAR_MODULUS
 
  CI_SPECIFIC_HEAT = _cubit3.CI_SPECIFIC_HEAT
 
  CI_THERMAL_EXPANSION = _cubit3.CI_THERMAL_EXPANSION
 
  CI_ULTIMATE_STRAIN = _cubit3.CI_ULTIMATE_STRAIN
 
  CI_ULTIMATE_STRENGTH = _cubit3.CI_ULTIMATE_STRENGTH
 
  CI_YIELD_STRENGTH = _cubit3.CI_YIELD_STRENGTH
 
  CUBIT_TRI = _cubit3.CUBIT_TRI
 
  CURVE = _cubit3.CURVE
 
  クアラ = _cubit3.cvar
 
  HEX = _cubit3.HEX
 
  HEX20 = _cubit3.HEX20
 
  HEX21 = _cubit3.HEX21
 
  HEX26 = _cubit3.HEX26
 
  HEX27 = _cubit3.HEX27
 
  HEX8 = _cubit3.HEX8
 
  HEX9 = _cubit3.HEX9
 
  HEXSHELL = _cubit3.HEXSHELL
 
  INVALID_ELEMENT_TYPE = _cubit3.INVALID_ELEMENT_TYPE
 
  PYRAMID = _cubit3.PYRAMID
 
  PYRAMID13 = _cubit3.PYRAMID13
 
  PYRAMID18 = _cubit3.PYRAMID18
 
  PYRAMID5 = _cubit3.PYRAMID5
 
  PYRAMID8 = _cubit3.PYRAMID8
 
  QUAD = _cubit3.QUAD
 
  QUAD4 = _cubit3.QUAD4
 
  QUAD5 = _cubit3.QUAD5
 
  QUAD8 = _cubit3.QUAD8
 
  QUAD9 = _cubit3.QUAD9
 
  SHARED_PTR_DISOWN = _cubit3.SHARED_PTR_DISOWN
 
  SHEL = _cubit3.SHEL
 
  SHELL4 = _cubit3.SHELL4
 
  SHELL8 = _cubit3.SHELL8
 
  SHELL9 = _cubit3.SHELL9
 
  SPHERE_EXO = _cubit3.SPHERE_EXO
 
  SPRING = _cubit3.SPRING
 
  SUPERELEMENT_TOPOLOGY = _cubit3.SUPERELEMENT_TOPOLOGY
 
  SURFACE = _cubit3.SURFACE
 
  TETRA = _cubit3.TETRA
 
  TETRA10 = _cubit3.TETRA10
 
  TETRA14 = _cubit3.TETRA14
 
  TETRA15 = _cubit3.TETRA15
 
  TETRA4 = _cubit3.TETRA4
 
  TETRA8 = _cubit3.TETRA8
 
  TRI3 = _cubit3.TRI3
 
  TRI4 = _cubit3.TRI4
 
  TRI6 = _cubit3.TRI6
 
  TRI7 = _cubit3.TRI7
 
  TRISHELL = _cubit3.TRISHELL
 
  TRISHELL3 = _cubit3.TRISHELL3
 
  TRISHELL4 = _cubit3.TRISHELL4
 
  TRISHELL6 = _cubit3.TRISHELL6
 
  TRISHELL7 = _cubit3.TRISHELL7
 
  TRUSS = _cubit3.TRUSS
 
  TRUSS2 = _cubit3.TRUSS2
 
  TRUSS3 = _cubit3.TRUSS3
 
  VERTEX = _cubit3.VERTEX
 
  VOLUME = _cubit3.VOLUME
 
  WEDGE = _cubit3.WEDGE
 
  WEDGE12 = _cubit3.WEDGE12
 
  WEDGE15 = _cubit3.WEDGE15
 
  WEDGE16 = _cubit3.WEDGE16
 
  WEDGE20 = _cubit3.WEDGE20
 
  WEDGE21 = _cubit3.WEDGE21
 
  WEDGE6 = _cubit3.WEDGE6
 

機能文書

◆ add_entities_to_group()

def cubit.add_entities_to_group (   group_id,
  entity_ids,
  entity_type 
)

指定されたグループにエンティティのリストを追加します。

.. code-block:: python

# Initialize geometry
cubit.cmd ("brick x 10" )
# Create a new empty group and retrieve its ID.
group_id = cubit.create_new_group ()
# Prepare a list of vertices 1 through 8.
verts_to_add = list(range(1,9))
# Add multiple vertices in one call.
cubit.add_entities_to_group (group_id, verts_to_add, "vertex" )
# Verify by querying group vertices.
verts = cubit.get_group_vertices (group_id)
print("Group vertices:" , verts) # prints [1, 2, 3, 4, 5, 6, 7, 8]
 @n type of group_id:  int
パラメータ
group_id エンティティが追加されるグループのID。

entity_ids の型:std::vector< int,std::allocator< int > >
entity_ids ベクトルのエンティティIDを追加します。

entity_type の型:string
entity_type エンティティの種類(例えばvertex、curve、surface、volume) ジオメトリのエンティティのみがサポートされています。

戻り値の型:void
戻り値
だれも。

◆ add_entity_to_group()

def cubit.add_entity_to_group (   group_id,
  entity_id,
  entity_type 
)

特定のエンティティを特定のグループに追加します。

.. code-block:: python

# Initialize geometry.
cubit.cmd ("brick x 10" )
# Create a new empty group and retrieve its ID.
group_id = cubit.create_new_group ()
# Add vertex with ID 1 to the new group.
cubit.add_entity_to_group (group_id, 1, "vertex" )
# Verify by querying group vertices.
verts = cubit.get_group_vertices (group_id)
print("Group vertices:" , verts) # prints "[1]"
 @n type of group_id:  int
パラメータ
group_id エンティティが追加されるグループのID。

entity_id の型:int
entity_id 追加するためのエンティティのID

entity_type の型:string
entity_type エンティティの種類(例えばvertex、curve、surface、volume) ジオメトリのエンティティのみがサポートされています。

戻り値の型:void
戻り値
だれも。

◆ add_filename_to_recent_file_list()

def cubit.add_filename_to_recent_file_list (   filename )

GUIファイルメニューでCubitの最新ファイルリストにファイル名を追加します。

指定されたファイルパスを記録して、CubitのGUIに「最近のファイル」の下に表示されます。

.. code-block:: python
import cubit
filename = "C:/models/part.sat"
 @n type of filename:  string
パラメータ
filename 最近のファイルリストに追加するパスファイルの列を参照します。

◆ add_filter_type()

def cubit.add_filter_type (   filter_type )

グラフィック・ピック・フィルターにエンティティタイプを追加します。

既存のフィルターに加えて指定されたタイプのエンティティを選択することを許可します。

.. code-block:: python
import cubit
# Add "volume" to the pick filter
 @n type of filter_type:  string
パラメータ
filter_type Entity 選択可能なセットに追加するためのタップ(例えば、vertex、curve、surface、volume、node、edge、face)。

◆ app_util()

def cubit.app_util ( )

グローバルサービスのためのAppUtilインターフェイスをCubitに戻します。

アプリケーションレベルのユーティリティへのアクセスを提供します - ログイン、構成、ファイル I/O、およびCubitMLのような高レベルのモジュールによって要求されるもの。

Pythonの使用例:

.. code-block:: python

import cubit, cubitml
# Initialize Cubit (no GUI, no journal, offscreen driver)
cubit.init (['' , '-nojournal' , '-driver' , 'offscreen' ])
util = cubit.app_util ()
cml = cubitml.CubitML(util)
geom = cubit.cgm_iface ()
ml = cubitml.MLUtil(cml, geom)
ml.load_ML()

一般的に使われているのは、 cgm_iface() ボットストラップ ML ワークフロー



戻り値の型:std:: shared_ptr< AppUtil >

戻り値
指標をAppUtilの例に分けます。

◆ are_adjacent_curves()

def cubit.are_adjacent_curves (   curve_ids )

二つまたは複数のカーブが少なくとも一つのマニフルな頂点を共有しているかどうかを返す。

カーブIDのリストを考慮して、この機能はカーブが隣接しているかどうかを返します。 2つのカーブは、少なくとも1つの「頂点」を共有する場合に隣接するものとみなされます:正確に2つのカーブと結びついている「頂点」。

共有の頂点が2つ以上のカーブに接続されている場合、カーブは、 隣接者とは思えない。 .

.. code-block:: python
cubit.cmd ("brick x 10" )
print(cubit.are_adjacent_curves ([1, 2]))
# Expected output:
# False
cubit.cmd ("surface 1 copy" ) # Creates sheet body with curves 13, 14, etc.
print(cubit.are_adjacent_curves ([13, 14]))
# Expected output:
# True
 @n type of curve_ids:  std::vector< int,std::allocator< int > >
パラメータ
curve_ids カーブのアイドルを尋ねる。

戻り値の型:boolean
戻り値
カーブが隣接している場合(少なくとも1つのマニュアル頂点 - 正確に2つのカーブに結びついた頂点を共有する場合)、間違っている場合。

◆ are_adjacent_surfaces()

def cubit.are_adjacent_surfaces (   surface_ids )

2つ以上のサーフェスが少なくとも1つのマニュアルカーブを共有しているかどうかを返す。

サーフェスIDのリストを考慮して、この機能はサーフェスが隣接しているかどうかを返します。 2つのサーフェスは、少なくとも1つのマニュアルカーブ(正確に2つのサーフェスの一部であるカーブ)を共有する場合に隣接するものとみなされます。

.. code-block:: python
cubit.cmd ("brick x 10" )
print(cubit.are_adjacent_surfaces ([1, 6]))
# Expected output:
# True
print(cubit.are_adjacent_surfaces ([1, 2]))
# Expected output:
# False
 @n type of surface_ids:  std::vector< int,std::allocator< int > >
パラメータ
surface_ids サーフェスのアイドルを尋ねる。

戻り値の型:boolean
戻り値
サーフェスが隣接している場合(少なくとも1つのマニフォルドカーブを共有する場合)は真実です。

◆ auto_size_needs_to_be_calculated()

def cubit.auto_size_needs_to_be_calculated ( )

自動メッシュサイズが時代遅れであり、再計算が必要であるかどうかを確認します。

モデルが最後の自動サイズ計算以来変更された場合、自動サイズ(計算に高価になる可能性がある)がメッシュを生成する前に再計算されるべきであることを示す。

.. code-block:: python
import cubit
# Recompute auto size on volume 1 if needed

もし cubit.auto_size_needs_to_be_calculated() : cubit.cmd (ボリューム 1サイズ自動要因)

  @n return type of :  boolean
戻り値
自動測定が日付がなくなり、再計算されるべきである場合、真実です。

◆ best_edge_to_collapse_interior_node()

def cubit.best_edge_to_collapse_interior_node (   node_id )

崩壊するのに最適なエッジを見つけて、三角形のメッシュの中で内側のノードを取り除く。

ある内部のメッシュノード(ジオメトリではない)の場合、この機能は最良の隣接するエッジを特定し、その崩壊がノードを除去する。 適切なエッジが見つからない場合は、0を返します。

.. code-block:: python
# 1) Assume vertex 50 is an interior node in a surface mesh.

if best_edge > 0: print(f"Collapse interior node 50 along edge {best_edge}") else:

print("No valid edge to collapse for node 50" )



node_id の型:int

パラメータ
node_id 内側のメッシュのノードのIDを削除します。

戻り値の型:int
戻り値
崩壊するための最良のエッジのID; 0 もし有効なエッジが見つかりません。

◆ body()

def cubit.body (   id_in )

自分のIDでボディを取り戻す。

ボディオブジェクトは、提供されたIDに合致します。

   .. code-block:: python
# Create a 10x10x10 brick (body ID 1).
cubit.cmd ("brick x 10" )
# Select and retrieve body with ID 1.
body = cubit.body (1)
print("Body ID:" , body.id())
  @n type of id_in:  int
パラメータ
id_in ボディのアイデンティティを取り戻す

戻り値の型::py:class: Body
戻り値
Body 指定されたIDに合致するオブジェクト。

◆ brick()

def cubit.brick (   width,
  depth = -1,
  height = -1 
)

特定の幅、深さ、高さのブリックを作成します。

ジオメトリのブリックを作成し、その次元が与えられています。 幅のみが提供される場合(深さと高さが -1)、サイドのキューブが長さである。 width 生み出される。

   .. code-block:: python
import cubit
# Create a cube of side 10 (width only).
cube = cubit.brick (10.0)
print("Created cube Body ID:" , cube.id())
print("Cube volume:" , cube.volume())
# Expected output:
# Created cube Body ID: 1
# Cube volume: 1000
# Create a brick of width=2, depth=3, height=4.
brick_block = cubit.brick (2.0, 3.0, 4.0)
print("Created brick Body ID:" , brick_block.id())
print("Brick volume:" , brick_block.volume())
# Expected output:
# Created brick Body ID: 2
# Brick volume: 24
  @n type of width:  float, in
パラメータ
width ブリックの幅(あるいは、この論点のみが提供されている場合、キューブ側の長さ)

depth の型:float, in, optional
depth ブリックの深さ(デフォルト = -1、使用 width).

height の型:float, in, optional
height ブリックの高さ(デフォルト = -1、使用 width).

戻り値の型::py:class: Body
戻り値
Body 新しく作られたブリックジオメトリを表すオブジェクト。

◆ calculate_timestep_estimate()

def cubit.calculate_timestep_estimate (   entity_type,
  entity_ids 
)

要素のサイズと物質特性に基づいてタイムステップを推定します。

特定のタイプの特定のメッシュの要素のための時間ステップ推定を計算します。 tet、hex、volume、block、groupをサポートしています。 要素は、少なくともelastic_modulus、poisson_ratio、および密度を定義する割り当てられた材料を持つ単一のブロックに属する必要があります。

.. code-block:: python
# Create geometry and define material properties.
cubit.cmd ("brick x 10" )
cubit.cmd ("create material \"steel\" property_group \"CUBIT-ABAQUS\"" )
cubit.cmd ("modify material \"steel\" scalar_properties \"MODULUS\" 2.068e+05 \"SHEAR_MODULUS\" 8.016e+04 \"POISSON\" 0.29 \"DENSITY\" 7e-06 \"SPECIFIC_HEAT\" 500 \"CONDUCTIVITY\" 0.045 \"THERMAL_EXPANSION\" 1.2e-05 \"YIELD_STRENGTH\" 374 \"ULTIMATE_STRENGTH\" 590" )
# Assign material and mesh.
cubit.cmd ("block 1 add volume 1" )
cubit.cmd ("block 1 material 'steel'" )
cubit.cmd ("mesh volume 1" )
# Estimate time step.
dt = cubit.calculate_timestep_estimate ('volume' , [1])
print(f"Estimated time step: {dt}" )
 @n type of entity_type:  string
パラメータ
entity_type メッシュの要素タイプのストレッチ(tet、hex、volume、block、group)

entity_ids の型:std::vector< int,std::allocator< int > >
entity_ids 推定に含まれる要素のIDのリスト。

戻り値の型:float
戻り値
最小の安定タイムステップは、指定された要素を超えています。

◆ calculate_timestep_estimate_with_props()

def cubit.calculate_timestep_estimate_with_props (   entity_type,
  entity_id_list,
  density,
  youngs_modulus,
  poissons_ratio 
)

安定した時間のステップを、ユーザーによって指定された材料の特性を使用して推定します。

特定のタイプのメッシュの要素の時間ステップの推定を計算し、提供された密度、Youngのモジュール、およびPoissonの比率ではなくブロックによって割り当てられた材料を使用します。

.. code-block:: python
# Create geometry and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume 1" )
vol_list = [1]
# Estimate time step with density=2.7, E=70, nu=0.35
2.7, 70.0, 0.35)
print(f"Custom estimate: {dt}" )
 @n type of entity_type:  string
パラメータ
entity_type メッシュ要素タイプ(tet、hex、volume、block、group)

entity_id_list の型:std::vector< int,std::allocator< int > >
entity_id_list ベクトルの要素IDが含まれます。

density の型:float
density 物質密度

youngs_modulus の型:float
youngs_modulus 若者のモジュール

poissons_ratio の型:float
poissons_ratio ポイソンの比率

戻り値の型:float
戻り値
最小安定タイムステップ推定

◆ cgm()

def cubit.cgm ( )

Cubitによって使用された原始CGMAppコアインスタンスを返します。

低レベルのCGMアプリケーション通話(バージョン、コア設定など)への直接アクセスを提供します。



戻り値の型:CGMApp

戻り値
アクティブ CGMApp インスタンス(もしくはCGMが利用できない場合、いずれも)を指摘します。

◆ cgm_iface()

def cubit.cgm_iface ( )

CGMベースのジオメトリインターフェイスをCubitに戻します。

CGMコアに実装されたCubitGeometryInterfaceを提供し、MLフィーチャ抽出に必要なCADトポロジーのリクエストと編集を可能にします。

Pythonの使用例:

.. code-block:: python

import cubit, cubitml
cubit.init (['' , '-nojournal' , '-driver' , 'offscreen' ])
util = cubit.app_util ()
cml = cubitml.CubitML(util)
geom = cubit.cgm_iface ()
ml = cubitml.MLUtil(cml, geom)
ml.load_ML()

このインターフェイスを使用して、ML パイプラインのすべてのジオメトリの操作に使用します。



戻り値の型:CubitGeometryInterface

戻り値
CGMをサポートするCubitGeometryInterfaceへの指標。

◆ clear_drawing_set()

def cubit.clear_drawing_set (   set_name )

すべてのジオメトリを名付けされた絵画セット(『たとえば』、メッシュプレビュー)で明るくします。

指定されたセット名と関連するプレビューグラフィックを削除し、セットが新鮮な操作を描くために空いている。

.. code-block:: python
import cubit
# Preview a mesh
cubit.cmd ("mesh volume 5 scheme sweep preview mesh_preview" )
# Now clear the preview set
cubit.clear_drawing_set ("mesh_preview" )
 @n type of set_name:  string
パラメータ
set_name 絵の名前が明らかになる。

◆ clear_highlight()

def cubit.clear_highlight ( )

すべてのエンティティを明確にします。

グラフィックウィンドウの各エンティティからハイキングや選択を削除します。

.. code-block:: python
import cubit
# First select nodes 10 and 20
cubit.cmd ("select node 10 20" )
# Now clear all highlights and selections

◆ clear_picked_list()

def cubit.clear_picked_list ( )

現在選ばれたエンティティのリストを明らかにします。

内部の選択リストを変更することなく、選択フィルターやハイライトを変更します。

.. code-block:: python
import cubit
# Clear all picked entities

◆ clear_preview()

def cubit.clear_preview ( )

他のディスプレイ設定に影響を及ぼさずに明確なプレビューグラフィック。

主なジオメトリまたはメッシュの可視性を変更せずに一時的なプレビューのみを削除します。

.. code-block:: python
import cubit
# Create a brick and preview moving it along the X axis by 10 units
cubit.cmd ("brick x 10" )
# A blue wireframe preview of the moved brick appears
cubit.cmd ("move volume 1 x 10 preview" )
# Now clear the blue wireframe preview

◆ cmd()

def cubit.cmd (   input_string )

直ちにCubitのコマンドストリップを実行します(モデル状態を変更します)。

これはCubit内のCADモデルを変更する主要な2つの方法の1つ(silent_cmd)です。事前検証なしで正確なコマンド文字列をCubitへ送って実行します。詳細はオンラインドキュメントのCubitコマンド構文を参照してください。

.. code-block:: python
import cubit
# Create a 10x10x10 block
cubit.cmd ("brick x 10" )
# Then mesh volume 1
cubit.cmd ("mesh volume 1" )
 @n type of input_string:  string
パラメータ
input_string Null-terminated C string containing the complete Cubit コマンド. 完全な Cubit コマンドが含まれています。

戻り値の型:boolean
戻り値
コマンドが正常実行された場合true、それ以外はfalse。

◆ contains_virtual()

def cubit.contains_virtual (   geometry_type,
  entity_id 
)

特定のジオメトリのエンティティの子供のエンティティが仮想であるかどうかを問う。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("composite create surf 1 6" ) # create composite surface (Surface ID = 7)
# Check if volume 1 contains any virtual children (surface 7 is virtual)
has_virt = cubit.contains_virtual ("volume" , 1)
print("Volume 1 contains virtual children:" , has_virt)
cubit.cmd ("composite delete surf 7" ) # delete composite surface
has_virt = cubit.contains_virtual ("volume" , 1)
print("Volume 1 contains virtual children:" , has_virt)
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、"volume"など)。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる

戻り値の型:boolean
戻り値
特定のエンティティのいずれかの子どものエンティティが仮想的である場合、偽りである場合。

◆ convection_is_on_shell_area()

def cubit.convection_is_on_shell_area (   entity_id,
  shell_area_enum 
)

BCコンベクションがシールの上部または下部にあるかどうかを確認します。



entity_id の型:int

パラメータ
entity_id BCのアイデンティティ

shell_area_enum の型:int
shell_area_enum CI_BCEntityTypesを使用する: トップのための7、下のための8。

戻り値の型:boolean
戻り値
BCが指定されたシェル面積に適用される場合が正しい。

◆ convection_is_on_solid()

def cubit.convection_is_on_solid (   entity_id )

BCコンベクションが固体であるかどうかを確認します。



entity_id の型:int

パラメータ
entity_id コンベクションの境界状態の識別

戻り値の型:boolean
戻り値
BCが堅固な地域に適用される場合が正しい。

◆ copy_body()

def cubit.copy_body (   init_body )

指定されたボディの複製を作成します。

新たに戻る Body ボディ入力の正確なコピーであり、ジオメトリとメッシュデータを含むオブジェクトです。

   .. code-block:: python
import cubit
# Create a unit cube body.
original = cubit.brick (1.0)
print("Original Body ID:" , original.id())
# Duplicate the body.
copy = cubit.copy_body (original)
print("Copied Body ID:" , copy.id())
# Verify the copy has the same volume.
print("Copy volume:" , copy.volume())
# Expected output:
# Original Body ID: 1
# Copied Body ID: 2
# Copy volume: 1.0
  @n type of init_body:  :py:class:`Body`, in
パラメータ
init_body Body 複製することに反対する。

init_body の型::py:class: Bodyで、
init_body Body 複製することに反対する。

戻り値の型::py:class: Body
戻り値
新しい Body オブジェクトは、入力のコピーです。 レース: CubitFailureException コピーが失敗した場合

◆ create_arc_curve()

def cubit.create_arc_curve (   v0,
  v1,
  intermediate_point 
)

結末の頂点と中間点を使用してカーブの弓を作成します。

定められたスタートと終わりの頂点と定められた中間点を通過する円形の弓を構築する。

   .. code-block:: python
import cubit
# Create vertices for arc endpoints.
v0 = cubit.create_vertex (1, 0, 0)
v1 = cubit.create_vertex (-1, 0, 0)
# Intermediate point on the arc (half-circle of radius 1).
mid_pt = [0.0, 1.0, 0.0]
# Create the arc curve.
arc = cubit.create_arc_curve (v0, v1, mid_pt)
print("Arc curve ID:" , arc.id())
print("Arc curve length:" , arc.length())
# Expected output:
# Arc curve ID: 1
# Arc curve length: 3.14159
  @n type of v0:  :py:class:`Vertex`, in
パラメータ
v0 アルクの頂点の始まり。

v1 の型::py:class: Vertexで、
v1 アルクの頂点の終わり。

intermediate_point の型:std::array< double,3 >(入力)
intermediate_point 3つの座標が、弓の点を表しています。

戻り値の型::py:class: Curve
戻り値
Curve オブジェクトは、創造された弓を表す。

◆ create_curve()

def cubit.create_curve (   v0,
  v1 
)

二つの頂点の間でカーブを作る。

2つの指定された頂点を結びつける直線のカーブを構築します。

   .. code-block:: python
import cubit
# Create two vertices at (0,0,0) and (1,1,0).
v0 = cubit.create_vertex (0, 0, 0)
v1 = cubit.create_vertex (1, 1, 0)
# Create a curve between v0 and v1.
curve = cubit.create_curve (v0, v1)
print("Curve ID:" , curve.id())
# Retrieve and print curve length.
print("Curve length:" , curve.length())
# Expected output:
# Curve ID: 1
# Curve length: 1.41421
  @n type of v0:  :py:class:`Vertex`, in
パラメータ
v0 カーブの頂点の始まり。

v1 の型::py:class: Vertexで、
v1 カーブの頂点の終わり。

戻り値の型::py:class: Curve
戻り値
Curve オブジェクトは頂点とのつながりを表す。

◆ create_new_group()

def cubit.create_new_group ( )

新しい空のグループを作成し、そのIDを返します。

.. code-block:: python

# Initialize geometry.
cubit.cmd ("brick x 10" )
# Create a new group and retrieve its ID.
# Add vertices in volume 1 to the new group using shorthand.
cubit.cmd (f"group {new_id} add vertex in vol 1" )
 @n return type of :  int
戻り値
新しく作成されたグループのID。

◆ create_spline()

def cubit.create_spline (   points,
  surface_id 
)

サーフェス上の3Dポイントの連続を通じてスピリットカーブを作成します。

提供された点を通過する柔らかいスプラインカーブを構築し、指定されたサーフェスにプロジェクトします。 プロジェクションは必須です: surface_id 既存のサーフェスのエンティティを参照する必要があります。 少なくとも2つのポイントが必要です; そうでなければ、A CubitFailureException 投げられた。 存在しないもの surface_id 生産する一 InvalidEntityException 」 プロジェクションまたは spline 作成の間の他のエラーは、 CubitFailureException あるいはランタイムエラー。

   .. code-block:: python
import cubit
# Create a unit cube using the brick function (cube of side 1).
cube = cubit.brick (1.0)
# Retrieve the front surface with ID 1.
front_surface = cubit.surface (1)
# Define spline points on the plane z=0.5 (front face).
points = [[0.0, 0.0, 0.5], [0.5, 0.0, 0.5], [0.5, 0.5, 0.5]]
# Create spline projected onto surface ID 1.
spline = cubit.create_spline (points, front_surface.id())
print("Spline ID:" , spline.id())
print("Spline length:" , spline.length())
# Expected output:
# Spline ID: 1
# Spline length: 1.0304240189190117
  @n type of points:  std::vector< std::array< double,3 >,std::allocator< std::array< double,3 > > >, in
パラメータ
points 3D座標(各列長さ=3)の注文リストは、少なくとも2点を含む必要があります。

surface_id の型:int(入力)
surface_id サーフェスのアイデンティティは、どのポイントが計画されているか、有効なサーフェスのアイデンティティでなければなりません。

戻り値の型::py:class: Curve
戻り値
Curve オブジェクトは、プロジェクトされたsplineを表しています。 レース: CubitFailureException 不適切な入力またはプロジェクションの故障を引き起こす。 レース: InvalidEntityException Thrown もし surface_id 既存のサーフェスに合わない。

◆ create_surface()

def cubit.create_surface (   curves )

境界線のカーブからボディの葉を作成します。

指定された閉鎖されたカーブに結びついたボディの葉を作成します。 返されたもの Body まさに1つのサーフェスと1つのボリュームが含まれています。 基礎へのアクセス Surface ボディのサーフェスリストから取り出す。

   .. code-block:: python
import cubit
# Create four vertices of a unit square on the XY-plane.
v0 = cubit.create_vertex (0, 0, 0)
v1 = cubit.create_vertex (1, 0, 0)
v2 = cubit.create_vertex (1, 1, 0)
v3 = cubit.create_vertex (0, 1, 0)
# Create boundary curves of the square.
c0 = cubit.create_curve (v0, v1)
c1 = cubit.create_curve (v1, v2)
c2 = cubit.create_curve (v2, v3)
c3 = cubit.create_curve (v3, v0)
boundary = [c0, c1, c2, c3]
# Create a sheet body from the boundary curves.
sheet_body = cubit.create_surface (boundary)
print("Sheet Body ID:" , sheet_body.id())
# Access the underlying surface object.
surface = sheet_body.surfaces()[0]
print("Surface area:" , surface.area())
# Expected output:
# Sheet Body ID: 1
# Surface area: 1.0
  @n type of curves:  std::vector< CubitInterface::Curve,std::allocator< CubitInterface::Curve > >, in
パラメータ
curves リスト → Curve 閉鎖された境界線を形成する物体。

戻り値の型::py:class: Body
戻り値
Body 作成された表を表すオブジェクト(一つのサーフェスと一つのボリュームを含む)。 レース: CubitFailureException カーブが有効なロープを形成しない場合、または創造が失敗する場合。

◆ create_vertex()

def cubit.create_vertex (   x,
  y,
  z 
)

指定された座標で頂点を作成します。

指定された位置(x、y、z)に 0 次元のジオメトリエンティティ(頂点)を作成します。 座標が指定されていない場合、頂点は起源(0.0)に置かれます。

   .. code-block:: python
import cubit
# Create a vertex at the default origin (0,0,0).
origin = cubit.create_vertex ()
coords = origin.coordinates()
print("Origin Vertex ID:" , origin.id())
print(f"Coordinates: ({coords[0]}, {coords[1]}, {coords[2]})" )
# Create a vertex at (1.0, 2.0, 3.0).
v = cubit.create_vertex (1.0, 2.0, 3.0)
coords = v.coordinates()
print("Vertex at (1,2,3) ID:" , v.id())
print(f"Coordinates: ({coords[0]}, {coords[1]}, {coords[2]})" )
  @n type of x:  float, in
パラメータ
x X=座標の頂点(デフォルト=0)

y の型:float(入力)
y Y=座標の頂点(デフォルト=0)

z の型:float(入力)
z Z - 座標の頂点(デフォルト=0)

戻り値の型::py:class: Vertex
戻り値
Vertex 指定された座標に位置する物体。

◆ create_window()

def cubit.create_window ( )

◆ current_selection_count()

def cubit.current_selection_count ( )

現在の選択リストにエンティティの番号を入力します。

どれだけのエンティティが選ばれ、ナビゲーションのために利用可能であるかを返します。

.. code-block:: python
import cubit
print("Selections:" , count)
 @n return type of :  int
戻り値
現在選択されているエンティティの数。

◆ curve()

def cubit.curve (   id_in )

カーブオブジェクトをそのIDで回収します。

カーブのオブジェクトが提供されたIDに合致することを返します。

   .. code-block:: python
import cubit
# Create a 10x10x10 brick (curve IDs include edges).
cubit.cmd ("brick x 10" )
curve = cubit.curve (1)
print("Curve ID:" , curve.id())
  @n type of id_in:  int
パラメータ
id_in 取り戻すためのカーブのID。

戻り値の型::py:class: Curve
戻り値
Curve 指定されたIDに合致するオブジェクト。

◆ cylinder()

def cubit.cylinder (   height,
  x_radius,
  y_radius,
  top_radius 
)

指示されたサイズのシリンダーまたは曲がった「円錐」を作成します。

指定された下端半径と上端半径に基づいて、円柱または円錐ボディを作成します。上端半径が0なら円錐、上端半径がx半径およびy半径と等しければ直円柱になります。

   .. code-block:: python
import cubit
# Create a cone: height=5, x_radius=2, y_radius=2, top_radius=0.
my_cone = cubit.cylinder (5, 2, 2, 0)
print("Cone ID:" , my_cone.id())
print("Cone volume:" , my_cone.volume())
# Create a straight cylinder: height=5, x_radius=2, y_radius=2, top_radius=2.
my_cylinder = cubit.cylinder (5, 2, 2, 2)
print("Cylinder ID:" , my_cylinder.id())
print("Cylinder volume:" , my_cylinder.volume())
  @n type of height:  float, in
パラメータ
height シリンダーの高さ。

x_radius の型:float(入力)
x_radius 半径 xの方向(ベースエリプス x 軸)

y_radius の型:float(入力)
y_radius 半径はY方向(ベースエリプスY軸)にあります。

top_radius の型:float(入力)
top_radius 上の半径は「円錐」のための0、直線のためのXとYの半径に等しい。

戻り値の型::py:class: Body
戻り値
Body 新しく作成されたシリンダーまたは「円錐」を表すオブジェクト。

◆ delete_all_groups()

def cubit.delete_all_groups ( )

現在のCubitセッションからすべてのグループを削除します。

.. code-block:: python

# Create some groups.
cubit.cmd ("brick x 10" )
cubit.cmd ("group \"g1\" add vertex all" )
cubit.cmd ("group \"g2\" add volume all" )
# Delete all groups.
# Verify that no groups remain by querying entities of type "group".
groups = cubit.get_entities ("group" )
print("Remaining groups:" , len(groups)) # prints "0"
 @n return type of :  void
戻り値
だれも。

◆ delete_group()

def cubit.delete_group (   group_id )

ID によって特定のグループを削除します。

.. code-block:: python

# Create and name two groups.
cubit.cmd ("brick x 10" )
cubit.cmd ("group \"g1\" add vertex all" )
cubit.cmd ("group \"g2\" add volume all" )
# Retrieve ID of "g1" and delete it.
g1_id = cubit.get_id_from_name ("g1" )
# Verify deletion: remaining groups should not include g1.
groups = cubit.get_entities ("group" )
print("Remaining groups:" , groups) # prints list containing only g2's ID
 @n type of group_id:  int
パラメータ
group_id 削除するためのグループのID

戻り値の型:void
戻り値
だれも。

◆ delete_window()

def cubit.delete_window (   id )

◆ destroy()

def cubit.destroy ( )

Cubitを閉じ、アクティブ・ジャーナルファイルを閉じます。

コマンドを吹き飛ばし、雑誌を閉鎖し、Cubitのリソースをリリースします。 呼び出した後 destroy() , 以降はCubitを呼び出さないでください。

.. code-block:: python
import cubit
status = cubit.destroy ()



戻り値の型:int

戻り値
0 on success; non-zero error code on failure エラーコードはゼロではない。

◆ developer_commands_are_enabled()

def cubit.developer_commands_are_enabled ( )

開発者コマンドが有効であるかどうかを確認します。

Cubitが開発者モードで実行されている場合、内部または実験的なコマンドへのアクセスを可能にします。

.. code-block:: python
import cubit
# Enable developer commands
cubit.cmd ("set dev on" )
# Check developer mode status

もし cubit.developer_commands_are_enabled() : print("Developer commands are enabled.")

  @n return type of :  boolean
戻り値
開発者モードがアクティブである場合、真実です。

◆ do_ML_predictions()

def cubit.do_ML_predictions (   ml_op_names,
  entity1_ids,
  entity2_ids,
  params,
  user_configs,
  mesh_size,
  reduced_features = False 
)

複数のエンティティを含む操作のリストのためのML予測を計算します。

これはバッチバージョンです。 get_ML_predictions() 操作によってエンティティIDのリストを受け入れることで、より柔軟な入力が可能になります。 「フィーチャ」は計算され、予測は決断の木のシキット学習セットを通じて生成されます。



ml_op_names の型:std::vector< std::string,std::allocator< std::string > >

パラメータ
ml_op_names ML操作またはモデル名のベクトル

entity1_ids の型:std::vector< std::vector< size_t,std::allocator< size_t > >,std::allocator< std::vector< size_t,std::allocator< size_t > > > >
entity1_ids ベクトルのベクトルは、各操作のための主なエンティティIDです。

entity2_ids の型:std::vector< std::vector< size_t,std::allocator< size_t > >,std::allocator< std::vector< size_t,std::allocator< size_t > > > >
entity2_ids ベクトルのベクトルの次元エンティティIDは、それぞれの操作に適用されます。

params の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >
params 各操作のパラメーターリストのベクトル

user_configs の型:std::vector< double,std::allocator< double > >
user_configs ユーザーが設定できる設定のベクトル(ジオメトリサイズと規制)

mesh_size の型:float
mesh_size ターゲットメッシュサイズは「フィーチャ」の計算に使用されます。

reduced_features の型:boolean, optional
reduced_features 真実(サポートされている場所)であれば、より速い結論を得るために「フィーチャ」の設定を削減してください。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
外部のベクトルはml_op_namesの長さと対戦し、それぞれの内部のベクトルには、その操作の予測値が含まれています。
   .. code-block:: python
ml_op_names = ['volume_no_op' , 'classify_surface' ]
entity1_ids = [[5, 10], [20, 25]]
entity2_ids = [[0, 0], [0, 0]]
params = [[-1, -1, -1], [-1, -1, -1]]
user_configs = [1, 0]
mesh_size = 1.5
predictions = cubit.do_ML_predictions (
ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size)

◆ entity_exists()

def cubit.entity_exists (   entity_type,
  id 
)

指定されたタイプおよびIDのエンティティが存在するかどうかを確認します。

この機能が戻ってくる。 true モデルに特定のタイプおよびIDのエンティティが存在する場合、そうでなければ、モデルに戻ります。 false .

サポートされているエンティティタイプには、vertex、curve、surface、volume、bodyなどが含まれます。

.. code-block:: python
# Check whether surface with ID 12 exists
exists = cubit.entity_exists ("surface" , 12)
print(f"Does surface 12 exist? {'Yes' if exists else 'No'}" )
 @n type of entity_type:  string
パラメータ
entity_type query対象エンティティのタイプ(例: "surface"、"curve"、"volume")。

id の型:int
id エンティティのID。

戻り値の型:boolean
戻り値
true もしエンティティが存在するなら、 false 別に。

◆ evaluate_exterior_angle()

def cubit.evaluate_exterior_angle (   curve_list,
  test_angle 
)

隣接する「サーフェス」の間の外側の角度が特定の限界より低いカーブを見つける。

この関数はCubitの"draw curve with exterior_angle < test_angle"テストを実装します。curve_list内の各カーブについて、そのカーブを共有する2つのface間の外角(ボリューム外側の角度)を計算し、外角がtest_angle未満のカーブを返します。

例設定:

.. code-block:: python
# Create two 10x10x10 bricks.
cubit.cmd ("brick x 10" ) # volume 1
cubit.cmd ("brick x 10" ) # volume 2
# Move and subtract to form L-shaped volume.
cubit.cmd ("vol 2 move x 5 y 5" )
cubit.cmd ("subtract vol 2 from vol 1" )
# Get all curve IDs.
all_curves = cubit.get_current_ids ("curve" )
# Find curves with exterior angle < 100 degrees (returns [27]).
result = cubit.evaluate_exterior_angle (all_curves, 100.0)
print(result) # prints (27,)
 @n type of curve_list:  std::vector< int,std::allocator< int > >
パラメータ
curve_list テストするためのカーブIDのベクトル

test_angle の型:float
test_angle 外側の角度の範囲はグレードで、外側の角度のtest_angleを含むカーブが返されます。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
テストを満たすカーブIDのリスト(ベクトル<int>またはPythonトップル)

◆ evaluate_exterior_angle_at_curve()

def cubit.evaluate_exterior_angle_at_curve (   curve_id,
  volume_id 
)

外側の角度を単一のカーブにボリュームに関して返します。

指定されたボリュームの外側にある外側の角度(グレード)を、指定されたカーブを共有する2つの顔の間で計算します。

.. code-block:: python
# Create two 10x10x10 bricks and subtract to form L-shape.
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 2 move x 5 y 5" )
cubit.cmd ("subtract vol 2 from vol 1" )
# Query the exterior angle at curve 27 on volume 1.
print("Exterior angle at curve 27 on volume 1:" , angle) # prints 90
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ

volume_id の型:int
volume_id ボリュームのアイドル

戻り値の型:float
戻り値
外側の角度は、2つの顔の間の段階で、指定されたボリュームにカーブを共有します。

◆ evaluate_surface_angle_at_vertex()

def cubit.evaluate_surface_angle_at_vertex (   surf_id,
  vert_id 
)

内側の角度を指定された「サーフェス」の頂点に戻します。

surf_id上のvert_idで交わる2本のエッジ間の角度を、サーフェス内部側で度単位に計算します。平面の立方体面では各コーナー頂点の内角は90度です。

.. code-block:: python
# Create a 10x10x10 brick centered at the origin; surface 1 is a square face.
cubit.cmd ("brick x 10" )
# Vertex 1 on surface 1 is a corner with interior angle of 90 degrees.
print("Interior angle at vertex 1 on surface 1:" , angle) # prints 90
 @n type of surf_id:  int
パラメータ
surf_id サーフェスのアイデンティティ

vert_id の型:int
vert_id このサーフェスの頂点のID。

戻り値の型:float
戻り値
内側の角度は、指定された頂点の「サーフェス」の段階で。

◆ exodus_sizing_function_file_exists()

def cubit.exodus_sizing_function_file_exists ( )

Exodusサイズ機能ファイルが現在存在しているかどうかを確認します。

Exodus II ファイルがサイズ機能としてインポートされ、まだディスクに残っている場合、真実に戻ります。

.. code-block:: python
import cubit
# After importing a field function:
# cubit.cmd("Import Sizing Function 'adapt.exo' Block 3 Variable 'strain' Last")
print("Sizing file exists?" , exists)
 @n return type of :  boolean
戻り値
輸入されたExodus II サイズファイルがまだディスクに存在している場合が正しい; 偽りとは異なり。

◆ find_cone_surfaces()

def cubit.find_cone_surfaces (   surface_id )

候補者から始まる「円錐」のサーフェス(s)を特定します。

サーフェスIDを考慮して、この機能はサーフェスが「円錐」の一部であるかどうかを決定します。 サーフェスが「円」であり、隣接するサーフェスも同じ「円」の一部である場合、両方のサーフェスIDが返還されます。 そうでなければ、サーフェスの入力IDのみが返されます。

.. code-block:: python
# Create a cylinder volume with a cone on top.
cubit.cmd ('cylinder rad 1 height 5' ) # Create cylinder
cubit.cmd ('create frustum height 1 radius 1 top 0' ) # Create cone (frustum with top radius 0)
cubit.cmd ('vol 2 mov z 3' ) # Move cone on top of cylinder
cubit.cmd ('unite vol all' ) # Unite volumes into one
cubit.cmd ('split period vol 1' ) # Split cylinder and cone surfaces
cone_surfaces1 = cubit.find_cone_surfaces (7)
print("Cone surfaces starting from 7:" , [int(sid) for sid in cone_surfaces1])
# Expected output:
# Cone surfaces starting from 7: [7,8]
 @n type of surface_id:  int
パラメータ
surface_id Surface IDは「円錐」候補者としてテストされる。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのリスト:
  • サーフェスの入力が「円錐」と「円」の隣人である場合、両方のサーフェスIDが返されます。
  • そうでなければ、リストにはサーフェスの入力IDのみが含まれます。

◆ find_overlapping_curves()

def cubit.find_overlapping_curves (   curve_ids )

カーブの指定リストでカーブを超えることを特定します。

結果はベクトルのベクトルです。 それぞれのベクトルには、お互いに横たわるカーブのIDが含まれています。 異なるボリュームまたは触れる「サーフェス」のカーブの間の単なる過渡点のみが報告されます。

.. code-block:: python
# Create two volumes placed exactly next to each other so that surfaces are touching.
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 10' ) # Move volume 2 exactly next to volume 1
curve_ids = cubit.get_entities ('curve' ) # Get all curve IDs
my_overlaps = cubit.find_overlapping_curves (curve_ids)
print("Overlapping curves:" )

for overlap in my_overlaps: print("Curves:", tuple(int(cid) for cid in overlap))

# Expected output:
# Curves: (10, 21)
# Curves: (1, 15)
# Curves: (5, 19)
# Curves: (12, 23)
 @n type of curve_ids:  std::vector< int,std::allocator< int > >
パラメータ
curve_ids カーブのアイデンティティのリストはカーブのオーバーラップを検索するためです。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
カーブの結果を上回るリスト。 それぞれのエントリーはカーブIDのベクトルであり、それを超える。

◆ flush_graphics()

def cubit.flush_graphics ( )

強制直ちに操作グラフィックを表示する。

引き出しの呼び出し(例えば、引き出しの位置またはメッシュプレビュー)が次のコマンドを実行する前に表示されることを保証します。 アクティブなグラフィックウィンドウが必要です。

.. code-block:: python
import cubit
cubit.cmd ("draw location 1 2 3" )

◆ gather_surfaces_by_orientation()

def cubit.gather_surfaces_by_orientation (   seed_surf_ids,
  all_surf_ids 
)

サーフェスを共有するエッジを通して接続し、サーフェスの封鎖を形成します。

種子のサーフェスのリストから始まり、再発的に共有されたエッジを通じてそれらに接続されているすべてのサーフェスを見つけ、返します。 結果のセットは、通常、閉鎖または接続されたサーフェスグループ(閉鎖)を形成します。

もし all_surf_ids 提供されている場合、検索はこれらのサーフェスに限定されています。 空いている場合は、すべてのモデルサーフェスが考慮されます。

この関数はsurface enclosureの検出、接続した外部境界の識別、またはvoidやnon-manifold geometryを含むモデルでsurface groupを選択する際に有用です。

.. code-block:: python
# Geometry setup
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("subtract vol 2 from vol 1" )
seed_surf_ids = [1] # Starting from one outer surface
all_surf_ids = [] # Search all surfaces
gathered_surfs = cubit.gather_surfaces_by_orientation (seed_surf_ids, all_surf_ids)
print("Gathered surfaces:" , gathered_surfs)
# Expected behavior:
# Surfaces on outer boundary of volume 1 will be gathered.
# Interior surfaces of the void will not be included.
 @n type of seed_surf_ids:  std::vector< int,std::allocator< int > >
パラメータ
seed_surf_ids サーフェスIDが成長するためのスタートリスト。

all_surf_ids の型:std::vector< int,std::allocator< int > >
all_surf_ids 選択肢の候補者のサーフェスIDは内部で検索する(空白はすべてのサーフェスを意味します)。
 @n return type of : std::vector< int,std:: allocator< int > >
戻り値
共有されたエッジを通じて接続されたサーフェスIDのリスト。

◆ get_2D_sheet_volumes()

def cubit.get_2D_sheet_volumes (   vol_id )

関連する 2D シートボリュームを 3D 薄ボリュームから取得します。

3Dの薄いボリュームから作成されたボディのIDを返し、薄いコマンドを削減します。 これらの表ボリュームは厚さとロフト属性を保存し、シェルFEAの目的のために保存します。

.. code-block:: python
thin_vol = 1001
sheet_vols = cubit.get_2D_sheet_volumes (thin_vol)
 @n type of vol_id:  int
パラメータ
vol_id Volume IDは3Dの薄いボリュームを表しています。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
3Dのボリュームから生成された2D表のID。

◆ get_3D_thin_volume()

def cubit.get_3D_thin_volume (   vol_id )

オリジナルの3D薄いボリュームを2Dシートボリュームと結びつける。

両親の3Dジオメトリを2Dシートボリュームから取り戻すために使用され、減少した薄い操作によって生成された。 シールFEAワークフローの追跡性をサポートします。

.. code-block:: python
sheet_vol = 2002
parent_thin_vol = cubit.get_3D_thin_volume (sheet_vol)
 @n type of vol_id:  int
パラメータ
vol_id Volume ID は 2D シートボリュームを表します。

戻り値の型:int
戻り値
関連する3D薄のボリュームのID。

◆ get_acceleration_combine_type()

def cubit.get_acceleration_combine_type (   entity_id )

BCの加速のための組み合わせ方法を取得します。

有効なオプションにはOverwrite、Average、SmallestCombine、またはLargestCombineが含まれます。

entity_id の型:int

パラメータ
entity_id スピードアップのBC。

戻り値の型:string
戻り値
シルクとして組み合わせる方法

◆ get_acis_version()

def cubit.get_acis_version ( )

ACISコアバージョンストリップを復元します。

ACISのジオメトリモデリングコアバージョンがCubitによって使用されます。

.. code-block:: python
import cubit
acis_version = cubit.get_acis_version ()
print("ACIS version:" , acis_version)
 @n return type of :  string
戻り値
ACISのバージョン番号を含むシート。

◆ get_acis_version_as_int()

def cubit.get_acis_version_as_int ( )

ACISコアバージョンを全体として復元します。

完全に暗号化されたACISバージョンを返します(例えば、バージョン2021.07のための202107)。

.. code-block:: python
# Python example
import cubit
acis_version_int = cubit.get_acis_version_as_int ()
print("ACIS version (int):" , acis_version_int)
 @n return type of :  int
戻り値
ACISのバージョンを表す全体。

◆ get_adjacent_surfaces()

def cubit.get_adjacent_surfaces (   geometry_type,
  entity_id 
)

指定されたサーフェス(サーフェス自体を含む)に隣接するサーフェスのリストを取得します。

特定のサーフェスの場合、それは指定されたエンティティを所有するすべてのサーフェスを返すか、それと限界を共有する。 返品リストにはサーフェスも含まれています。

.. code-block:: python
# Create a 10x10x10 brick centered at the origin; surfaces 1-6 are generated.
cubit.cmd ("brick x 10" )
# Query adjacent surfaces to surface 1.
adj_surfs = cubit.get_adjacent_surfaces ("surface" , 1)
print(adj_surfs) # prints (1, 6, 5, 4, 3)
 @n type of geometry_type:  string
パラメータ
geometry_type エンティティタイプ(この関数では"surface")。

entity_id の型:int
entity_id 照会するサーフェスのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのリスト(ベクトルまたはPythonトゥーブル)は、求められたサーフェスに隣接し、含まれています。

◆ get_adjacent_volumes()

def cubit.get_adjacent_volumes (   geometry_type,
  entity_id 
)

指定されたエンティティに隣接するボリュームのリストを取得します。

特定のエンティティの場合、このエンティティが所有するボリュームに触れるエンティティとボリュームを所有するすべてのボリュームを見つける。

.. code-block:: python
volume_id_list = cubit.get_adjacent_volumes ("curve" , 22)
パラメータ
geom_type エンティティのジオメトリタイプを指定する

entity_id の型:int
entity_id エンティティのIDを指定する

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
A list (‘python’ tuple) of ‘ボリューム’ ids

◆ get_all_cfd_bcs()

def cubit.get_all_cfd_bcs ( )

◆ get_all_exodus_times()

def cubit.get_all_exodus_times (   filename )

Exodusファイルから利用可能なすべてのタイムステップを取得します。

ExodusIIファイルを開き、保存されたすべての時間値(時間ステップ)のベクトルを返します。 これらの時間値は、歪んだメッシュを輸入する際に使用されます(メッシュを通じて) Time <time> あるいは Step <step> オプション) どの変形が輸入されるかを選択します。 リストの最後の時間は、デフォルトの輸入時間と一致します。

.. code-block:: python
# Query all available time steps in an Exodus file
times = cubit.get_all_exodus_times ("deformed_mesh.e" )
# Print the times
print("Available time steps:" )

for t in times: print(" Time:", t)

# Expected output (example):
# Available time steps:
# Time: 0.0
# Time: 1.0
# Time: 2.0
# Time: 3.0
 @n type of filename:  string
パラメータ
filename 完全に資格のあるExodusIIファイル名。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
ファイルに保存されている利用可能なタイムステップのベクトル(Python)

◆ get_all_exodus_variable_names()

def cubit.get_all_exodus_variable_names (   filename,
  variable_type 
)

Exodusファイルから特定のタイプのすべての変数名を取得します。

ExodusIIファイルを開き、要求されたタイプのすべての変数名のベクトルを返します。 これらの変数名は、ノードまたは要素の変数データをCubitに輸入する際に使用されます。 nodal_var そして、 element_var import options.

適用可能な変数型:

  • 「G」 = global variables -'n' = nodal variables -'e'` = element variables
.. code-block:: python
# Query all nodal variable names in an Exodus file
nodal_vars = cubit.get_all_exodus_variable_names ("deformed_mesh.e" , "n" )
# Print the variable names
print("Available nodal variables:" )

for var_name in nodal_vars: print(" ", var_name)

# Expected output (example):
# Available nodal variables:
# displacement_x
# displacement_y
# displacement_z
# temperature
 @n type of filename:  string
パラメータ
filename 完全に資格のあるExodusIIファイル名。

variable_type の型:string
variable_type 変数型:g(グローバル)、n(ノダル)、またはe(要素』)。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
ファイルに保存されている要求されたタイプの変数名のベクトル(『Python tuple』)

◆ get_all_geometric_owners()

def cubit.get_all_geometric_owners (   mesh_entity_type,
  mesh_entity_list 
)

メッシュのエンティティとその子のエンティティのセットのジオメトリの所有者のリストを取得します。

指定されたメッシュのエンティティおよび子どものエンティティのジオメトリの所有者(例えばエッジまたはノード)を返します。

タイトルサポートされたメッシュエンティティタイプ

  • quad
  • 顔
  • tri
  • hex
  • tet
  • エッジ
  • node
.. code-block:: python
# Get owners of quads 1-8 and their child edges/nodes
owners = cubit.get_all_geometric_owners ("quad" , "1 to 8" )
print("Owners:" , owners) # Output: ['surface 1', 'edge 1', 'node 1', 'node 2', ...]
 @n type of mesh_entity_type:  string
パラメータ
mesh_entity_type メッシュエンティティタイプ:四面、顔、三面、六面体要素、四面体要素、エッジ、またはノード。

mesh_entity_list の型:string
mesh_entity_list 空白区切りのmesh entity ID(例: "all"、"1 to 8"、"1 2 3")。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
所有者のベクトルは、それぞれの指定されたエンティティおよびその子どものためのラインです。

◆ get_all_ids_from_name()

def cubit.get_all_ids_from_name (   geo_type,
  name 
)

指定されたジオメトリタイプのエンティティのすべてのIDを取得し、その名前は特定のプレフィックスから始まります。

.. code-block:: python

# Create and name two volumes.
cubit.cmd ("volume 1 name 'member_2A'" )
cubit.cmd ("volume 3 name 'member_2B'" )
# Query all volume IDs with names starting with "member_2".
ids = cubit.get_all_ids_from_name ("volume" , "member_2" )
print("Found IDs:" , ids) # prints "[1, 3]"
 @n type of geo_type:  string
パラメータ
geo_type ジオメトリエンティティタイプ(vertex、curve、surface、またはvolume)

name の型:string
name 検索するためのエンティティの名前を指定します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルはエンティティの完全なIDで、名前のプレフィックスに合致します。

◆ get_aprepro_numeric_value()

def cubit.get_aprepro_numeric_value (   variable_name )

指定された Aprepro 変数の数値値を取得します。

ApreproはCubitで使用される軽量マクロ言語で、変数置換と簡単なスクリプト処理に使用します。

.. code-block:: python
# Define an Aprepro variable with a numeric value.
cubit.cmd ("#{test_var=3.14}" )
val = cubit.get_aprepro_numeric_value ("test_var" )
print("test_var =" , val) # prints 3.14
 @n type of variable_name:  string
パラメータ
variable_name 名称はAprepro variable to query です。

戻り値の型:float
戻り値
変数の値はダブル、またはCUBIT_DBL_MAXが失敗した場合。

◆ get_aprepro_value_as_string()

def cubit.get_aprepro_value_as_string (   variable_name )

Aprepro 変数のストレージ値を取得します。

ApreproはCubitで使用される軽量マクロ言語で、変数置換と簡単なスクリプト処理に使用します。

.. code-block:: python
# Define an Aprepro string variable.
cubit.cmd ("#{mesh_scheme='pave'}" )
val = cubit.get_aprepro_value_as_string ("mesh_scheme" )
print("mesh_scheme =" , val) # prints "pave"
 @n type of variable_name:  string
パラメータ
variable_name 名称はAprepro variable to query です。

戻り値の型:string
戻り値
指定されたAprpro変数のストレージ値。

◆ get_aprepro_vars()

def cubit.get_aprepro_vars ( )

現在のAprpro変数名をリトリウムします。

ApreproはCubitで使用される軽量マクロ言語で、変数置換と簡単なスクリプト処理に使用します。

.. code-block:: python
# Define two Aprepro variables.
cubit.cmd ("#{first_var=1}" )
cubit.cmd ("#{second_var=2}" )
# Query the list of Aprepro variables.
print(vars) # prints ('first_var', 'second_var')
 @n return type of : std::vector< std::string,std::allocator< std:: string > >
戻り値
現在のApreproの変数名のリスト(ベクトル<int>またはPythonトップル)

◆ get_arc_center_radius()

def cubit.get_arc_center_radius (   curve_id )

指定された弓のカーブの中心点と半径を得る。

カーブが円形またはエリプティックの弓である場合(たとえば、サイリンドルの最終輪)は、その中心(X、Y、Z)と恒久的な半径を返します。 他のカーブタイプの場合、返信 {0,0,0,0} と警告を発行します。

.. code-block:: python
# 1) Create a cylinder of radius 3 and height 2
cubit.cmd ("cylinder rad 3 height 2" )
# 2) Query one of its end-circle curves (ID 2)
curve_id = 2
arc_data = cubit.get_arc_center_radius (curve_id)
print(f"Center = ({arc_data[0]:.0f}, {arc_data[1]:.0f}, {arc_data[2]:.0f})" )
print(f"Radius = {arc_data[3]:.0f}" )
# Expected output:
# Center = (0, 0, 1)
# Radius = 3
 @n type of curve_id:  int
パラメータ
curve_id RefEdge の ID を尋ねる

戻り値の型:std:: array< double,4 >
戻り値
四つのダブルの連続: [0] = center.x, [1] = center.y, [2] = center.z, [3] = 半径; サポートされていないカーブタイプまたは失敗に戻ります。

◆ get_arc_length()

def cubit.get_arc_length (   curve_id )

指定されたカーブのパラメトリック(arc) 長さを取得します。

カーブのパラメテリズムに沿って測定された長さを返します。 Cubitのほとんどのカーブの場合、これは物理的な3D長さと一致するが、特定のスプリンまたはNURBSの表現の場合、アルク長さは、パラメトリックな形状を統合することによって計算することができる。

.. code-block:: python
# Create a cylinder of radius 1 (curves 1 and 2 are circular edges).
cubit.cmd ("create cylinder radius 1 height 2" )
# Curve 1 is a circle of radius 1: arc length = 2*PI.
arc_length = cubit.get_arc_length (1)
print("Curve 1 arc length:" , arc_length) # prints approximately 6.28319
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

戻り値の型:float
戻り値
モデルユニットにおけるカーブのパラメトリック(arc)長さ。

◆ get_assembly_children()

def cubit.get_assembly_children (   assembly_id )

◆ get_assembly_classification_category()

def cubit.get_assembly_classification_category ( )

分類カテゴリのメタデータを取得します。



戻り値の型:string

戻り値
カテゴリをシートとして分類する。

◆ get_assembly_classification_level()

def cubit.get_assembly_classification_level ( )

分類レベルのメタデータを取得します。



戻り値の型:string

戻り値
レベルはシルクとして分類します。

◆ get_assembly_description()

def cubit.get_assembly_description (   assembly_id )

集合のノードの説明を得る。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
ストリートの説明

◆ get_assembly_file_format()

def cubit.get_assembly_file_format (   assembly_id )

コレクションノードが輸入された形式ファイルを取得します。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
ファイル形式を表す文字列。例: "ACIS"または"STEP"。

◆ get_assembly_instance()

def cubit.get_assembly_instance (   assembly_id )

集合のノードの例番号を取得します。

同じ名前でノードを区別する。

assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:int
戻り値
インスタンス番号

◆ get_assembly_items()

def cubit.get_assembly_items ( )

◆ get_assembly_level()

def cubit.get_assembly_level (   assembly_id )

組み合わせのノードの階級を取得します。

レベル0は根です。

assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:int
戻り値
全体的な階級。

◆ get_assembly_material_description()

def cubit.get_assembly_material_description (   assembly_id )

材料の説明の一部を取得します。



assembly_id の型:int

パラメータ
assembly_id ノードの一部のID。

戻り値の型:string
戻り値
物質説明のストレッチ

◆ get_assembly_material_specification()

def cubit.get_assembly_material_specification (   assembly_id )

材料の仕様を一つに分けましょう。



assembly_id の型:int

パラメータ
assembly_id ノードの一部のID。

戻り値の型:string
戻り値
材料の仕様のストレッチ

◆ get_assembly_metadata()

def cubit.get_assembly_metadata (   volume_id,
  data_type 
)

指定されたボリュームのためのメタデータを取得します。

ボリュームの一部に関連するメタデータ、例えば部分番号、説明、材料情報、またはファイル参照などを返します。

volume_id の型:int

パラメータ
volume_id ボリュームのアイドル

data_type の型:int
data_type メタデータタイプ: 1 = パーツ番号、2 = 説明、3 = 材料説明、4 = 材料仕様、5 = 集合パス、6 = オリジナルファイル。

戻り値の型:string
戻り値
メタデータストリップの対応

◆ get_assembly_name()

def cubit.get_assembly_name (   assembly_id )

ノードという集団の名前を得る。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
ノードの名前の列。

◆ get_assembly_path()

def cubit.get_assembly_path (   assembly_id )

集合のノードの完全なパスを取得し、その階級を特定します。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
完全なパスストリップ、例えば「/root/subassembly/part」。

◆ get_assembly_type()

def cubit.get_assembly_type (   assembly_id )

assembly nodeのタイプ("part"または"assembly")を取得します。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
ストリップの種類

◆ get_assembly_units()

def cubit.get_assembly_units (   assembly_id )

ノードの組み合わせで使用される測定ユニットを取得します。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
ユニットストレッチ e.g、 mm、 inch。

◆ get_assembly_weapons_category()

def cubit.get_assembly_weapons_category ( )

武器カテゴリメタデータを取得します。



戻り値の型:string

戻り値
武器はシルクとして分類する。

◆ get_auto_size()

def cubit.get_auto_size (   geometry_type,
  entity_id_list,
  auto_factor 
)

エンティティのセットのための自動メッシュサイズを予測します。

メッシュサイズ(ターゲットエッジ長さ)を計算し、コマンドの「サイズ自動要因n」が特定のエンティティに発行された場合に適用される。 これはモデルを変更したり、サイズを設定したりすることはありません - それは単に値を返します。

.. code-block:: python
import cubit
# Predict auto mesh size with factor 3 on surfaces 4 and 5
size = cubit.get_auto_size ("surface" , [4, 5], 3.0)
print("Predicted auto mesh size:" , size)
 @n type of geometry_type:  string
パラメータ
geometry_type Entity type: "curve"、"surface"、または"volume"。

entity_id_list の型:std::vector< int,std::allocator< int > >
entity_id_list 指定されたエンティティのIDのベクトル

auto_factor の型:float
auto_factor n に使われた要素 size auto factor n.

戻り値の型:float
戻り値
メッシュサイズは、自動化から生じるものです。

◆ get_bc_id_list()

def cubit.get_bc_id_list (   bc_type_enum )

特定のタイプの活性限界状態(BC)IDを取得します。

アクティブなBCIDのリストを返し、特定のタイプエノムと一致します。



bc_type_enum の型:int

パラメータ
bc_type_enum 境界状態タイプエヌム(‘CI_BCTypes) FEAタイプ:1~9、CFDタイプ10~30。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
アクティブなBCIDのリスト

◆ get_bc_name()

def cubit.get_bc_name (   bc_type_enum,
  bc_id 
)

特定の限界状態(BC)の名称を取得します。

特定の BC ID とタイプに関連する名前をリトリウムします。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型エンム(CI_BCTypes)

bc_id の型:int
bc_id 境界条件の識別

戻り値の型:string
戻り値
指定されたBCの名前の列。

◆ get_bc_temperature()

def cubit.get_bc_temperature (   bc_type_enum,
  entity_id,
  temp_type_enum 
)

指定された BC 面積の温度値を取得します。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型(温度=4、コンベクション=7)

entity_id の型:int
entity_id BCのアイデンティティ

temp_type_enum の型:int
temp_type_enum CI_BCEntityTypes for 面積: 2 (固体接続)、 3 (固体テンプレート)、 7 (トップ)、 8 (下)、 9 (グラディエント)、 10 (中間)。

戻り値の型:float
戻り値
温度値

◆ get_blend_chain_collections()

def cubit.get_blend_chain_collections (   volume_list,
  radius_threshold 
)

指定されたボリュームに混合チェーンを形成するサーフェスの収集を返します。

混合チェーンは、一貫したサーフェスのグループであり、それらは、フィレットや円形のような柔らかい移行「フィーチャ」を形成する。 混合チェーンは、計算された半径によってフィルタリングされます。

radius_thresholdが提供された場合、この値より少ない半径を混ぜるチェーンだけが返されます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 2 12 8 11 blend radius 1" ) # Surfaces 7, 8, 9, 10 are created
volume_ids = [1]
radius_thresh = 2.0
blend_collections = cubit.get_blend_chain_collections (volume_ids, radius_thresh)

for surfaces, radius in blend_collections: print("Blend chain surfaces:", tuple(surfaces), "Radius:", radius)

# Expected output:
# Blend chain surfaces: (7, 8, 9, 10), Radius: 1.0
 @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

radius_threshold の型:float
radius_threshold 返すのは、計算された半径がこの値より低い混合チェーンだけです。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: 各カップルのカップルのリストには(1)混合チェーンを定義するサーフェスIDのリスト、および(2)混合チェーンの計算された半径が含まれています。

◆ get_blend_chains()

def cubit.get_blend_chains (   surface_id )

混合チェーンを特定のサーフェスのために返します。

サーフェスIDを考慮して、この機能はそのサーフェスに関連するすべての混合チェーンを返します。 サーフェスが1つまたは複数の混合チェーンの一部である場合、それぞれのチェーンはサーフェスIDのリストとして返還されます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 12 2 8 11 blend radius 1" ) # Blend the four curves on surface 5
surface_id = 10
blend_chains = cubit.get_blend_chains (surface_id)

for chain in blend_chains: print("Blend chain:", tuple(chain))

# Expected output:
# Blend chain: (7, 8, 9, 10)
 @n type of surface_id:  int
パラメータ
surface_id Surface 混合チェーンを取り戻す。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
各混合チェーンにおけるサーフェスIDのリストをリストします。
注
Pythonを使用すると、リストはPythonのトップとして返します。

◆ get_blend_surfaces()

def cubit.get_blend_surfaces (   target_volume_ids )

定められたボリュームの範囲内でサーフェスの混合物(フィレット)を見つける。

target_volume_idsにボリュームのあらゆる面を振り回し、is_blend_surfaceが真実に戻るものを返します。

.. code-block:: python
# Create a 2x2x2 brick and fillet edge 1 with radius 0.5.
cubit.cmd ("brick x 2 y 2 z 2" )
cubit.cmd ("modify curve 1 blend radius 0.5" )
# Identify blend surfaces in volume 1.
blends = cubit.get_blend_surfaces ([1])
print(blends) # expect [7]
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスのIDのベクトルは、混合物(フィレット)である。

◆ get_block_attribute_count()

def cubit.get_block_attribute_count (   block_id )

ブロックに割り当てられた属性の数を取得します。

各ブロックには最大20個の属性を保存でき、材料パラメータなどの物理特性を表現できます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 attribute count 3" )
print("Attribute count:" , attr_count)
# Expected output: Attribute count: 3
 @n type of block_id:  int
パラメータ
block_id ブロックのアイデンティティを尋ねる

戻り値の型:int
戻り値
現在ブロックに割り当てられている属性の数。

◆ get_block_attribute_name()

def cubit.get_block_attribute_name (   block_id,
  attribute_index 
)

ブロックのための特定の属性の名前を取得します。

指定ブロックの指定indexにある属性へ関連付けられた名前を返します。属性名は通常、"thickness"や"thermal_conductivity"のように、各属性の用途や意味を表すために設定されます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 attribute count 2" )
cubit.cmd ("block 1 attribute index 1 10.0" )
cubit.cmd ("block 1 attribute name 1 'thickness'" )
attr_name = cubit.get_block_attribute_name (1, 1)
print("Attribute name at index 1:" , attr_name)
# Expected output: Attribute name at index 1: thickness
 @n type of block_id:  int
パラメータ
block_id ブロックのアイドル

attribute_index の型:int
attribute_index 属性のインデックス(1始まり)。

戻り値の型:string
戻り値
指定インデックスの属性の名称。

◆ get_block_attribute_value()

def cubit.get_block_attribute_value (   block_id,
  attribute_index 
)

ブロックの特定の属性の値を取得します。

特定のブロックの指標に属性の浮動点値を返します。 属性とは、ブロック内の物理的または物質的属性を表すために割り当てられたユーザーによって定義された値、例えばシールの厚さまたは温度。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 attribute count 2" )
cubit.cmd ("block 1 attribute index 2 5.5" )
attr_value = cubit.get_block_attribute_value (1, 2)
print("Attribute value at index 2:" , attr_value)
# Expected output: Attribute value at index 2: 5.5
 @n type of block_id:  int
パラメータ
block_id ブロックのアイドル

attribute_index の型:int
attribute_index 属性のインデックス(1始まり)。

戻り値の型:float
戻り値
指定指数における属性の値。

◆ get_block_cad_material()

def cubit.get_block_cad_material (   block_id )

◆ get_block_count()

def cubit.get_block_count ( )

モデルに要素のブロックの現在の番号を入力します。

Cubitでは、要素ブロックグループに関連する同じタイプのメッシュ要素が単一のエンティティに分類されます。 ブロックはジオメトリエンティティ(ボリューム、サーフェス、カーブ)またはメッシュエンティティを直接指定することによって定義することができます。 定義されたら、これらのエンティティが所有するすべての要素がブロックの一部となる。

.. code-block:: python
# Create a 10x10x10 brick and mesh it.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume 1" )
# Define block 20 to contain volume 1.
cubit.cmd ("Block 20 add volume 1" )
# get_block_count() returns 1.
print("Block count:" , count) # prints 1
 @n return type of :  int
戻り値
モデルで現在定義されている要素のブロックの数。

◆ get_block_curves()

def cubit.get_block_curves (   block_id )

ブロックに含まれるカーブIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのカーブのIDを返します。

.. code-block:: python
# Create a brick and assign curves 1 to 12 to block 30
cubit.cmd ("brick x 10" )
cubit.cmd ("block 30 curve 1 to 12" )
# Query the curves in block 30
curve_ids = cubit.get_block_curves (30)
print(f"Block 30 contains {len(curve_ids)} curve(s)." )

for curve_id in curve_ids: print(f" Curve ID: {curve_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるカーブIDのリスト。

◆ get_block_edges()

def cubit.get_block_edges (   block_id )

ブロックに含まれるエッジIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのエッジのIDを返します。

.. code-block:: python
# Create a brick
cubit.cmd ("brick x 10" )
# Assign edges from curves in volume 1 to block 20
cubit.cmd ("block 20 edge in curve in vol 1" )
# Query the edges in block 20
edge_ids = cubit.get_block_edges (20)
print(f"Block 20 contains {len(edge_ids)} edge(s)." )

for edge_id in edge_ids: print(f" Edge ID: {edge_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるエッジIDのリスト。

◆ get_block_element_attribute_count()

def cubit.get_block_element_attribute_count (   block_id )

指定されたブロックに要素に定義された属性の数を入力します。

これは、ブロックの各要素に関連する属性値の数を返します。 属性は、シェルの厚さ、物質関数などのような属性を表すことができる。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 attribute count 2" )
print("Element attribute count:" , count)
# Expected output: Element attribute count: 2
 @n type of block_id:  int
パラメータ
block_id ブロックのIDです。

戻り値の型:int
戻り値
要素レベルの属性の数はブロックで定義されています。

◆ get_block_element_attribute_names()

def cubit.get_block_element_attribute_names (   block_id )

block要素に関連付けられた属性名のリストを取得します。

指定ブロックの要素に関連付けられたすべての属性名を返します。これらの名前は各属性の意味(例: "thickness"、"material_id")を示します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 attribute count 2" )
cubit.cmd ("block 1 attribute index 1 10.0" )
cubit.cmd ("block 1 attribute index 2 25.0" )
cubit.cmd ("block 1 attribute name 1 'thickness'" )
cubit.cmd ("block 1 attribute name 2 'density'" )

for name in names: print(name)

# Expected output:
# thickness
# density
 @n type of block_id:  int
パラメータ
block_id ブロックのアイドル

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
block要素に関連付けられた属性名のvector。

◆ get_block_element_type()

def cubit.get_block_element_type (   block_id )

ブロックと関連付けられた要素タイプを取得します。

指定ブロックで使用されている有限要素タイプ(例: HEX8、HEX20、TET10)を返します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 element type hex20" )
cubit.cmd ("mesh vol 1" )
print("Element type:" , elem_type)
# Expected output: Element type: HEX20
 @n type of block_id:  int
パラメータ
block_id ブロックのアイデンティティを検索する

戻り値の型:string
戻り値
ブロックに使用される要素タイプを示す列。

◆ get_block_faces()

def cubit.get_block_faces (   block_id )

ブロックに含まれる顔IDのリストを取得します。

この機能は、指定されたブロックの一部であるすべての顔の要素のIDを返します。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign faces from surface 1 to block 40
cubit.cmd ("block 40 face in surface 1" )
# Query the faces in block 40
face_ids = cubit.get_block_faces (40)
print(f"Block 40 contains {len(face_ids)} face(s)." )

for face_id in face_ids: print(f" Face ID: {face_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれる顔IDのリスト。

◆ get_block_hexes()

def cubit.get_block_hexes (   block_id )

ブロックに含まれるヘクサヘドロン(六面体要素)IDのリストを取得します。

この機能は、指定されたブロックの一部であるすべての六面体要素(六面体要素)のIDを返します。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign hexes in volume 1 to block 80
cubit.cmd ("block 80 hex in vol 1" )
# Query the hexes in block 80
hex_ids = cubit.get_block_hexes (80)
print(f"Block 80 contains {len(hex_ids)} hex(s)." )

for hex_id in hex_ids: print(f" Hex ID: {hex_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれる六面体要素(六面体要素)IDのリスト。

◆ get_block_id()

def cubit.get_block_id (   entity_type,
  entity_id 
)

要素のブロックIDをジオメトリのエンティティと関連付けます。

指定されたカーブ、「サーフェス」、またはボリュームと関連付けられている要素のブロックのIDを返します。 ジオメトリのエンティティは、単一のブロックに割り当てられる。 ブロックが割り当てられていない場合、この機能は0を返します。

.. code-block:: python
# Create geometry and assign it to a block
cubit.cmd ("brick x 10 y 10 z 10" )
cubit.cmd ("block 5 add volume 1" )
# Query the block ID associated with volume 1
block_id = cubit.get_block_id ("volume" , 1)
# Print the result
print("Block ID for volume 1:" , block_id)
# Expected output (example):
# Block ID for volume 1: 5
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ: "curve"、"surface"、または"volume"。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:int
戻り値
ブロックIDはエンティティと関連付けられ、またはゼロ(0)が存在しない場合。

◆ get_block_id_list()

def cubit.get_block_id_list ( )

アクティブなブロックIDのリストを取得します。

モデル内のすべての現在アクティブな要素のブロックIDのベクトルを返します。 ジオメトリのエンティティは、単一のブロックに割り当てられる。

.. code-block:: python
# Create geometry
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 2 mov x 10" )
# Create a blocks and assign volumes
cubit.cmd ("block 10 vol 1" )
cubit.cmd ("block 20 vol 2" )
# Query all active block IDs
block_ids = cubit.get_block_id_list ()
# Print the block IDs
print("Active block IDs:" )

for block_id in block_ids: print(" Block ID:", block_id)

# Expected output (example):
# Active block IDs:
# Block ID: 10
# Block ID: 20
 @n return type of : std::vector< int,std:: allocator< int > >
戻り値
すべてのアクティブなブロックIDのベクトル(Pythonトップ)

◆ get_block_ids()

def cubit.get_block_ids (   mesh_geometry_file_name )

ブロックIDのリストをメッシュジオメトリファイルから取得します。

メッシュジオメトリファイル(Exodus II形式)を開き、ファイル内に定義されたすべてのelement block IDのvectorを返します。メッシュをインポートする前に利用可能なblockを確認し、ID指定で選択的にインポートできます。

.. code-block:: python
# Query all block IDs in a mesh geometry file
block_ids = cubit.get_block_ids ("mesh_geometry.e" )
# Print the block IDs
print("Available block IDs:" )

for block_id in block_ids: print(" Block ID:", block_id)

# Expected output (example):
# Available block IDs:
# Block ID: 1
# Block ID: 5
# Block ID: 10
 @n type of mesh_geometry_file_name:  string
パラメータ
mesh_geometry_file_name メッシュのジオメトリファイル(『Exodus』II形式)の完全に定義された名前。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックIDのベクトル(Pythonトップル)はメッシュのジオメトリファイルで定義されています。

◆ get_block_material()

def cubit.get_block_material (   block_id )

指定されたブロックに割り当てられた材料のIDを取得します。

ブロックに関連する材料IDを返します。 このIDは定義された材料(材料コマンドで作成されたもの)と一致します。 0 の値は、現時点では材料が割り当てられていないことを示しています。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("material 1 name 'Steel'" )
cubit.cmd ("block 1 material 1" )
print("Material ID:" , mat_id)
 @n type of block_id:  int
パラメータ
block_id ブロックのアイドル

戻り値の型:int
戻り値
ブロックに割り当てられた材料ID、もしくは 0 がありません。

◆ get_block_nodes()

def cubit.get_block_nodes (   block_id )

ブロックに含まれるノードIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのノードのIDを返します。

.. code-block:: python
# Create a brick and mesh it
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign nodes from surface 1 to block 1
cubit.cmd ("block 1 node in surface 1" )
# Query the nodes in block 1
node_ids = cubit.get_block_nodes (1)
print(f"Block 1 contains {len(node_ids)} node(s)." )

for node_id in node_ids: print(f" Node ID: {node_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードIDのリストはブロックに含まれています。

◆ get_block_pyramids()

def cubit.get_block_pyramids (   block_id )

ブロックに含まれるピラミッドIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのピラミッド要素のIDを返します。

注
Cubitでは、単一の要素がブロックに割り当てられます。 要素タイプを分離するには、複数のブロックを使用します。 たとえば、四面体要素とピラミッドでメッシングした後、四面体要素と四面体要素と「ピラミッド」を下に示すようにブロックを分離する。
.. code-block:: python
# Create two bricks and mesh them with different schemes
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10" )
cubit.cmd ("merge all" )
cubit.cmd ("vol 1 scheme map" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("vol 2 scheme tetmesh" )
cubit.cmd ("mesh vol 2" )
# Assign tets and pyramids in volume 2 to separate blocks
cubit.cmd ("block 2 tet in vol 2" )
cubit.cmd ("block 3 pyramid in vol 2" )
# Query the pyramids in block 3
pyramid_ids = cubit.get_block_pyramids (3)
print(f"Block 3 contains {len(pyramid_ids)} pyramid(s)." )

for pyr_id in pyramid_ids: print(f" Pyramid ID: {pyr_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるピラミッドIDのリスト。

◆ get_block_string_attributes()

def cubit.get_block_string_attributes (   block_id )

◆ get_block_surfaces()

def cubit.get_block_surfaces (   block_id )

ブロックに含まれるサーフェスIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのサーフェスのIDを返します。

.. code-block:: python
# Create a brick and assign surfaces 1 to 6 to block 20
cubit.cmd ("brick x 10" )
cubit.cmd ("block 20 surface 1 to 6" )
# Query the surfaces in block 20
surface_ids = cubit.get_block_surfaces (20)
print(f"Block 20 contains {len(surface_ids)} surface(s)." )

for surf_id in surface_ids: print(f" Surface ID: {surf_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるサーフェスIDのリスト。

◆ get_block_tets()

def cubit.get_block_tets (   block_id )

ブロックに含まれるテトラヘドロン(四面体要素)IDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのテトラヘドロン(四面体要素)の要素のIDを返します。

.. code-block:: python
# Create a brick and tetmesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Assign tets in volume 1 to block 60
cubit.cmd ("block 60 tet in vol 1" )
# Query the tets in block 60
tet_ids = cubit.get_block_tets (60)
print(f"Block 60 contains {len(tet_ids)} tet(s)." )

for tet_id in tet_ids: print(f" Tet ID: {tet_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるテトラヘドロン(四面体要素)IDのリスト。

◆ get_block_tris()

def cubit.get_block_tris (   block_id )

ブロックに含まれる三角形(三角形)IDのリストを取得します。

この機能は、指定されたブロックの一部であるすべての三角形の要素のIDを返します。

.. code-block:: python
# Create a brick and tetmesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Assign triangles from surface 1 to block 30
cubit.cmd ("block 30 tri in surface 1" )
# Query the triangles in block 30
tri_ids = cubit.get_block_tris (30)
print(f"Block 30 contains {len(tri_ids)} triangle(s)." )

for tri_id in tri_ids: print(f" Tri ID: {tri_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれる三角形(三角形)IDのリスト。

◆ get_block_vertices()

def cubit.get_block_vertices (   block_id )

ブロックに含まれる「頂点」IDのリストを取得します。

この機能は、指定されたブロックの一部であるすべての頂点のIDを返します。

.. code-block:: python
# Create a brick and assign vertices 1 to 8 to block 40
cubit.cmd ("brick x 1" )
cubit.cmd ("block 40 vertex 1 to 8" )
# Query the vertices in block 40
vertex_ids = cubit.get_block_vertices (40)
print(f"Block 40 contains {len(vertex_ids)} vertex(s)." )

for vertex_id in vertex_ids: print(f" Vertex ID: {vertex_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれる「頂点」IDのリスト。

◆ get_block_volumes()

def cubit.get_block_volumes (   block_id )

ブロックに含まれるボリュームIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべてのボリュームのIDを返します。

.. code-block:: python
# Create a brick and assign it to block 1
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
# Query the volumes in block 1
volume_ids = cubit.get_block_volumes (1)
print(f"Block 1 contains {len(volume_ids)} volume(s)." )

for vol_id in volume_ids: print(f" Volume ID: {vol_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるボリュームIDのリスト。

◆ get_block_wedges()

def cubit.get_block_wedges (   block_id )

ブロックに含まれるゲームIDのリストを取得します。

この機能は、指定されたブロックの一部であるすべての要素のIDを返します。

.. code-block:: python
# Create a brick and mesh surface 1 with triangles
cubit.cmd ("brick x 10" )
cubit.cmd ("surface 1 scheme trimesh" )
cubit.cmd ("mesh surface 1" )
# Sweep the surface mesh to create wedges
cubit.cmd ("vol 1 scheme sweep" )
cubit.cmd ("mesh vol 1" )
# Assign wedges in volume 1 to block 50
cubit.cmd ("block 50 wedge in vol 1" )
# Query the wedges in block 50
wedge_ids = cubit.get_block_wedges (50)
print(f"Block 50 contains {len(wedge_ids)} wedge(s)." )

for wedge_id in wedge_ids: print(f" Wedge ID: {wedge_id}")

  @n type of block_id:  int
パラメータ
block_id 調査するブロックのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ブロックに含まれるゲームIDのリスト。

◆ get_blocks_with_materials()

def cubit.get_blocks_with_materials ( )

すべてのブロックIDとその関連する材料IDを取得します。

すべての既存のブロックIDとそれぞれに割り当てられた関連材料IDのリストを返します。 この機能は、どのブロックが割り当てられた材料を特定するのに役立ちます。 ブロックは、割り当てられた材料なしで、返品されたカップルに0の材料IDが含まれます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("material 1 name 'Steel'" )
cubit.cmd ("block 1 material 1" )

for pair in block_mats: print("Block", pair[0], "has material", pair[1])

  @n return type of : std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
block_idとmaterial_idのカップルのリスト。 材料IDは、割り当てられていない場合、0です。

◆ get_blunt_tangency_default_depth()

def cubit.get_blunt_tangency_default_depth (   vert_id,
  angle,
  add_material 
)

デフォルトの深さを計算し、頂点でタンゲンスを混ぜるために使われた。

次と組み合わせて使用します: blunt tangency コマンドは、フィレットによって引き起こされる小さな角度を排除します。 この機能はデフォルトを推定します。 depth 指定された角度に基づくパラメーターと材料が追加または削除されているかどうか。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 5 height 10" )
cubit.cmd ("vol 2 mov z 10" )
cubit.cmd ("unite vol 1 2" )
depth = cubit.get_blunt_tangency_default_depth (12, 10.0, True )
print("Default depth:" , depth)
 @n type of vert_id:  int
パラメータ
vert_id 変更する頂点のID。

angle の型:float
angle ターゲットの角度は、ブロッキング後。

add_material の型:boolean
add_material 真実なら物質が追加され、偽物なら物質が削除される。
 @n return type of :  float
戻り値
操作のための推奨深度値。

◆ get_body_count()

def cubit.get_body_count ( )

モデルにボディの現在の番号を入力します。

.. code-block:: python

# Create two bricks as separate bodies.
cubit.cmd ("brick x 10" ) # body 1
cubit.cmd ("brick x 5" ) # body 2
body_count = cubit.get_body_count () # returns 2
print("Body count:" , body_count)
 @n return type of :  int
戻り値
モデルで現在定義されているボディの数。

◆ get_bolt_axis()

def cubit.get_bolt_axis (   vol_id )

標準化された軸ベクトルをボルトボリュームから得る。

指定されたボルトジオメトリの主軸の方向を返し、単位長さに正常化します。 ボリュームが無効である場合、または軸が決定できない場合、返還されたベクトルは [0, 0, 0] となります。

.. code-block:: python
axis = cubit.get_bolt_axis (2)
print("Bolt axis:" , axis)



vol_id の型:int

パラメータ
vol_id Volume IDはボルトジオメトリを表す。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
正常化された軸ベクトルのボルト、または [0, 0, 0] 不適切な場合。

◆ get_bolt_clamped_members()

def cubit.get_bolt_clamped_members (   vol_ids,
  nearby_vols,
  progress = None 
)

ボルトに関連する粘着メンバーを特定します。

ボルトの粘着コンポーネントを表すボリュームIDの注文リストを返します:

  • サーフェスのメンバー
  • サンドイッチ(ある場合)
  • トレードメンバー

もし nearby_vols 空いている場合、Cubitは自動的に近くのボリューム(効率が低い)を決定します。

   .. code-block:: python
clamped = cubit.get_bolt_clamped_members ([12], [])

for group in clamped: print(group)

   @n type of vol_ids:  std::vector< int,std::allocator< int > >
パラメータ
vol_ids ボルトボリュームIDのリスト。

nearby_vols の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std::allocator< int > > > >
nearby_vols 各ボルトの近くのボリュームIDのオプションリスト。 空を置いて自動的に計算します。

progress の型::py:class: CubitProgressHandlerオプション
progress オプション CubitProgressHandler 進歩を監視する。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
: ボルトごとに 1 つのエントリーをリストし、それぞれボリュームIDのリストで、粘着したメンバーを表しています。

◆ get_bolt_coordinate_system()

def cubit.get_bolt_coordinate_system (   geom_type,
  id 
)

ボルトまたはボルトの穴のための地元の座標システムを取得します。

座標システムは、起源を定義する3Dポイント、Z方向点、XZ平面のポイントとして戻ります。 これは、地元空間におけるボルトと穴のジオメトリを調和または分析するのに役立ちます。

穴に基づく調査では、穴から1つのサーフェスしか必要とされず、穴をユニークに識別する必要があります。

   .. code-block:: python
# For a bolt volume
bolt_coord = cubit.get_bolt_coordinate_system ("bolt" , 12)
origin = bolt_coord[0]
z_axis_point = bolt_coord[1]
xz_plane_point = bolt_coord[2]
# For a hole surface
hole_coord = cubit.get_bolt_coordinate_system ("hole" , 35)
h_origin = hole_coord[0]
h_z_axis_point = hole_coord[1]
h_xz_plane_point = hole_coord[2]
  @n type of geom_type:  string
パラメータ
geom_type ボルトのボリュームには"bolt"、穴のサーフェスには"hole"を指定します。

id の型:int
id Volume ボルトのIDまたはサーフェスのIDは、穴のジオメトリから。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
3D点はベクトルの起源、Z方向点、XZ「平面点」の3D点。

◆ get_bolt_diameters()

def cubit.get_bolt_diameters (   vol_ids )

指定されたボルトボリュームのシャンクダイヤモンドを取得します。

入力リストにボリュームごとに推定されたシャンクダイヤモンドを返します。 無効である、または直径が決定できない「量」は、0の値を返します。

.. code-block:: python
diameters = cubit.get_bolt_diameters ([2, 3])
print("Bolt diameter for vol 2:" , diameters[0])
print("Bolt diameter for vol 3:" , diameters[1])



vol_ids の型:std::vector< int,std::allocator< int > >

パラメータ
vol_ids Volume ボルトの地質を表すID。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
シャンク直径のベクトル(vol_idsと同じ順序で)

◆ get_bolt_holes()

def cubit.get_bolt_holes (   geo_type,
  clamped_members,
  radius_threshold,
  gap_threshold 
)

上部および下部のパイロットの穴サーフェスを粘着したメンバーから特定します。

ボリュームまたはブロックを分析し、半径および近距離基準に基づいて、パイロットホールの上部および下部の「サーフェス」を抽出します。 出力は、ボルトコマンドを減らすために直接通過することができます。

.. code-block:: python
clamped_vols = [301, 302, 303]
upper_surfs, lower_surfs = cubit.get_bolt_holes ("volume" , clamped_vols, 6.0, 0.25)
 @n type of geo_type:  string
パラメータ
geo_type "volume"または"block"。クランプするメンバーのタイプを指定します。

clamped_members の型:std::vector< int,std::allocator< int > >
clamped_members ボリュームまたはブロックのIDは、候補者パイロットの穴を含みます。

radius_threshold の型:float
radius_threshold 考慮すべき穴の最大半径

gap_threshold の型:float
gap_threshold 最大分離集中穴の合成
 @n return type of : std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
二つのサーフェスIDリストのベクトル:
  • 最初のリスト:上部の穴サーフェス
  • 2番目のリスト:下の穴サーフェス(穴ごとに1個以上が含まれます)。

◆ get_bolt_holes_info()

def cubit.get_bolt_holes_info (   geo_type,
  clamped_members,
  radius_threshold,
  gap_threshold 
)

圧縮されたメンバーの間で集中的なパイロットの穴を特定します。

ボリュームまたはブロックのリストを分析して、最大の半径および近距離基準に基づいて、ボルトパイロットの穴として定義される集中穴のセットを特定します。 サーフェス、半径、軸、関連するボリュームを含む詳細な情報を返します。

.. code-block:: python
clamped_vols = [301, 302, 303]
pilot_holes = cubit.get_bolt_holes_info ("volume" , clamped_vols, 6.0, 0.25)

for hole in pilot_holes: print("Bearing volume:", hole.bearingVolume, "radius:", hole.bearingRadius)

  @n type of geo_type:  string
パラメータ
geo_type "volume"または"block"。クランプ対象メンバーの定義方法を指定します。

clamped_members の型:std::vector< int,std::allocator< int > >
clamped_members パイロットホールを含むボリュームまたはブロックのID。

radius_threshold の型:float
radius_threshold 最大半径の穴は、パイロットの穴とみなされる。

gap_threshold の型:float
gap_threshold 集中穴の間の最大距離は、調和として扱われる。
  @n return type of : std::vector< BoltHoleInfo,std:: allocator< BoltHoleInfo > >
戻り値
リスト一覧 BoltHoleInfo 構造を含む:
  • サーフェスIDとボリュームを持ち、
  • 穴の軸と半径を持ち、
  • トレードホールサーフェスID、ボリューム、軸、半径、
  • 完全な穴のセットと全体のボリュームの結合ボックス。

◆ get_bolt_shigley_radius()

def cubit.get_bolt_shigley_radius (   bolt_id,
  angle,
  washer_id = 0 
)

ボルトインターフェイスで同等のShigley frustum 半径を取得します。

シグリースタイルのフラストムの半径を計算し、ボルトを取り巻く上部と下部のボリュームの間のストレス「円錐」を表しています。 これは通常、ストレス分布を評価するために使用されます。 標準的な30度の角度は一般的です。

オプションで、ボルト洗濯機のクラップメカニズムに洗濯機を指定してそのエンティティIDを指定します(洗濯機が使用されていない場合は0に設定します)。

.. code-block:: c++
# Without washer
radius1 = cubit.get_bolt_shigley_radius (2, 0, 30.0)
print("Shigley radius (no washer):" , radius1)
# With washer (ID 5)
radius2 = cubit.get_bolt_shigley_radius (2, 5, 30.0)
print("Shigley radius (with washer):" , radius2)



bolt_id の型:int

パラメータ
bolt_id ボルトボリュームエンティティのID。

washer_id の型:int, optional
washer_id 洗濯機のエンティティのオプション ID ボルト洗濯機のメカニズム(使用しない場合は 0 を使用します)。

angle の型:float
angle 「円錐」の半角度(典型値は30)

戻り値の型:float
戻り値
ボルトインターフェイスの半径、または x1 が計算できない場合。

◆ get_bolt_washer()

def cubit.get_bolt_washer (   bolt_id )

洗濯機のボリュームIDを特定のボリュームと関連付けます。

指定されたボルトIDに合った洗濯機のボリュームIDを返します。 洗濯機がボルトと関連付けられていない場合、機能は0を返します。

   .. code-block:: python
# Assume bolt 1 has been created
washer_id = cubit.get_bolt_washer (1)
print("Washer volume ID:" , washer_id)
  @n type of bolt_id:  int
パラメータ
bolt_id 洗濯機ボリュームIDが要求されるボリュームのID。

戻り値の型:int
戻り値
ボルトに関連する洗濯機のボリュームID、または 0 が存在しない場合。

◆ get_bolts_in_clamped_members()

def cubit.get_bolts_in_clamped_members (   geo_type,
  clamped_vols,
  candidate_bolts 
)

ボリュームまたはブロックを固定するボリュームを特定します。

MLに基づく分類を提供された候補者のボリュームに実行して、どのボルトがあるかを特定し、その後、どのボルトが指定された粘着メンバーに粘着するかをチェックします。

.. code-block:: python
clamped_ids = [201, 202]
candidate_bolts = [100, 105, 110]
bolts = cubit.get_bolts_in_clamped_members ("volume" , clamped_ids, candidate_bolts)
print(bolts)
 @n type of geo_type:  string
パラメータ
geo_type "volume"または"block"。クランプ対象エンティティのタイプを示します。

clamped_vols の型:std::vector< int,std::allocator< int > >
clamped_vols ボリュームまたはブロックIDのリストは、1つまたは複数のボリュームで粘着します。

candidate_bolts の型:std::vector< int,std::allocator< int > >
candidate_bolts ボリュームは、潜在的なボリュームと見なされる。 ML分類は実際のボルトを特定するためにそれらを実行します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームIDのリストは、特定のエンティティに接続するボルトとして分類されます。

◆ get_bool_sculpt_default()

def cubit.get_bool_sculpt_default (   variable )

Retrieve default boolean-valued sculpt パラメーター。

入力変数名のサブストレーションを既知の「sculpt」パラメーターと一致し、デフォルトを返します。

タイトル利用可能なボレーンパラメーター

  • OVERWRITE
  • EXECUTE
  • VOID
  • SEPARATE_VOID_BLOCKS
  • HTET
    * PATH_ABSOLUTE, PATH_COMMAND
    * CLEAN, SHOW, IMPORT, COMBINE
  • BBOX_EXPAND
  • GEN_INPUT_FILE
  • PERIODIC
    * PILLOW_SURFACES, PILLOW_CURVES, PILLOW_BOUNDARIES, PILLOW_SMOOTH
  • DEFEATURE_BBOX
    * ADAPT_EXPORT, ADAPT_NON_MANIFOLD, USE_DEFAULT_ADAPT_THRESHOLD
    * QUALITY, COMPARE_VOLUME, COMPUTE_SS_STATS
    * WRITE_GEOM, WRITE_MBG
  • UNIQUE_GENESIS_IDS



variable の型:string

パラメータ
variable 「sculpt」のパラメーターサブストリングの名前。

戻り値の型:boolean
戻り値
指定されたパラメーターのデフォルトボレーン値。

◆ get_boundary_layer_algorithm()

def cubit.get_boundary_layer_algorithm (   boundary_layer_id )

指定された境界層によって使用されるアルゴリズムタイプを取得します。

アルゴリズム名(例: "Structured"、"Unstructured")を返します。

boundary_layer_id の型:int

パラメータ
boundary_layer_id 境界層のアイドル

戻り値の型:string
戻り値
アルゴリズムはシルクと呼ばれる。

◆ get_boundary_layer_continuity()

def cubit.get_boundary_layer_continuity (   boundary_layer_id )

境界層の継続性設定を取得します。

境界層が隣接するエンティティを通じて継続的であるかどうかを示す。

boundary_layer_id の型:int

パラメータ
boundary_layer_id 境界層のアイドル

戻り値の型:boolean
戻り値
境界層が継続的であるならば真実であり、そうでなければ偽りである。

◆ get_boundary_layer_id_list()

def cubit.get_boundary_layer_id_list ( )

境界層の定義されたすべてのIDのリストを取得します。



戻り値の型:std::vector< int,std:: allocator< int > >

戻り値
モデルで現在定義されている境界層IDのリスト。

◆ get_boundary_layers_by_base()

def cubit.get_boundary_layers_by_base (   base_type,
  base_id 
)

指定されたベースエンティティと関連するすべての限界層を取得します。

データベースのエンティティを使用する境界層IDをリリースします。

base_type の型:string

パラメータ
base_type base entityのタイプ(例: "surface"、"volume")。

base_id の型:int
base_id ベースエンティティのID

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルの境界層IDは、指定されたベースを使用します。

◆ get_boundary_layers_by_pair()

def cubit.get_boundary_layers_by_pair (   base_type,
  base_id,
  parent_id 
)

ベース親のカップルと関連するすべての限界層を取得します。

base entityとparent entityの両方を使用して定義されたboundary layerを返します。

base_type の型:string

パラメータ
base_type base entityのタイプ(例: "surface"、"volume")。

base_id の型:int
base_id ベースエンティティのID

parent_id の型:int
parent_id 親のエンティティのID

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルは、ベース親のカップルと一致する境界層IDです。

◆ get_bounding_box()

def cubit.get_bounding_box (   geometry_type,
  entity_id 
)

指定されたエンティティのための軸に合致した結合ボックスを取得します。

.. code-block:: python

bbox = cubit.get_bounding_box ("surface" , 22)
print(bbox) # Displays 10 values: minx, maxx, rangex, miny, maxy, rangey, minz, maxz, rangez, diagonal
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("body"、"volume"、"surface"、"curve"、"vertex")を指定します。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:std:: array< double,10 >
戻り値
結合ボックスのパラメーターを含む10要素の範囲。

タイトル:アーレイコンテンツ

  • [0] min x 座標
  • (1) マックス x 座標
  • (2) x 範囲(max x? ミニ x)
  • (3)分と座標
  • マックスと座標
  • [5 ] y 範囲 (max y? ☆☆☆☆
  • [6] min z coordinate
  • [7] マックス z 座標
  • 8 z 範囲(max z?) ☆☆☆☆
  • [9] ボックスのダイアゴナル長さ

◆ get_build_number()

def cubit.get_build_number ( )

Cubitの構築番号を復元します。

現在のCubitバイナリーの構築IDを返します。

.. code-block:: python
import cubit
build_number = cubit.get_build_number ()
print("Build number:" , build_number)
 @n return type of :  string
戻り値
現在のCubit構築番号を含む列。

◆ get_cavity_surfaces()

def cubit.get_cavity_surfaces (   surface_id )

サーフェスを指定されたサーフェスに近い穴に戻します。

この機能は、指定されたサーフェスと同じ穴に属するサーフェスIDのリストを返します。 surface_idの入力はすでに洞窟の一部でなければなりません。 その結果にはsurface_id自体が含まれています。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
surf_id = 17
cavity_surfs = cubit.get_cavity_surfaces (surf_id)
print("Cavity surfaces:" , tuple(cavity_surfs))
# Expected output:
# Cavity surfaces: (17, 15, 16, 13, 14)
 @n type of surface_id:  int
パラメータ
surface_id Surface IDは洞窟の一部です。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
洞窟に属するサーフェスIDのリスト(surface_idを含む)

◆ get_center_point()

def cubit.get_center_point (   entity_type,
  entity_id 
)

指定されたエンティティの3Dセンターまたは座標を取得します。

ジオメトリエンティティ(ボディ、ボリューム、サーフェス)、カーブの真ん中、座標の頂点、またはメッシュのエンティティ(ノード、「エッジ」、顔、三、四、 六面体要素、四面体要素、、ピラミッド、スペース。

.. code-block:: python
cubit.cmd ("brick x 10" )
center = cubit.get_center_point ("surface" , 1)
print("Surface 1 center:" , center) # (0.0, 0.0, 5.0)
# For a vertex:
vcoord = cubit.get_center_point ("vertex" , 12)
print("Vertex 12 coords:" , vcoord)
 @n type of entity_type:  string
パラメータ
entity_type Entity type: "body"、"volume"、"surface"、"curve"、"vertex"、"node"、"edge"、"face"、"tri"、"quad"、"hex"、"tet"、"wedge"、"pyramid"、"sphere"。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる。

戻り値の型:std:: array< double,3 >
戻り値
3 要素の範囲(x、y、z)はエンティティの中心または頂点の座標を表す。

◆ get_cfd_type()

def cubit.get_cfd_type (   entity_id )

CFDの限界条件サブタイプを取得します。



entity_id の型:int

パラメータ
entity_id CFDの境界条件のID。

戻り値の型:int
戻り値
CI_BCTypesで定義されたCFDタイプ。

◆ get_chamfer_chain_collections()

def cubit.get_chamfer_chain_collections (   volume_list,
  thickness_threshold 
)

指定されたボリュームにシャンファーチェーンを形成するサーフェスのコレクションを返します。

chamfer chainは、連続する平面サーフェスがまとまってchamferフィーチャを形成するグループです。chamfer chainは計算された厚さ(chamferエッジ間の距離)でフィルタリングされます。

thickness_thresholdを指定した場合、この値より薄いchamfer chainのみを返します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 2 12 8 11 chamfer radius 1" ) # Surfaces 7, 8, 9, 10 are created
volume_ids = [1]
thickness_thresh = 2.0
chamfer_collections = cubit.get_chamfer_chain_collections (volume_ids, thickness_thresh)

for surfaces, thickness in chamfer_collections: print("Chamfer chain surfaces:", tuple(surfaces), "Thickness:", thickness)

# Expected output:
# Chamfer chain surfaces: (7, 8, 9, 10), Thickness: 1.0
 @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

thickness_threshold の型:float
thickness_threshold 計算厚さがこの値より低いシャムファーチェーンだけを返します。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: カップルのリスト各カップルには(1)カムファーチェーンを定義するサーフェスIDのリスト、および(2)カムファーチェーンの計算厚さが含まれています。

◆ get_chamfer_chains()

def cubit.get_chamfer_chains (   surface_id )

特定のサーフェスのためにシャンファーチェーンを返します。

サーフェスIDを考慮して、この機能はそのサーフェスに関連するすべてのシャムファーチェーンを返します。 サーフェスが1つまたは複数のシャムファーチェーンの一部である場合、それぞれのチェーンはサーフェスIDのリストとして返還されます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 4 1 2 3 chamfer radius 1" ) # Chamfer the four curves on surface 5
surface_id = 10
chamfer_chains = cubit.get_chamfer_chains (surface_id)

for chain in chamfer_chains: print("Chamfer chain:", tuple(chain))

# Expected output:
# Chamfer chain: (7, 8, 9, 10)
 @n type of surface_id:  int
パラメータ
surface_id Surface シャムファーチェーンを取り出す。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
各シャンファーチェーンにサーフェスIDのリストを記載します。
注
Pythonを使用すると、リストはPythonのトップとして返します。

◆ get_chamfer_surfaces()

def cubit.get_chamfer_surfaces (   target_volume_ids,
  thickness_threshold 
)

ボリュームのリストのためのシャンファーサーフェスのリストを取得します。



target_volume_ids の型:std::vector< int,std::allocator< int > >

パラメータ
target_volume_ids ボリュームIDのリストを検討する。

thickness_threshold の型:float
thickness_threshold ハンバーガーの最大厚さ基準

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
chamfer surface ID(double)とその厚さのリスト(Python tuple)

◆ get_close_loop_thickness()

def cubit.get_close_loop_thickness (   surface_id )

サーフェスの間の距離の最小分離を計算します。

二つ以上の境界線を持つサーフェスの場合、いずれの二つの境界線の間の最小の距離を返します。 サーフェスが2個未満の場合は、0を返します。

.. code-block:: python
# Create two concentric cylinders and subtract inner from outer.
cubit.cmd ("cylinder x 3 height 10" )
cubit.cmd ("cylinder x 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
# Surface 9 has two loops; get their minimum separation.
print("Surface 9 thickness:" , thickness) # expect 1.0
 @n type of surface_id:  int
パラメータ
surface_id 測定するためのサーフェスのID

戻り値の型:float
戻り値
最小のロップ・トゥ・ロップ距離(厚さ) 0 は 2 点未満の場合に返します。

◆ get_close_loops()

def cubit.get_close_loops (   target_volume_ids,
  mesh_size 
)

特定の限界に近い複数のロップを持つ顔を見つける。

ボリュームのあらゆる面をtarget_volume_idsに表示します。 顔は2つ以上の境界線を持っている場合に含まれ、いずれの2つの境界線の間の最低距離は <= mesh_size である。

これはget_narrow_regionsとget_surfs_with_narrow_regionsとは異なり、単にエッジの分割やエッジのカップルテストの代わりに、複数のカップルを持つ顔のロップからロップの近くをチェックするだけです。

.. code-block:: python
# Create two concentric cylinders and subtract inner from outer.
cubit.cmd ("cylinder x 3 height 10" )
cubit.cmd ("cylinder x 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
# Surface 9 has two loops separated by distance 1.
mesh_size = 1.0
close_loop_faces = cubit.get_close_loops ([1], mesh_size)
print(close_loop_faces) # expect [9]
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

mesh_size の型:float
mesh_size 距離のループ分離の限界。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
loop間距離がmesh_size以内のsurface ID vector。

◆ get_close_loops_with_thickness()

def cubit.get_close_loops_with_thickness (   target_volume_ids,
  mesh_size,
  genus 
)

限界より近い複数のロープを持つ顔を見つけ、最小のロープ分離を返します。

ボリュームのあらゆる面をtarget_volume_idsに表示します。 顔が含まれる場合(遺伝子 + 1)のロープ(遺伝子 = num_loops - 1)があり、2つのロープの間の最小距離は <= mesh_size です。 各資格者に対して [surface_id, min_distance] カップルのリストを返します。

この機能はget_close_loopsとは異なり、性別によって顔をフィルタリングし、それぞれの顔に最小のロップ・トゥ・ロップ・距離を返します。

.. code-block:: python
# Create two concentric cylinders and subtract inner from outer.
cubit.cmd ("cylinder x 3 height 10" )
cubit.cmd ("cylinder x 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
# Now surface 9 has two loops (genus = 1) separated by distance 1.
mesh_size = 1.0
genus = 1 # Only surfaces with exactly two loops.
results = cubit.get_close_loops_with_thickness ([1], mesh_size, genus)

for sid, dist in results: print("Surface", sid, "has min loop distance", dist) # expect: Surface 9 は min ループ距離 1.0

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

mesh_size の型:float
mesh_size 距離のループ分離の限界。

genus の型:int
genus ラップ数 1 を減らす。 ジェンダーの顔を返すには、ジェンダー < 0 を使用します。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
loop間距離がmesh_size以内で指定genusに一致する各faceについて、[surface_id, min_distance]のvectorを返します。

◆ get_close_vertex_curve_pairs()

def cubit.get_close_vertex_curve_pairs (   target_volume_ids,
  high_tolerance 
)

指定されたボリューム群にまたがって、指定許容差内にある頂点ペアとカーブペアを検索します。

他vertexと一致するvertexを識別するget_coincident_verticesとは異なり、この関数はcurveからhigh_tolerance以内にあるvertexを検索します。target_volume_ids内のvolumeに属する全vertexとcurveを走査し、最短距離 <= high_toleranceのペアを返します。

.. code-block:: python
# Create two 1x1x1 bricks and offset the second so its vertices are close to curves on the first.
cubit.cmd ("brick x 1" )
cubit.cmd ("brick x 1" )
cubit.cmd ("volume 2 move x 1 y 0.5" )
tol = 1e-6 # Tolerance for close detection.
pairs = cubit.get_close_vertex_curve_pairs ([1, 2], tol)
# Expected output: (15, 5, 12, 1, 5, 19, 2, 15)

for i in range(0, len(pairs), 2): print("Vertex", pairs[i], "is close to Curve", pairs[i+1])

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

high_tolerance の型:float
high_tolerance 距離の範囲の下に頂点とカーブが近いと考えられます。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
フラットベクトルの [vertex_id, curve_id,...] 近くの頂点- カーブカップルを表す。

◆ get_closed_narrow_surfaces()

def cubit.get_closed_narrow_surfaces (   target_ids,
  narrow_size 
)

閉鎖されたサーフェスに顔を見つけ、その2つの境界線のエッジが距離の範囲内に残る。

サーフェスは「Uに閉じ込められている」(または「Vに閉じ込められている」)、そのU(またはV)パラメーターを通過すると、最小から最大まで同じ点に戻ります(開かないエッジ)。 target_idsのボリュームの各面には、以下の基準が適用されます。

  • 下の「サーフェス」はUまたはVで閉じられています(そのパラメトリックな方向に開かれた境界線はありません)。
  • 顔には正確に2つのラップと正確に2つのエッジ(内部と外部の境界線)があります。
  • 一方のedge上に5点を等間隔でサンプリングし、各点から他方edgeまでの最短距離がすべてnarrow_size以下である必要があります。すべての条件を満たすfaceを返します。

この機能はget_narrow_regionsとget_surfs_with_narrow_regionsと異なり、すべての顔や任意のエッジカップルをテストする代わりに、閉じた2つのロープの顔とサンプルを考慮するだけです。

.. code-block:: python
cubit.cmd ("cylinder radius 3 height 10" )
cubit.cmd ("modify curve 1 blend radius 0.5" )
cubit.cmd ("cylinder radius 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
narrow_thresh = 1.0
closed_narrow = cubit.get_closed_narrow_surfaces ([1], narrow_thresh)
print(closed_narrow) # expect two IDs
 @n type of target_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_ids 顔がチェックされているボリュームIDのベクトル

narrow_size の型:float
narrow_size 距離の範囲は「エッジ」の近さです。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
顔のIDのベクトルは、その下のサーフェスがUまたはVで閉じられているが、2つのループがあり、2つのエッジが「Narrow_size」の範囲内に残っている。

◆ get_closest_node()

def cubit.get_closest_node (   x_coordinate,
  y_coordinate,
  z_coordinate 
)

特定の点に最も近いメッシュノードを見つける。

この機能は、現在のメッシュを検索し、指定された(x、y、z)ポイントに最も近い座標のノードのIDを返します。 メッシュにノードが含まれていない場合は、0を返します。

.. code-block:: python
# Create a brick and mesh its volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Find the node closest to (5, 5, 5)
closest = cubit.get_closest_node (5.0, 5.0, 5.0)
print("Closest node to (5,5,5):" , closest)
 @n type of x_coordinate:  float
パラメータ
x_coordinate X座標の検索ポイント。

y_coordinate の型:float
y_coordinate 問点の座標です。

z_coordinate の型:float
z_coordinate Z 座標の検索ポイント。

戻り値の型:int
戻り値
最も近いノードのID、またはノードが存在しない場合の0。

◆ get_coincident_vertices()

def cubit.get_coincident_vertices (   target_volume_ids,
  high_tolerance 
)

指定されたボリューム群にまたがって、指定許容差内にある頂点ペアを検索します。

target_volume_ids内の全ボリュームのvertexを走査し、距離 <= high_toleranceのペアを識別します。vertex IDペアのフラットなリスト [v1_a, v1_b, v2_a, v2_b, ...] を返します。

.. code-block:: python
# Create two 1x1x1 bricks and move the second so they share a face.
cubit.cmd ("brick x 1" )
cubit.cmd ("brick x 1" )
cubit.cmd ("volume 2 move x 1" )
tol = 1e-6 # Tolerance for coincident detection.
pairs = cubit.get_coincident_vertices ([1, 2], tol)
# Expected output: (6, 15, 5, 16, 2, 11, 1, 12)

for i in range(0, len(pairs), 2): print("Coincident pair:", pairs[i], "and", pairs[i+1])

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

high_tolerance の型:float
high_tolerance 2つの頂点が偶然とみなされる距離の範囲の下にある。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
平らなベクトルの頂点IDカップル [v1, v2, v3, v4,. 」 偶然の頂点を表す。

◆ get_command_from_history()

def cubit.get_command_from_history (   command_number )

Cubitの歴史バッファーから特定のコマンドを取り戻す。

.. code-block:: python

import cubit

for i in range(count): print(cubit.get_command_from_history(i))

  @n type of command_number:  int
パラメータ
command_number 歴史バッファーにゼロベースのインデックス。

戻り値の型:string
戻り値
コマンドは、指数に記載されている。

◆ get_command_history_count()

def cubit.get_command_history_count ( )

コマンドの番号をCubitの歴史バッファーで入手してください。

.. code-block:: python

import cubit
 @n return type of :  int
戻り値
歴史に保存されたコマンドの総数。

◆ get_common_curve_id()

def cubit.get_common_curve_id (   surface_1_id,
  surface_2_id 
)

二つのサーフェスによって共有されたカーブを返す。

サーフェスの両方の入力を結びつけるカーブを見つける。 両方のサーフェスIDが有効であると仮定し、トポロジー的に隣接するサーフェスのみがカーブを共有することができる。 「1」が存在しない場合に「1」が戻ります。

.. code-block:: python
cubit.cmd ("brick x 10" ) # surfaces 1-6
cid = cubit.get_common_curve_id (1, 6) # Expected: 1
print(cid)
 @n type of surface_1_id:  int
パラメータ
surface_1_id 最初のサーフェスのアイドル。

surface_2_id の型:int
surface_2_id 2番目のサーフェスのアイデンティティ

戻り値の型:int
戻り値
共有のカーブのID、あるいは -1 が存在しない場合。

◆ get_common_vertex_id()

def cubit.get_common_vertex_id (   curve_1_id,
  curve_2_id 
)

二つのカーブによって共有された頂点を返す。

両方の入力カーブを結びつける頂点を見つける。 両方のカーブが存在し、隣接するカーブだけが頂点を共有していると仮定します。 共通の「トップポイント」が存在しない場合に 0 を返します。

.. code-block:: python

      cubit.cmd("brick x 10")                     // curves 1-12
      vid = cubit.get_common_vertex_id(1, 2)      // expected: 2
print(vid)
 @n type of curve_1_id:  int
パラメータ
curve_1_id 最初のカーブのアイドル。

curve_2_id の型:int
curve_2_id 二番目のカーブのアイドル。

戻り値の型:int
戻り値
共有する「頂点」のID、または 0 が存在しない場合。

◆ get_cone_surfaces()

def cubit.get_cone_surfaces (   target_volume_ids )

特定のボリュームで完全なコニカル「サーフェス」を特定します。

指定されたボリューム内で単一、分離されない「表面」によって表されるコニック「表面」を検出します。 鏡のサーフェスカップルに分けられている「円錐」は、この機能によって意図的に特定されていません。 利用 get_surface_cone_collections() もし「円錐(円)」の完全と分裂(鏡)の両方の検出が必要であるならば。

.. code-block:: python
# Create a blind hole with a single conical end
cubit.cmd ('brick x 10' )
cubit.cmd ('cylinder rad 1 height 5' )
cubit.cmd ('create frustum height 1 radius 1 top 0' )
cubit.cmd ('vol 3 mov z 3' )
cubit.cmd ('unite vol 2 3' )
cubit.cmd ('vol 2 mov z -3' )
cubit.cmd ('subtract vol 2 from vol 1' )
cone_surfaces = cubit.get_cone_surfaces ([1])
print("Cone surfaces:" , [int(sid) for sid in cone_surfaces])
# Expected output:
# Cone surfaces: [12]



target_volume_ids の型:std::vector< int,std::allocator< int > >

パラメータ
target_volume_ids 分析するためのボリュームIDのリスト。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのリストはサーフェスに合致し、完全で分割されていない「円錐」に合致します。

◆ get_connected_surfaces()

def cubit.get_connected_surfaces (   surf_ids )

特定のセットに接続されたサーフェスを見つける。

サーフェスIDのリストを与えると、この関数は共通カーブを共有して接続しているサーフェスを"patch"としてグループ化します。merged surfaceは常に除外されます。

タイトルパッチの数に基づいて行動:

  • サーフェス入力が単一のパッチを形成した場合、そのパッチに接続されたすべてのサーフェスを返します(合併したサーフェスを除く)。
  • 入力サーフェスが正確に2つの別々のパッチを形成した場合、これらの2つのパッチの間にあるすべてのサーフェスを返します(合併したサーフェスを除く)、オリジナルのパッチを加えて。
  • サーフェスの入力が2つ以上のパッチを形成した場合、空のリストを返します。
.. code-block:: python
# Create a 10x10x10 brick; surfaces 1-6 are generated.
cubit.cmd ("brick x 10" )
# Surfaces 1 and 2 are opposite faces on volume 1, forming two separate patches.
connected = cubit.get_connected_surfaces ([1, 2])
# connected will be (1, 2, 3, 4, 5, 6)
print("Connected surfaces:" , connected)
パラメータ
surface_ids サーフェスのアイデンティティが始まる。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
上記の接続規則を満たすサーフェスIDのリスト(ベクトルまたはPythonトップ)

◆ get_connectivity()

def cubit.get_connectivity (   entity_type,
  entity_id 
)

メッシュ要素を含むノードIDのリストを取得します。

この関数は指定メッシュ要素のcorner node IDを列挙してconnectivityを返します。node順序はExodus規約に従います。要素タイプごとのnode順序はExodusドキュメントを参照してください。

.. code-block:: python
# Create geometry and mesh it
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query connectivity of hex element 221
node_id_list = cubit.get_connectivity ("hex" , 221)
print("Hex 221 is connected to nodes:" , node_id_list)
 @n type of entity_type:  string
パラメータ
entity_type メッシュ要素タイプ(例: "hex"、"tet"、"tri"、"quad")。

entity_id の型:int
entity_id メッシュの要素のID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
要素の接続性を定義するノードIDのリスト。

◆ get_constraint_dependent_entity_point()

def cubit.get_constraint_dependent_entity_point (   constraint_id )

特定の制限の依存するエンティティを取得します。



constraint_id の型:int

パラメータ
constraint_id 制限のアイドル。

戻り値の型:string
戻り値
関連するエンティティは、ストレッチとして。

◆ get_constraint_reference_point()

def cubit.get_constraint_reference_point (   constraint_id )

指定制限の参照点を取得します。



constraint_id の型:int

パラメータ
constraint_id 制限のアイドル。

戻り値の型:string
戻り値
参照点はシルクとして。

◆ get_constraint_type()

def cubit.get_constraint_type (   constraint_id )

特定の制限の種類を取得します。



constraint_id の型:int

パラメータ
constraint_id 制限のアイドル。

戻り値の型:string
戻り値
: 拘束タイプ。"Kinematic"、"Distributing"、または"Rigidbody"。

◆ get_contact_pair_exterior_state()

def cubit.get_contact_pair_exterior_state (   entity_id )

接触カップルの外部状態を取得します。



entity_id の型:int

パラメータ
entity_id コンタクトカップルのID

戻り値の型:boolean
戻り値
接触が外部と見なされる場合。

◆ get_contact_pair_friction_value()

def cubit.get_contact_pair_friction_value (   entity_id )

接触カップルの振動値を取得します。



entity_id の型:int

パラメータ
entity_id コンタクトカップルのID

戻り値の型:float
戻り値
ブレイク価値

◆ get_contact_pair_general_state()

def cubit.get_contact_pair_general_state (   entity_id )

一般的な接触状態を取得します。



entity_id の型:int

パラメータ
entity_id コンタクトカップルのID

戻り値の型:boolean
戻り値
一般的な接触が有効である場合。

◆ get_contact_pair_tied_state()

def cubit.get_contact_pair_tied_state (   entity_id )

接続カップルの関連状態を取得します。



entity_id の型:int

パラメータ
entity_id コンタクトカップルのID

戻り値の型:boolean
戻り値
結びついた状態がアクティブである場合。

◆ get_contact_pair_tol_lower_value()

def cubit.get_contact_pair_tol_lower_value (   entity_id )

コンタクトカップルのための許容差の下限を取得します。



entity_id の型:int

パラメータ
entity_id コンタクトカップルのID

戻り値の型:float
戻り値
下限許容差値。

◆ get_contact_pair_tolerance_value()

def cubit.get_contact_pair_tolerance_value (   entity_id )

接続カップルのための許容差の上部線を取得します。



entity_id の型:int

パラメータ
entity_id コンタクトカップルのID

戻り値の型:float
戻り値
上限許容差値。

◆ get_continuous_curve_collections()

def cubit.get_continuous_curve_collections (   volume_list,
  angle_tolerance = -1 
)

継続的なカーブのコレクションをボリュームに戻します。

継続的なカーブは、2バレンタルの頂点に接続されたカーブと定義され、共通の頂点のタンゲンは180度の角度を形成し、指定された角度は許容差である。

.. code-block:: python
volume_ids = [1, 2]
angle_tol_deg = 5.0
collections = cubit.get_continuous_curve_collections (volume_ids, angle_tol_deg)

for curve_ids, total_length in collections: print("Curve IDs:", curve_ids, "Length:", total_length)

  @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

angle_tolerance の型:float, optional
angle_tolerance 接線角度の許容差(度)。連続カーブの接線は180度±この許容差内である必要があります。angle_tolerance < 0または未指定の場合は10度がデフォルトです。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: 継続的なカーブを形成する相対的なカーブIDの1つのベクトルのカップルの注文リスト、2つのカーブの総長さ。 リストは最小から最大の総長さまで順序付けられています。

◆ get_continuous_curves()

def cubit.get_continuous_curves (   curve_id,
  angle_tol,
  require_two_valent = False 
)

隣接する継続的なカーブのリストを返します。

2本のカーブが共有vertexで成す角度が180度±angle_tolならcontinuousとみなします。

返品リストには、入力 curve_id と接続された継続的なカーブが含まれています。

require_two_valentがtrueの場合、3本以上のカーブが接続する頂点をまたいで連続性を拡張しません。

.. code-block:: python
cubit.cmd ("cylinder rad 1 height 5" )
cubit.cmd ("vol 1 split periodic" ) # Splits the cylinder surface into surfaces 4 and 5 with continuous curves
continuous_curves = cubit.get_continuous_curves (4, 0.1)
print("Continuous curves:" , tuple(continuous_curves))
# Expected output:
# (4, 8)
 @n type of curve_id:  int
パラメータ
curve_id Curve ID を尋ねる。

angle_tol の型:float
angle_tol 継続性のための許容差の角度(グレード)

require_two_valent の型:boolean, optional
require_two_valent 真実ならば、継続性は2つ以上の隣接するカーブで頂点を越えて広がらない。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
継続セットのカーブIDのリスト(curve_idを含む)

◆ get_continuous_surface_collections()

def cubit.get_continuous_surface_collections (   volume_list,
  angle_tolerance = -1 
)

継続的なサーフェスのコレクションをボリュームに戻します。

継続的なサーフェスは、2バレンタルのカーブに結びついたサーフェスと定義され、通常のカーブのサーフェスの正常値は、指定された角度の許容差の180度の角度を形成します。

.. code-block:: python
volume_ids = [1, 2]
angle_tol_deg = 5.0
collections = cubit.get_continuous_surface_collections (volume_ids, angle_tol_deg)

for surface_ids, total_area in collections: print("Surface IDs:", surface_ids, "Area:", total_area)

@n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

angle_tolerance の型:float, optional
angle_tolerance 法線角度の許容差(度)。連続サーフェスの法線は180度±この許容差内である必要があります。angle_tolerance < 0、または未指定の場合は10度がデフォルトです。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: 継続的なパッチを形成するサーフェスIDのベクトル(1)のカップルの注文リスト、(2)サーフェスの総面積。 リストは、最小から最大の総面積まで注文されます。

◆ get_continuous_surfaces()

def cubit.get_continuous_surfaces (   surface_id,
  angle_tol 
)

隣接する継続的なサーフェスのリストを返します。

2つのサーフェスが共有curveで成す外角が180度±angle_tolならcontinuousとみなします。

返されるリストには入力surface_idと、それに接続する連続surfaceが含まれます。

.. code-block:: python
cubit.cmd ("cylinder rad 1 height 5" )
cubit.cmd ("vol 1 split periodic" ) # Splits cylinder surface into surfaces 4 and 5
continuous_surfs = cubit.get_continuous_surfaces (4, 0.1)
print("Continuous surfaces:" , tuple(continuous_surfs))
# Expected output:
# Continuous surfaces: (4, 5)
 @n type of surface_id:  int
パラメータ
surface_id Surface ID を尋ねる。

angle_tol の型:float
angle_tol 継続性のための許容差の角度(グレード)

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
継続セットのサーフェスIDのリスト(surface_idを含む)

◆ get_convection_coefficient()

def cubit.get_convection_coefficient (   entity_id,
  bc_type_enum 
)

コンベクションBCからコンベクションコエフィーを取得します。



entity_id の型:int

パラメータ
entity_id コンベクションBCのアイドル

bc_type_enum の型:int
bc_type_enum CI_BCEntityTypes: 1(normal)、5(shell top)、6(shell bottom)。

戻り値の型:float
戻り値
コンベクション・コレクション・価値

◆ get_coordinate_systems_id_list()

def cubit.get_coordinate_systems_id_list ( )

座標システムIDのリストを返します。

モデルで現在定義されているすべての座標システムのIDを返します。

Pythonでは、返品リストはIDのトップルです。

.. code-block:: python
print("Coordinate system IDs:" , coord_ids)
 @n return type of : std::vector< int,std:: allocator< int > >
戻り値
座標システムIDのリスト。

◆ get_copy_block_on_geometry_copy_setting()

def cubit.get_copy_block_on_geometry_copy_setting ( )

ジオメトリコピーの現在のブロック行動設定を取得します。

ジオメトリのエンティティをコピーすると、この設定はブロックがどのように広がるかをコントロールします。

  • OFF:コピーされたジオメトリ/メッシュは、いかなるブロックにも含まれていません。
  • use_original: コピーされたジオメトリ/メッシュは、オリジナルのブロックに追加されます。
  • 『on: 新しいブロックがコピーされたジオメトリ/メッシュのために作成され、オリジナルを反映しています。
.. code-block:: python
# Create a brick and assign a block
cubit.cmd ("brick x 10" )
cubit.cmd ("block 10 volume 1" )
# Set block copy OFF and verify setting
print("After setting OFF:" , setting)
# Copy volume; block should NOT be copied
cubit.cmd ("volume 1 copy" )
cubit.cmd ("move volume 2 x 10" )
# List blocks to verify behavior
cubit.cmd ("list block" )
cubit.cmd ("list block 10" )
# Set block copy ON and verify setting
print("After setting ON:" , setting)
# Copy volume; block should now be copied as new block 11
cubit.cmd ("volume 1 copy" )
cubit.cmd ("move volume 3 x 20" )
# List blocks to verify behavior
cubit.cmd ("list block" )
cubit.cmd ("list block 11" )
# Final check of the setting
print("Final setting:" , setting)
 @n return type of :  string
戻り値
現在のコピーブロックをジオメトリコピー設定(on、OFF、またはuse_original)にコピーします。

◆ get_copy_nodeset_on_geometry_copy_setting()

def cubit.get_copy_nodeset_on_geometry_copy_setting ( )

ジオメトリコピーの現在のノードセット行動設定を取得します。

ジオメトリのエンティティをコピーすると、この設定はノードセットがどのように広がるかをコントロールします。

  • OFF:コピーされたジオメトリ/メッシュは、ノードセットに含まれていません。
  • use_original: コピーされたジオメトリ/メッシュは、オリジナルのノードセットに追加されます。
  • 『on: 新しいノードセットがコピーされたジオメトリ/メッシュのために作成され、オリジナルを反映しています。
.. code-block:: python
# Create a brick and assign a nodeset
cubit.cmd ("brick x 10" )
cubit.cmd ("nodeset 10 vertex 1 2" )
# Set nodeset copy OFF and verify setting
print("After setting OFF:" , setting)
# Copy volume; nodeset should NOT be copied
cubit.cmd ("volume 1 copy" )
cubit.cmd ("move volume 2 x 10" )
# List nodesets to verify behavior
cubit.cmd ("list nodeset" )
cubit.cmd ("list nodeset 10" )
# Set nodeset copy ON and verify setting
print("After setting ON:" , setting)
# Copy volume; nodeset should now be copied as new nodeset 11
cubit.cmd ("volume 1 copy" )
cubit.cmd ("move volume 3 x 20" )
# List nodesets to verify behavior
cubit.cmd ("list nodeset" )
cubit.cmd ("list nodeset 11" )
# Final check of the setting
print("Final setting:" , setting)
 @n return type of :  string
戻り値
現在のコピーノードセットをジオメトリコピー設定(on、OFF、またはuse_original)にコピーします。

◆ get_copy_sideset_on_geometry_copy_setting()

def cubit.get_copy_sideset_on_geometry_copy_setting ( )

現在のサイドセット行動設定をジオメトリコピーに取得します。

ジオメトリのエンティティをコピーすると、この設定はサイドセットがどのように広がるかをコントロールします。

  • OFF:コピーされたジオメトリ/メッシュは、いかなるサイドセットにも含まれていません。
  • use_original: コピーされたジオメトリ/メッシュは、オリジナルのサイドセットに追加されます。
  • 『on: 新しいサイドセットはコピーされたジオメトリ/メッシュのために作成され、オリジナルを反映しています。
.. code-block:: python
# Create a brick and assign a sideset
cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 10 surface 1" )
# Set sideset copy OFF and verify setting
print("After setting OFF:" , setting)
# Copy volume; sideset should NOT be copied
cubit.cmd ("volume 1 copy" )
cubit.cmd ("move volume 2 x 10" )
# List sidesets to verify behavior
cubit.cmd ("list sideset" )
cubit.cmd ("list sideset 10" )
# Set sideset copy ON and verify setting
print("After setting ON:" , setting)
# Copy volume; sideset should now be copied as new sideset 11
cubit.cmd ("volume 1 copy" )
cubit.cmd ("move volume 3 x 20" )
# List sidesets to verify behavior
cubit.cmd ("list sideset" )
cubit.cmd ("list sideset 11" )
# Final check of the setting
print("Final setting:" , setting)
 @n return type of :  string
戻り値
現在のコピーサイドセットをジオメトリコピー設定(on、OFF、またはuse_original)にコピーします。

◆ get_cubit_digits_setting()

def cubit.get_cubit_digits_setting ( )

現在のCubit "digits"設定を取得します。

Cubitが数値出力を印刷する際に使用する数値点の数を返します。 これはCubitのコマンドによって設定された値と一致します。 set digits N .

.. code-block:: python
import cubit
# Set digits to 10 via Python command interface
cubit.cmd ("set digits 10" )
print("Digits setting:" , digits) # prints 10
 @n return type of :  float
戻り値
デシマル数字の数はCubitが印刷されます、または設定が存在しない場合は -1 です。

◆ get_cubit_message_handler()

def cubit.get_cubit_message_handler ( )

現在のCubit message handlerを取得します。

現在Cubitメッセージを受け取っているトレーダーのインスタンスを返します。

.. code-block:: python
import cubit
handler.print_message("Test info message" )
handler.print_error("Test error message" )
 @n return type of : :py:class: `CubitMessageHandler`
戻り値
アクティブへの指標を共有する CubitMessageHandler.

◆ get_current_ids()

def cubit.get_current_ids (   entity_type )

特定のタイプのすべての現在のジオメトリエンティティのIDを取得します。

指定タイプに一致するすべてのジオメトリエンティティIDを返します。対応タイプは"body"、"volume"、"surface"、"curve"、"vertex"です。

注: メッシュエンティティ(例: "node"、"element")を含めるには、次を使用します: get_entities() .

.. code-block:: python
cubit.cmd ("brick x 10" ) # body 1
cubit.cmd ("brick x 5" ) # body 2
body_ids = cubit.get_current_ids ("body" ) # returns (1, 2)
 @n type of entity_type:  string
パラメータ
entity_type ジオメトリエンティティタイプ: "body"、"volume"、"surface"、"curve"、または"vertex"。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
特定のタイプのすべての現在のジオメトリエンティティのIDのベクトル(またはPythonトップ)

◆ get_current_journal_file()

def cubit.get_current_journal_file ( )

現在の雑誌ファイルのフィルネームを取得します。

アクティブ・ジャーナルファイルにパスを返します。 デフォルトでログインすると、Cubitがスタートアップでどのファイルに書かれているかが表示されます。

.. code-block:: python
import cubit
print("Journal file:" , cubit.get_current_journal_file ())
 @n return type of :  string
戻り値
アクティブ・ジャーナルファイルへの完全なパスまたは、ジャーナリズムがオフになった場合、空っぽのライン。

◆ get_curve_bias_coarse_size()

def cubit.get_curve_bias_coarse_size (   curve_id )

「コアサイズ」パラメーターをカーブのバイアスに取得する場合、設定します。

カーブのbias schemeに対してユーザー指定された"coarse" interval sizeを返します。未設定の場合は0を返します。

.. code-block:: python
import cubit
# Create geometry and set fine/coarse sizes.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 2 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias fine size 0.1" )
cubit.cmd ("curve 1 scheme bias coarse size 0.5" )
# Query the coarse size.
print("Curve 1 coarse size:" , coarse_size) # Should print 0.5
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、そのコアサイズが取り戻される。

戻り値の型:float
戻り値
狭いインターバルサイズ(ダブル > 0)または定義されていない場合、0。

◆ get_curve_bias_fine_size()

def cubit.get_curve_bias_fine_size (   curve_id )

「薄いサイズ」パラメーターをカーブのバイアスに取得する場合、設定します。

カーブのbias schemeに対してユーザー指定された"fine" interval sizeを返します。未設定の場合は0を返します。

.. code-block:: python
import cubit
# Create geometry and set fine size.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 3 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias fine size 0.1" )
# Query the fine size.
print("Curve 1 fine size:" , fine_size) # Should print 0.1
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、その薄いサイズが取り戻される。

戻り値の型:float
戻り値
薄いインターバルサイズ(ダブル > 0)、または定義されていない場合、0。

◆ get_curve_bias_first_interval_fraction()

def cubit.get_curve_bias_first_interval_fraction (   curve_id )

最初のインターバルサイズとして使用されたカーブの長さの分割を回収します。

最初のインターバル長をカーブ全長に対する比率として返します。(例: fraction = 0.25 の場合、first interval = 0.25 * curve_length)

.. code-block:: python
import cubit
# Create geometry and set bias fraction.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 2 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias fraction 0.25" )
# Query the first interval fraction.
print("Curve 1 first interval fraction:" , frac) # Should print 0.25
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、その最初のインターバルフラクションが取り出される。

戻り値の型:float
戻り値
フラクション(0 < フラクション <= 1)の合計カーブ長さ、または 0 が設定されていない場合。

◆ get_curve_bias_first_interval_length()

def cubit.get_curve_bias_first_interval_length (   curve_id )

biased curve上の最初のinterval長を取得します。

カーブ上の最初(最小)のmesh intervalの絶対長を返します。その形式を使用している場合は"first_delta"に対応し、そうでなければ自動計算値です。



curve_id の型:int

パラメータ
curve_id カーブのID、その最初のインターバルの長さが取得されます。

戻り値の型:float
戻り値
長さの最初のメッシュのインターバル(ダブル > 0)、または 0 が設定されていない場合。
.. code-block:: python
import cubit
# Create geometry and set first_delta.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 1 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias first_delta 0.2" )
# Query the first interval length.
print("Curve 1 first interval length:" , first_len) # Should print 0.2

◆ get_curve_bias_first_last_ratio1()

def cubit.get_curve_bias_first_last_ratio1 (   curve_id )

最初から最後のインターバルの比率を、バイアスのカーブの始まりに取り戻します。

最初のインターバルから最後のインターバルまでの長さの比率をカーブの始まりの頂点に戻す。 最初にメッシュがどれほど攻撃的であるかを理解するのに役立ちます。

.. code-block:: python
import cubit
# Create geometry and set bias factor.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 5 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 2.0" )
# Query the start first/last ratio.
print("Curve 1 start first/last ratio:" , ratio1)
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、そのスタート比率が回収されます。

戻り値の型:float
戻り値
最初のインターバルの長さから始まるインターバルの長さの比率(ダブル > 0)

◆ get_curve_bias_first_last_ratio2()

def cubit.get_curve_bias_first_last_ratio2 (   curve_id )

最初から最後のインターバルの比率を、バイアスのカーブの終わりに取り戻す。

最初のインターバルから最後のインターバルまでの長さの比率をカーブの終わりの頂点に戻す。 メッシュがどれほど攻撃的に終わりに近づいているかを理解するのに役立ちます。

.. code-block:: python
import cubit
# Create geometry and set bias factor.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 5 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 2.0" )
# Query the end first/last ratio.
print("Curve 1 end first/last ratio:" , ratio2)
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、その最終比率が引き出される。

戻り値の型:float
戻り値
最初のインターバルの長さから最後のインターバルの長さの比率(ダブル > 0)です。

◆ get_curve_bias_from_start()

def cubit.get_curve_bias_from_start (   curve_id,
  value 
)

バイアスがカーブのスタート頂点から測定されているかどうかを決定する。

デフォルトでは、いかなる「ビアス」のスキームも「トップポイント」のスタートから適用されます。 もしあなたが「カーブ <id> reverse bias」と呼ぶなら、これは進歩を振り回し、その結果から測定されます。 この機能は、バイアスの進歩が頂点の開始時に始まる場合、出力ボーレンを真実に設定するか、逆転した場合、偽りである。

.. code-block:: python
import cubit
# 1) Create curve and set bias (starts from start by default).
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 2 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 1.2" )
# 2) Query from_start (should be True).
print("Bias from start?" , from_start) # True
# 3) Reverse bias, then query again (should be False).
cubit.cmd ("curve 1 reverse bias" )
print("Bias from start?" , from_start) # False
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

value の型:boolean(出力)
value バイアスが「頂点」から始まる場合、真実に設定し、逆転または設定しない場合、偽りです。

戻り値の型:boolean
戻り値
カーブが存在する場合(出力が書かれている場合)、curve_idが無効である場合、偽物。

◆ get_curve_bias_from_start_set()

def cubit.get_curve_bias_from_start_set (   curve_id )

「スタートからビアス」の旗が明確にカーブに設定されているかどうかを確認します。

バイアスからスタート設定(または「逆バイアス」)がこのカーブのために定義された場合に真実に戻ります。 もしカーブが未定であるが、あなたは決して「逆のバイアス」と呼ばれたことがない場合、これはまだ真実(デフォルト)を報告する可能性があります。

.. code-block:: python
import cubit
# 1) Create curve and set bias (default from-start).
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 1 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 1.3" )
# 2) Query if from-start is explicitly set (True by default).
print("Bias-from-start explicitly set?" , is_set) # True
# 3) Reverse bias, then query again (still True).
cubit.cmd ("curve 1 reverse bias" )
print("Bias-from-start explicitly set?" , is_set) # True
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

戻り値の型:boolean
戻り値
真実であるならば、バイアスからスタート(または逆)が定義され、偽であるならば、またはカーブが不適切であるならば。

◆ get_curve_bias_geometric_factor()

def cubit.get_curve_bias_geometric_factor (   curve_id )

主なジオメトリの進歩要因をカーブを破壊するために使用します。

カーブ始端で連続するエッジ長の比を取得します。この"factor"は最初のvertexからのbiased meshにおける等比数列を定義します。



curve_id の型:int

パラメータ
curve_id カーブのアイデンティティは、最初のバイアス要因が回収される。

戻り値の型:float
戻り値
最初のジオメトリバイアス要因(比率 > 0)
.. code-block:: python
import cubit
# Create geometry and set bias factor.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 0 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 2.0" )
# Query the first bias factor.
print("Curve 1 first bias factor:" , factor1) # Should print 2.0

◆ get_curve_bias_geometric_factor2()

def cubit.get_curve_bias_geometric_factor2 (   curve_id )

二重バイアスのカーブのための二次的なジオメトリ進歩因子を取得します。

dualbias使用時に、両端vertexから中央へ向かって使用する同一の"factor"を取得します。dualbiasではfactor値は1つだけで、両端から対称に適用されます。



curve_id の型:int

パラメータ
curve_id カーブのID、その二重バイアス要因が回収される。

戻り値の型:float
戻り値
二重バイアスのカーブのためのジオメトリ要因(割合 > 0)
.. code-block:: python
import cubit
# Create geometry and set dualbias factor.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 1 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme dualbias factor 1.5" )
# Query the dualbias factor.
print("Curve 1 dualbias factor:" , factor2) # Should print 1.5

◆ get_curve_bias_last_first_ratio1()

def cubit.get_curve_bias_last_first_ratio1 (   curve_id )

最後から最初のインターバルの比率を、バイアスのカーブの始まりに取り戻します。

カーブの始まりの頂点(すなわち、最後のインターバルの長さ / 最初のインターバルの長さ)に最初の/最後の比率の逆転を返します。

.. code-block:: python
import cubit
# Create geometry and set bias factor.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 5 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 2.0" )
# Query the start last/first ratio.
print("Curve 1 start last/first ratio:" , inv_ratio1)
 @n type of curve_id:  int
パラメータ
curve_id カーブのID、そのスタート逆比率が回収されます。

戻り値の型:float
戻り値
最後のインターバルの長さから最初のインターバルの長さへの比率(ダブル > 0)が始まります。

◆ get_curve_bias_last_first_ratio2()

def cubit.get_curve_bias_last_first_ratio2 (   curve_id )

最後から最初のインターバルの比率を、バイアスのカーブの終わりに取り戻す。

カーブの終わりの頂点に、最初/最後の比率の逆転を返す(すなわち、最後のインターバルの長さ/最初のインターバルの長さ)

.. code-block:: python
import cubit
# Create geometry and set bias factor.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 5 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 scheme bias factor 2.0" )
# Query the end last/first ratio.
print("Curve 1 end last/first ratio:" , inv_ratio2)
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティは、その最終逆比率が回収される。

戻り値の型:float
戻り値
最後のインターバルの長さから最後のインターバルの長さの比率。

◆ get_curve_bias_start_vertex_id()

def cubit.get_curve_bias_start_vertex_id (   curve_id )

「頂点」IDをカーブのバイアスの始まりとして指定します。

カーブベースのvertex sizeを使用する際にbiasの"start"点として使う頂点IDを返します。カスタムstart vertexが定義されていない場合は-1を返します。

.. code-block:: python
import cubit
# 1) Create curve, set vertex sizes, then bias from vertex 1.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 0 4 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("vertex 1 size 0.5" )
cubit.cmd ("vertex 2 size 1.0" )
cubit.cmd ("curve 1 scheme bias factor 1.8 start vertex 1" )
# 2) Query the start vertex for bias.

if start_vertex >= 0: print("Start vertex for bias:", start_vertex) # Should print 1

  @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、そのスタート頂点が求められます。

戻り値の型:int
戻り値
Vertex ビアススタートのID、または定義されていない場合、または無効である場合 -1 です。

◆ get_curve_bias_type()

def cubit.get_curve_bias_type (   curve_id )

カーブに適用されたバイアスのスキームタイプを回復します。

指定されたカーブのビアススキームを記述する列を返します。 可能な値にはBias、Dualbias、Multi_bias、またはNoneが含まれます。



curve_id の型:int

パラメータ
curve_id カーブのアイデンティティ、そのバイアスタイプが要求される。

戻り値の型:string
戻り値
カーブのバイアスタイプを示すストレッチ。
.. code-block:: python
import cubit
# 1) Create two vertices and a curve (Curve ID = 1).
cubit.cmd ("create vertex 0 0 0" ) # Vertex ID = 1
cubit.cmd ("create vertex 0 1 0" ) # Vertex ID = 2
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
# 2) Apply a bias scheme (factor = 1.5).
cubit.cmd ("curve 1 scheme bias factor 1.5" )
# 3) Query the bias type.
bias_type = cubit.get_curve_bias_type (1)
print("Curve 1 bias type:" , bias_type) # Should print "Bias"

◆ get_curve_center()

def cubit.get_curve_center (   curve_id )

指定されたカーブの中心点を回復します。

タイトルコンピューティングセンター

  • 円形およびエリプティックの弓の場合、正確なジオメトリセンターが戻ります。
  • 直線カーブの場合、端点の間の真ん中点が戻ります。
  • 他のすべてのカーブタイプの場合、またはセンターが決定できない場合は、返品(0、0、0)となります。
.. code-block:: python
cubit.cmd ("create vertex 0 0 0" ); cubit.cmd ("create vertex 1 0 0" )
cubit.cmd ("create curve vertex 1 2" )
c1 = cubit.get_curve_center (1); print(c1) # Output: (0.5, 0.0, 0.0)
cubit.cmd ("cylinder rad 3 height 1" )
c2 = cubit.get_curve_center (2); print(c2) # Output: (0.0, 0.0, 0.0)
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

戻り値の型:std:: array< double,3 >
戻り値
3つの要素の列(x、y、z)は、カーブの中心または中間点を表し、定義されていない場合は返します。

◆ get_curve_count()

def cubit.get_curve_count ( )

モデルにカーブの現在の番号を入力します。

.. code-block:: python

# Create a 10x10x10 brick; this generates twelve curves (edges).
cubit.cmd ("brick x 10" )
curve_count = cubit.get_curve_count () # returns 12
print("Curve count:" , curve_count)
 @n return type of :  int
戻り値
モデルで現在定義されているカーブの数。

◆ get_curve_count_in_volumes()

def cubit.get_curve_count_in_volumes (   target_volume_ids )

指定されたボリュームにカーブの現在の番号を入力します。

.. code-block:: python

# Create two bricks: volume 1 (10x10x10) and volume 2 (5x5x5).
cubit.cmd ("brick x 10" ) # volume 1, 12 curves
cubit.cmd ("brick x 5" ) # volume 2, 12 curves
# Count curves in volumes 1 and 2.
volumes = [1, 2]
curve_count = cubit.get_curve_count_in_volumes (volumes) # returns 24
print("Curve count in volumes 1 and 2:" , curve_count)
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 照会するボリュームIDのリスト。

戻り値の型:int
戻り値
指定されたボリュームに含まれるカーブの総数。

◆ get_curve_edges()

def cubit.get_curve_edges (   curve_id )

エッジの要素IDのリストをカーブに取得します。

この機能は、指定されたカーブに存在するすべてのエッジの要素のIDを返します。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the edges on curve 1
edge_ids = cubit.get_curve_edges (1)
print(f"Curve 1 contains {len(edge_ids)} edge(s)." )

for edge_id in edge_ids: print(f" Edge ID: {edge_id}")

  @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを調べる

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
エッジの要素IDのリストはカーブにあります。

◆ get_curve_length()

def cubit.get_curve_length (   curve_id )

指定されたカーブの3D長さを取得します。

これは、モデルユニットにおけるカーブの物理的長さを返します。 閉じたカーブ(たとえば、サークル)の場合、それは周囲に等しく、線の場合、直線の距離に等しい。

.. code-block:: python
# Create a cylinder of radius 1 (curves 1 and 2 are circular edges).
cubit.cmd ("create cylinder radius 1 height 2" )
# Curve 1 is a circle of radius 1: length = 2*PI.
length = cubit.get_curve_length (1)
print("Curve 1 length:" , length) # prints approximately 6.28319
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

戻り値の型:float
戻り値
モデルユニットにおけるカーブの合計3D長さ。

◆ get_curve_mesh_scheme_curvature()

def cubit.get_curve_mesh_scheme_curvature (   curve_id )

曲線メッシュスキームの適応値をカーブに戻します。

ノードスペースが地元の曲線にどのように適応するかを制御するダブルパラメーターを返します。 ゼロの値はほぼ同じインターバルを生み出し、ポジティブな値はノードを高曲線地域に集中させます。

.. code-block:: python
import cubit
# 1) Create three vertices and build a spline curve (Curve ID = 1).
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 0 0" )
cubit.cmd ("create vertex 1 1 0" )
cubit.cmd ("create curve vertex 1 2 3 spline delete" ) # Curve ID = 1
# 2) Set the curvature mesh scheme value to 0.5 on curve 1 and mesh it.
cubit.cmd ("curve 1 scheme curvature 0.5" )
cubit.cmd ("mesh curve 1" )
# 3) Query the curvature scheme value.
print("Curve 1 curvature scheme value:" , value) # Should print 0.5
 @n type of curve_id:  int
パラメータ
curve_id カーブのID、その曲線スキームの値が引き出される。

戻り値の型:float
戻り値
曲線適応値(ダブル) ゼロ=単一のインターバル

◆ get_curve_mesh_scheme_pinpoint_locations()

def cubit.get_curve_mesh_scheme_pinpoint_locations (   curve_id )

カーブのためのメッシュスキームの位置を回復します。

カーブに沿って絶対的な位置のリストを返す(スタートから頂点から測定)ノードがピンポイントスキームによって置かれた。

.. code-block:: python
import cubit
# 1) Create two vertices and a linear curve between them (Curve ID = 1).
cubit.cmd ("create vertex 0 0 0" ) # Vertex ID = 1
cubit.cmd ("create vertex 2 0 0" ) # Vertex ID = 2
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
# 2) Apply a pinpoint scheme at positions 0.5 and 1.5.
cubit.cmd ("curve 1 scheme pinpoint location 0.5 1.5" )
# 3) Query the pinpoint locations.
print("Curve 1 pinpoint locations:" , locations) # Should print: [0.5, 1.5]
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ、そのピンポイントの位置が回収されている。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
std::ベクトル<ダブル>のポジションの沿いカーブでノードが置かれている。

◆ get_curve_nodes()

def cubit.get_curve_nodes (   curve_id )

カーブが所有するノードIDのリストを取得します。

この機能は、指定されたカーブが所有するノードのIDを返します。 カーブの境界の頂点にあるノードは排除されます。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the nodes on curve 1
curve_nodes = cubit.get_curve_nodes (1)
print(f"Curve 1 owns {len(curve_nodes)} node(s)." )

for node_id in curve_nodes: print(f" Node ID: {node_id}")

  @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティ

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードIDのリストはカーブの所有者(ノードを除く「頂点」の境界線)です。

◆ get_curve_radius()

def cubit.get_curve_radius (   curve_id )

指定されたカーブの半径を計算します。

タイトルコンピュータ

  • サークルアルクの場合、恒久的な半径が戻ります。
  • エリプス、パラボラ、スプリン、ヘリス、およびハイパーボラの場合、中間点に曲線の半径を返します(曲線は評価され、逆転され、下の数値の許容差は無限と扱われ、0.0として返します)。
  • 直線または不適切/サポートされていないカーブIDの場合、 0.0 が返します。
.. code-block:: python
# 1) Create a straight line
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 0 0" )
cubit.cmd ("create curve vertex 1 2" ) # curve 1
print("Curve 1 radius:" , r1) # Expected: 0.0
# 2) Create a cylinder of radius 2 and height 5
cubit.cmd ("cylinder rad 2 height 5" ) # curve 2 (end circle)
print("Curve 2 radius:" , r2) # Expected: 2.0
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

戻り値の型:float
戻り値
周囲の弓のための恒久的な半径、他の曲がったタイプのための中間点の曲線の半径、直線または無効/サポートされていないIDのための0.0。

◆ get_curve_type()

def cubit.get_curve_type (   curve_id )

指定されたカーブのためのカーブタイプを取得します。

カーブのジオメトリを示す描写線を返します。

タイトル利用可能なカーブタイプ

  • アーク・カーブ
  • エリプスカーブ
  • パラボラカーブ
  • セグメント / 顔カーブ
  • スプリーンカーブ
  • 正直カーブ
  • ポイントカーブ
  • ヘリカルカーブ
  • 未定のカーブタイプ
.. code-block:: python
# Assume curve ID 12 corresponds to a spline.
curve_type = cubit.get_curve_type (12)
print("Curve 12 is a:" , curve_type) # Output: Curve 12 is a: Spline curve
 @n type of curve_id:  int
パラメータ
curve_id カーブのアイデンティティを尋ねる

戻り値の型:string
戻り値
カーブのジオメトリタイプの説明シリーズ。

◆ get_dbl_sculpt_default()

def cubit.get_dbl_sculpt_default (   variable )

sculptと呼ばれるパラメーターのデフォルト値を返します。

与えられたサブストリングは、知られている二重評価の「sculpt」パラメーターと一致し、そのデフォルトを返します。

タイトル:利用可能なパラメーター

  • AUTO_SIZE
  • OPT_THRESHOLD
  • CURVE_OPT_THRESHOLD
  • GQ_THRESHOLD
  • DEFAULT_GEO_SMOOTH_MAX_DEVIATION
  • PCOL_THRESHOLD
  • DEG_THRESHOLD
  • HTET_THRESHOLD
  • ADAPT_THRESHOLD
  • CAPTURE_ANGLE
  • EXPAND_PERCENT
  • THICKEN_VOID
  • PILLOW_THRESHOLD
  • REMOVE_BAD
  • MIN_ELEM_THICKNESS
    * XTRANSLATE, YTRANSLATE, ZTRANSLATE
    * XSCALE, YSCALE, ZSCALE



variable の型:string

パラメータ
variable 「sculpt」のパラメーター名を下げて、上を見る。

戻り値の型:float
戻り値
デフォルトのダブル値は、パラメーターに合致します。

◆ get_default_auto_size()

def cubit.get_default_auto_size ( )

Cubitのヘウリスティックデフォルト自動メッシュサイズを現在のモデルに設定します。

ターゲットエッジの長さは、Cubitの自動測定ヘウリスティクス(モデル次元、カーブの長さなど)によって決定される。 これは、走行に等しい:

.. code-block:: c++

cubit.cmd ("vol all size auto factor 5" )

次に尋ねる:

.. code-block:: c++

get_mesh_size("volume" , 1)

.. code-block:: python

import cubit
print("Default auto mesh size:" , size)
 @n return type of :  float
戻り値
ターゲットエッジ長さは、Cubitの自動測定アルゴリズムによって計算されます。

◆ get_default_element_type()

def cubit.get_default_element_type ( )

現在のデフォルト要素タイプをメッシングに戻します。

.. code-block:: python

default_type = cubit.get_default_element_type ()
print("Default element type:" , default_type)
 @n return type of :  string
戻り値
デフォルトメッシュタイプを示す列:
  • "tri"はtri/tetメッシュのデフォルトを示します。
  • hex は quad/ 六面体要素メッシュデフォルトを示す
  • "none"はデフォルトが割り当てられていないことを示します。

◆ get_default_geometry_engine()

def cubit.get_default_geometry_engine ( )

デフォルトモデラーエンジンの名前を取得します。

デフォルトエンジンは、新しいジオメトリを作成するために使用されるジオメトリコアです。 ACISはデフォルトですが、ファッションに変更できます。

.. code-block:: python
cubit.cmd ("set geom engine facet" ) # set engine to facet
print("Default engine:" , engine) # prints facet
 @n return type of :  string
戻り値
: デフォルトモデラーエンジンの名前 ACIS、 CATIA、 OCC、またはファセット。

◆ get_displacement_combine_type()

def cubit.get_displacement_combine_type (   entity_id )

移動BCのための組み合わせ方法を取得します。

有効なオプションにはOverwrite、Average、SmallestCombine、またはLargestCombineが含まれます。

entity_id の型:int

パラメータ
entity_id 引っ越しのBC。

戻り値の型:string
戻り値
シルクとして組み合わせる方法

◆ get_distance_between()

def cubit.get_distance_between (   vertex_id_1,
  vertex_id_2 
)

二つの頂点の間のエウクリディアの距離を得る。

.. code-block:: python

# Create two standalone vertices at (0,0,0) and (1,1,1).
cubit.cmd ("create vertex 0 0 0" ) # vertex 1
cubit.cmd ("create vertex 1 1 1" ) # vertex 2
print("Distance between vertices 1 and 2:" , dist) # prints 1.73205
 @n type of vertex_id_1:  int
パラメータ
vertex_id_1 最初の頂点のアイデンティティ

vertex_id_2 の型:int
vertex_id_2 2番目の頂点のアイデンティティ

戻り値の型:float
戻り値
2つの頂点の間の直線距離です。

◆ get_distance_between_entities()

def cubit.get_distance_between_entities (   geom_type_1,
  entity_id_1,
  geom_type_2,
  entity_id_2 
)

2つのジオメトリのエンティティの間の最小の距離を得る。

最初のエンティティのいずれかの点と第二のエンティティのいずれかの点の間の最も短い直線距離を計算します。 サポートされているエンティティタイプはvertex、curve、surface、volumeです。

.. code-block:: python
# Create a 10x10x10 brick centered at the origin; volume 1 occupies -5 to +5 in X.
cubit.cmd ("brick x 10" )
# Create a vertex at (10, 0, 0); this is vertex 9.
cubit.cmd ("create vertex 10 0 0" )
# Distance from vertex 9 to volume 1 is |10 - 5| = 5.
dist = cubit.get_distance_between_entities ("vertex" , 9, "volume" , 1)
print("Distance between vertex 9 and volume 1:" , dist) # prints 5
 @n type of geom_type_1:  string
パラメータ
geom_type_1 最初のエンティティのタイプ(vertex、curve、surface、またはvolume)

entity_id_1 の型:int
entity_id_1 最初のエンティティのID。

geom_type_2 の型:string
geom_type_2 2番目のエンティティのタイプ(vertex、curve、surface、またはvolume)

entity_id_2 の型:int
entity_id_2 2番目のエンティティのアイデンティティ

戻り値の型:float
戻り値
2 指定されたエンティティの間の最小直線距離

◆ get_distance_from_curve_start()

def cubit.get_distance_from_curve_start (   x_coordinate,
  y_coordinate,
  z_coordinate,
  curve_id 
)

距離をカーブに沿って、その始まりからカーブの最も近い点まで取得します。

特定のxyz がカーブに正確に位置していない場合、カーブに最も近い点が使用されます。

.. code-block:: python
# Create a cylinder of radius 1 and height 1; its circular edge is curve 1.
cubit.cmd ("cylinder rad 1 height 1" )
# Measure distance from the start of curve 1 to the closest point on curve 1 from (-1,0,0).
dist = cubit.get_distance_from_curve_start (-1.0, 0.0, 0.0, 1)
print("Distance along curve 1:" , dist) # prints approximately 3.14159
 @n type of x_coordinate:  float
パラメータ
x_coordinate X座標の検索ポイント。

y_coordinate の型:float
y_coordinate 問点の座標です。

z_coordinate の型:float
z_coordinate Z 座標の検索ポイント。

curve_id の型:int
curve_id カーブのIDは長く測定します。

戻り値の型:float
戻り値
カーブの始まりからカーブの最も近い点まで、指示されたxyzに距離の弓。

◆ get_edge_count()

def cubit.get_edge_count ( )

現在のモデルでサーフェスの要素の間でエッジの数を回収します。

ボリュームのメッシュの場合、サーフェスのエッジのみがサーフェスの要素の間で数えられました。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("mesh vol 1" ) # mesh volume 1 (hex or tet)
edge_count = cubit.get_edge_count ()
print("Edge count:" , edge_count)
 @n return type of :  int
戻り値
現在のモデルのメッシュにおけるサーフェスの要素の間のエッジの数。

◆ get_edge_global_element_id()

def cubit.get_edge_global_element_id (   edge_id )

特定のエッジの要素のためのグローバル要素IDを取得します。

Cubitはグローバル要素IDを各メッシュ要素に割り当てるときにブロックに置かれます。 この機能は、そのタイプ特定のID スペース内の特定の地元のエッジIDに合致するグローバル要素IDを返します。

.. code-block:: python
# Create geometry and mesh a curve with equal spacing
cubit.cmd ("brick x 10" )
cubit.cmd ("curve 1 scheme equal" )
cubit.cmd ("mesh curve 1" )
# Assign all edge elements on curve 1 to block 1
cubit.cmd ("block 1 edge in curve 1" )
# Query the Global Element ID of local edge 3
print("Global Element ID of edge 3:" , gid) # prints 3
 @n type of edge_id:  int
パラメータ
edge_id 地元のエッジの要素IDは、そのタイプ特定のIDスペース内です。

戻り値の型:int
戻り値
グローバル要素IDは、指定されたエッジのグローバル要素ID、またはブロックに置かれていない場合、0です。

◆ get_edges_to_swap()

def cubit.get_edges_to_swap (   curve_id )

エッジを三角形でナイフエッジのカーブで取得し、交換のための候補者です。

2つの三角形メッシュサーフェス間のknife-edgeを定義するカーブを与えると、この関数は、そのカーブ上の三角形メッシュエッジのうちedge swapping候補として適したもののIDを返します。

これらのエッジを切り替えることで、隣接する三角形の間の地元の二角角角を改善し、成功する四面体要素のメッシングのための利用可能なボリュームを増やすことができます。

この関数はtriまたはtetメッシング後のpostprocessingとしてよく使用され、メッシュ品質改善のためswap可能なedgeを識別します。対応するCubitコマンド: Swap Edge <ids> その後、実際の交換を実行するために使用することができます。

.. code-block:: python
# Identify candidate edges to swap at curve 12
edge_ids = cubit.get_edges_to_swap (12)
print(f"Curve 12 has {len(edge_ids)} candidate edge(s) to swap." )

if edge_ids: swap_cmd = "Swap Edge" for edge_id in edge_ids: swap_cmd += f" {edge_id}"

print(f" Edge ID: {edge_id}" )
# Execute the Swap Edge command
cubit.cmd (swap_cmd)
 @n type of curve_id:  int
パラメータ
curve_id ナイフを定義するカーブのIDエッジ

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
交換のための良い候補者であるエッジIDのリスト。

◆ get_elem_quality_stats()

def cubit.get_elem_quality_stats (   entity_type,
  id_list,
  metric_name,
  single_threshold,
  use_low_threshold,
  low_threshold,
  high_threshold,
  make_group 
)

参照パラメーターなしでget_quality_statsのPythonフレンドリーなバージョン。

品質統計を計算し、失敗した要素IDを含むすべての結果を単一のベクトルで返します。

.. code-block:: python
# Python example
id_list = [223, 226, 256]
single_threshold = 0.2
use_low_threshold = False
low_threshold = 0.0
high_threshold = 0.0
make_group = True
quality_data = cubit.get_elem_quality_stats (
"hex" , id_list, "scaled jacobian" ,
single_threshold, use_low_threshold,
low_threshold, high_threshold,
make_group)
min_value = quality_data[0]
max_value = quality_data[1]
mean_value = quality_data[2]
std_value = quality_data[3]
min_element_id = int(quality_data[4])
max_element_id = int(quality_data[5])
element_type = int(quality_data[6]) # 0=edge,1=tri,2=quad,3=tet,4=hex
bad_group_id = int(quality_data[7])
num_failures = int(quality_data[8])
mesh_list = [int(x) for x in quality_data[9:9+num_failures]]
 @n type of entity_type:  string
パラメータ
entity_type ジオメトリタイプ(edge、tri、quad、tet、hex)

id_list の型:std::vector< int,std::allocator< int > >
id_list 評価するための要素IDのリスト。

metric_name の型:string
metric_name Quality metric name (e.g., "scaled jacobian").

single_threshold の型:float
single_threshold 単一の制限を使用する際の制限

use_low_threshold の型:boolean
use_low_threshold 正しい場合は [low_threshold, high_threshold] を適用し、そうでなければ single_threshold を使用します。

low_threshold の型:float
low_threshold 品質範囲の低い制限

high_threshold の型:float
high_threshold 質の範囲を上回る。

make_group の型:boolean
make_group もしそうなら、失敗した要素のためにグループを作成し、そのIDを返します。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
Vector<double> containing: [0] min_value [1] max_value [2] mean_value [3] std_value [4] min_element_id [5] max_element_id [6] element_type (0=edge,1=tri,2=quad,3=tet,4=hex) [7] bad_group_id [8] mesh_list size (n) [9..] mesh_list element IDs

◆ get_element_block()

def cubit.get_element_block (   element_id )

特定のグローバル要素を含むブロックIDを取得します。

Cubitでは、要素はグローバル要素IDをブロックに置くときに受信します。 この機能は、指定されたグローバル要素を含むブロックのIDを返します。 0 は要素がいかなるブロックにも割り当てられていない場合に返します。 インタラクティブなコマンドも使用できます。 list element <global_id> ブロックを見る

.. code-block:: python
# Create geometry and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign hex elements to block 1 and faces to block 2
cubit.cmd ("block 1 hex all" ) # global IDs start at 1
cubit.cmd ("block 2 face in surface 1" ) # global IDs follow block 1
# Query block for hex 1 (should be 1)
print(f"Element 1 is in block {block1}" ) # prints 1
# Query block for face 1 (global ID 1001 ? block 2)
block2 = cubit.get_element_block (1001)
print(f"Element 1001 is in block {block2}" ) # prints 2
 @n type of element_id:  int
パラメータ
element_id グローバル要素IDを尋ねる。

戻り値の型:int
戻り値
要素を含むブロックのID、あるいは 0 が含まれていない場合。

◆ get_element_budget()

def cubit.get_element_budget (   element_type,
  entity_id_list,
  auto_factor 
)

定められたサイズの設定のボリュームセットの合計要素の数を推定します。

定められたボリュームに対して、現在のメッシュサイズ要因および要素タイプに基づいて「要素の総数」を計算します。 六面体メッシュの場合、目標エッジ長さ(エシズム)は、モデルボリューム(Vmodel)と六面体要素(Nhex)と関連している。

.. code-block:: c++

esize = (Vmodel / Nhex)^(1/3)

Nhex の解決策は以下の通りです。

.. code-block:: c++

Nhex = Vmodel / (esize^3)

四面体のメッシュの場合、要素の数は、同じエッジの長さの六面体要素のメッシュの約7倍です(i.e、Ntet ~ 7 * Nhex」)。

.. code-block:: python
import cubit
# Estimate hex element budget on volumes 1 and 2 with auto factor = 3
vols = [1, 2]
hex_budget = cubit.get_element_budget ("hex" , vols, 3)
print("Hex element budget:" , hex_budget)
# Estimate tet element budget on volumes 1 and 2 with auto factor = 3
tet_budget = cubit.get_element_budget ("tet" , vols, 3)
print("Tet element budget:" , tet_budget)
 @n type of element_type:  string
パラメータ
element_type 要素の種類:hexまたはtet。 六面体または四面体の予算を推定するかどうかを決定する。

entity_id_list の型:std::vector< int,std::allocator< int > >
entity_id_list ボリュームIDのベクトルは、全体モデルボリュームを計算する。

auto_factor の型:int
auto_factor 「自動車サイズ」の要因n(例えば、 size auto factor n) この要因はベースサイズをスケールし、より大きな要因はより大きな要素とより少ない総要素を生成します。

戻り値の型:int
戻り値
生成される要素の約数(統合)

◆ get_element_count()

def cubit.get_element_count ( )

現在のモデルで輸出可能な要素の数を回収します。

エクスポート可能な要素とはブロックへ割り当てられた要素です。ブロックが定義されていない場合は、すべての要素(node、edge、quad、hex、tet、tri、wedge、sphereなど)がエクスポート可能とみなされます。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create first brick (Volume ID = 1)
cubit.cmd ("brick x 10" ) # create second brick (Volume ID = 2)
cubit.cmd ("vol 1 mov x 10" ) # move volume 1 to abut volume 2
cubit.cmd ("merge all" ) # merge all volumes into one model
cubit.cmd ("mesh vol all" ) # mesh every volume (hex meshes)
cubit.cmd ("block 1 vol 1" ) # assign volume 1 elements to block 1
# Only hex elements from volume 1 are now deemed exportable
elem_count = cubit.get_element_count () # count exportable elements
print("Element count:" , elem_count)
 @n return type of :  int
戻り値
現在のモデルのメッシュにおける輸出可能な要素の数。

◆ get_element_exists()

def cubit.get_element_exists (   element_id )

モデルにグローバルなメッシュ要素IDが存在するかどうかを確認します。

Cubitでは、要素がグローバル要素IDを受け取るときにブロックに置かれます。 この機能が戻ってくる。 true 指定されたグローバル要素IDが確立された場合(すなわち要素がブロックに割り当てられた場合)、そうでないと返信する。 false .

.. code-block:: python
# Create geometry and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Before block assignment, no global IDs exist
exists_before = cubit.get_element_exists (10)
print(f"Element 10 exists before block? {'Yes' if exists_before else 'No'}" ) # No
# Assign all hex elements to block 1 (establishes global IDs)
cubit.cmd ("block 1 hex all" )
# After block assignment, global IDs exist
exists_after = cubit.get_element_exists (10)
print(f"Element 10 exists after block? {'Yes' if exists_after else 'No'}" ) # Yes
 @n type of element_id:  int
パラメータ
element_id グローバル要素IDをチェックする(ブロックの割り当てによって設定されているように)。

戻り値の型:boolean
戻り値
true 要素がグローバル要素IDを持っている場合、 false 別に。

◆ get_element_type()

def cubit.get_element_type (   element_id )

グローバル要素IDのための特定のメッシュの要素タイプを取得します。

CUBITは、さまざまな要素タイプをサポートし、それぞれ異なるノード数と正確性のコマンドを持っています。 この機能は、CUBITで定義された特定のタイプラインの1つを返します; たとえば、HEX20、TETRA4、TRISHELL7など。 サポートされている要素タイプは、CUBITドキュメンタリーまたはExodusマニュアルで詳細に記載されています。

.. code-block:: python
# Create a brick and assign hex20 elements to block 1
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
cubit.cmd ("block 1 element type hex20" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("export mesh \"model.exo\"" )
# Query the type of the first element in block 1 (global ID 1)
elem_type = cubit.get_element_type (1)

print("Element 1 type:", elem_type) // should print HEX20

  @n type of element_id:  int
パラメータ
element_id グローバル要素ID(Exodus/Genesisによって割り当てられたように)。

戻り値の型:string
戻り値
特定の要素タイプ(例:HEX、HEX20、TETRA4、TRISHELL7など)を指定する列。

◆ get_element_type_id()

def cubit.get_element_type_id (   element_id )

グローバル要素IDを地元のメッシュエンティティIDに戻します。

Cubitは、それぞれの要素にグローバル要素IDを割り当てるときにブロックに置かれます。 この機能は、その要素の特定のタイプIDスペース(六面体要素、四面体要素、トリなど)内の関連する地元のメッシュのエンティティIDを返します。 get_element_typeとともに、要素のタイプとその地元IDの両方を決定することができます。

.. code-block:: python
# Create geometry and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign hex elements to block 1 (global IDs start at 1)
cubit.cmd ("block 1 hex all" )
# Assign face elements on surface 1 to block 2 (global IDs start after hexes)
cubit.cmd ("block 2 face in surface 1" )
# Query element 1001 (first face in block 2)
elem_type = cubit.get_element_type (1001)
local_id = cubit.get_element_type_id (1001)
print(f"Element 1001: type = {elem_type}, local ID = {local_id}" )
# Expected output: Element 1001: type = face, local ID = 1
 @n type of element_id:  int
パラメータ
element_id グローバル要素ID(Exodusファイルに割り当てられたように)。

戻り値の型:int
戻り値
地元のメッシュエンティティIDは、そのタイプ特定のIDスペース内です。

◆ get_entities()

def cubit.get_entities (   entity_type )

特定のタイプ(ジオメトリおよびメッシュ)のすべての現在のエンティティのIDを取得します。

それぞれのエンティティのIDを返し、それぞれのジオメトリのエンティティ(ボディ、ボリューム、サーフェス、カーブ、「頂点」)とメッシュのエンティティ(ノード、要素)を含む。

注: 結果をジオメトリエンティティに限定するには、使用 get_current_ids() .

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("create cylinder radius 3 height 12" )
volume_ids = cubit.get_entities ("volume" ) # returns (1, 2, ...)
node_ids = cubit.get_entities ("node" ) # returns (101, 102, ...)
 @n type of entity_type:  string
パラメータ
entity_type queryするエンティティタイプ。geometry type("body"、"volume"、"surface"、"curve"、"vertex")またはmesh type("node"、"element")。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
特定のタイプのすべてのエンティティのIDのベクトル(またはPythonトップ)

◆ get_entity_color()

def cubit.get_entity_color (   entity_type,
  entity_id 
)

指定されたエンティティの色を得る。

RGBAの色は、指定されたエンティティのために4倍に戻ります。

.. code-block:: python
# Assume curve 33 has been assigned a color earlier.
color = cubit.get_entity_color ("curve" , 33)
print(f"R: {color[0]} G: {color[1]} B: {color[2]} A: {color[3]}" )
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる。

戻り値の型:std:: array< double,4 >
戻り値
A 4-要素 array [R, G, B, A], 各コンポーネントは [0, 1] にあります。

◆ get_entity_color_index()

def cubit.get_entity_color_index (   entity_type,
  entity_id 
)

指定されたエンティティの色指数を取得します。

Cubitは、一般的な色を表すために、事前に定義された色指標を使用します。

タイトル利用可能な色指数

  • 1 デフォルト色
  • 0 0 0 0 0 0 0 0 0
  • 1 グレー (127,127,127)
  • 2 オレンジ (255,165,0)
  • 3 レッド (255,0 0)
  • 4 グリーン (0 255 0)
  • 5 黄色 (255,255,0)
  • 6 マゲンタ (255,0,255)
  • 7 サイアン (0,255,255)
  • 8 ブルー (0.0255)
  • 9 ホワイト (255,255,255)
  • 10 ブラウン (165,42,42)
  • 11 ゴールド (255,215,0)
  • 12 ライトブルー (173,216,230)
  • 13 ライトグリーン (0,204,0)
  • 14 サルモン (250,128,114)
  • 15 コラル (255,127,80)
  • 16 ピンク (255,192,203)
.. code-block:: python
# Set the color of curve 33 to red.
cubit.cmd ("color curve 33 red" )
idx = cubit.get_entity_color_index ("curve" , 33)
print("Color index:" , idx) # prints 3
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる。

戻り値の型:int
戻り値
: 色指数 -1 (デフォルト) または 0-16 は、事前に定義された色のために。

◆ get_entity_modeler_engine()

def cubit.get_entity_modeler_engine (   geometry_type,
  entity_id 
)

特定のエンティティのためのモデラーエンジンタイプを取得します。

このエンティティに関連するエンジンを返します。 有効な返品線はacis、面、仮想です。

.. code-block:: python
engine_list = cubit.get_entity_modeler_engine ("surface" , 47)
print(engine_list) # e.g., ('acis', 'facet')
パラメータ
geom_type ジオメトリタイプ("body"、"volume"、"surface"、"curve"、"vertex")を指定します。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
: モデルエンジンのリストはacis、facet、またはvirtualと呼ばれています。

◆ get_entity_name()

def cubit.get_entity_name (   entity_type,
  entity_id,
  no_default = False 
)

指定されたエンティティの名前を取得します。

ユーザーによって定義された名前(Cubitに保存されている)または実行時に生成されたデフォルト名を返します。 no_defaultが真実であり、エンティティがデフォルト名のみを持っている場合、空っぽのラインが返されます。

.. code-block:: python
# Create and name a vertex.
cubit.cmd ("vertex 22 name 'point_load'" )
# Query the name of vertex 22.
name = cubit.get_entity_name ("vertex" , 22, True )
print("Entity name:" , name) # prints "point_load"
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

entity_id の型:int
entity_id エンティティのID。

no_default の型:boolean, optional
no_default 真実であれば、デフォルト名のみが存在する場合に、空の列を返します。

戻り値の型:string
戻り値
エンティティの名前、あるいはno_defaultが真実であり、名前がデフォルトである場合、空っぽの列です。

◆ get_entity_names()

def cubit.get_entity_names (   entity_type,
  entity_id,
  no_default = False,
  first_name_only = False 
)

指定されたエンティティと関連付けられたすべての名前を取得します。

エンティティに設定された属性のすべての名前をリトリウムします。 デフォルトでは、すべての名前を返しますが、first_name_onlyが正しい場合は、最初の名前だけが返されます。 no_defaultを真実に設定すると、デフォルト名が排除されます。

.. code-block:: python
# Create and assign two names to vertex 22.
cubit.cmd ("vertex 22 name 'point_load'" )
cubit.cmd ("vertex 22 name 'PSI'" )
# Retrieve all names.
names = cubit.get_entity_names ("vertex" , 22, True , False )
print(names) # prints ('point_load', 'PSI')
# Retrieve only the first name.
first_only = cubit.get_entity_names ("vertex" , 22, True , True )
print(first_only[0]) # prints "point_load"
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

entity_id の型:int
entity_id エンティティのID。

no_default の型:boolean, optional
no_default 正しい場合は、返品リストからデフォルト名を排除します。

first_name_only の型:boolean, optional
first_name_only 真実であれば、最初の名前属性のみが返されます。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
すべての名前文字列のvector(first_name_onlyがtrueの場合は1要素vector)。

◆ get_entity_sense()

def cubit.get_entity_sense (   source_type,
  source_id,
  sideset_id 
)

サイドセットでエンティティの感覚を得る。

この機能は、指定されたサイドセット内で指定されたエンティティ(顔、四方、または三方)の意味を返します。 感覚はエンティティのサイドセットに対する指向を示す。

.. code-block:: python
# Query the sense of face 332 in sideset 2
sense = cubit.get_entity_sense ("face" , 332, 2)
print(f"Sense of face 332 in sideset 2: {sense}" )
 @n type of source_type:  string
パラメータ
source_type itemタイプ: "face"、"quad"、または"tri"。

source_id の型:int
source_id エンティティのID。

sideset_id の型:int
sideset_id サイドセットのID

戻り値の型:string
戻り値
サイドセットに指定されたエンティティの感覚。

◆ get_error_count()

def cubit.get_error_count ( )

現在のCubitセッションにおけるエラーの総数を修正します。

これを使用して、Cubitが起動して以来(または最後の手動再設定以来)エラーが発生したかどうかを確認します。

エラーはCubitのコマンドを発行することによって修正できます。 reset error .

.. code-block:: python
import cubit
# Execute some commands...
errors = cubit.get_error_count ()
print("Number of errors:" , errors)
# Reset errors
cubit.cmd ("reset error" )
print("Number of errors after reset:" , cubit.get_error_count ())
 @n return type of :  int
戻り値
このCubitセッションで記録されたエラーの総数。

◆ get_exodus_element_count()

def cubit.get_exodus_element_count (   entity_id,
  entity_type 
)

Exodusエンティティ内の要素数を取得します。

.. code-block:: python

element_count = cubit.get_exodus_element_count (2, "sideset" )
 @n type of entity_id:  int
パラメータ
entity_id エンティティのアイドル

entity_type の型:string
entity_type エンティティの種類

戻り値の型:int
戻り値
Number of Elements(要素数)

◆ get_exodus_entity_description()

def cubit.get_exodus_entity_description (   entity_type,
  entity_id 
)

Exodusのエンティティの説明を得る。

ブロック、サイドセット、またはノードセットのエンティティに関連する説明ラインを返します。 説明が割り当てられていない場合、またはエンティティが存在しない場合、空の列が返されます。

.. code-block:: python
# Issue Cubit commands to create a brick and assign a sideset with a description
cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 1 surface 1" )
cubit.cmd ("sideset 1 description \"Pressure boundary for inlet\"" )
# Query the description of sideset 1
entity_description = cubit.get_exodus_entity_description ("sideset" , 1)
# Print the result
print("Entity description:" , entity_description)
# Expected output (example):
# Entity description: Pressure boundary for inlet
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ: "block"、"sideset"、または"nodeset"。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:string
戻り値
エンティティの説明、あるいは、割り当てられていない場合、空の列。

◆ get_exodus_entity_name()

def cubit.get_exodus_entity_name (   entity_type,
  entity_id 
)

Exodusのエンティティの名前を得る。

指定されたタイプおよびIDのExodusのエンティティのユーザー定義名を返します。

.. code-block:: python
# Issue Cubit commands to create a brick and assign a sideset with a name
cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 1 surface 1" )
cubit.cmd ("sideset name \"pressure_load\"" )
# Query the name of sideset 1
entity_name = cubit.get_exodus_entity_name ("sideset" , 1)
# Print the result
print("Entity name:" , entity_name)
# Expected output:
# Entity name: pressure_load
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ: "block"、"sideset"、または"nodeset"。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:string
戻り値
エンティティの名前、あるいは、いずれも割り当てられていない場合、空の列。

◆ get_exodus_entity_type()

def cubit.get_exodus_entity_type (   entity_type,
  entity_id 
)

エンティティのExodusタイプを取得します。

ブロック、サイドセット、またはノードセットのメッシュグループに関連するExodusタイプのラインを返します。 エンティティが存在しない場合、空っぽのラインが返されます。

.. code-block:: python
# Issue Cubit commands to create a brick and assign a sideset
cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 1 surface 1" )
# Query the Exodus type of sideset 1
entity_type = cubit.get_exodus_entity_type ("sideset" , 1)
# Print the result
print("Entity type:" , entity_type)
# Expected output (example):
# Entity type: lite
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ: "block"、"sideset"、または"nodeset"。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:string
戻り値
エンティティのExodusタイプ文字列(例: "lite")。エンティティが存在しない場合は空文字列。

◆ get_exodus_id()

def cubit.get_exodus_id (   entity_type,
  entity_id 
)

メッシュのエンティティのためのグローバル要素IDを取得します。

「キュービット」では、各メッシュの要素タイプ(六面体要素、四面体要素、四面体要素、三など)は、そのタイプの間で独特の地元IDを持っています。 要素がブロックに入ると、すべてのブロックおよび要素タイプにユニークなグローバル要素IDが与えられます。 グローバル要素IDは、ダウンストリームアプリケーションのためにExodusファイルに輸出され、元のCubit要素に戻ります。

注記インタラクティブセッションでも使用できます。 list <type> <local_id> (例: list hex 100 )グローバル要素IDを表示します。

.. code-block:: python
# Reset session and create a brick
cubit.cmd ("reset" )
cubit.cmd ("brick x 10" )
# Mesh all volumes
cubit.cmd ("mesh vol all" )
# Place all hex elements into block 1
cubit.cmd ("block 1 hex all" )
# Place all face elements on surface 1 into block 2
cubit.cmd ("block 2 face in surface 1" )
# Query the Global Element ID of local hex 1
hex_gid = cubit.get_exodus_id ("hex" , 1)
print("Global Element ID of hex 1: " , hex_gid) # prints 1
# Query the Global Element ID of local face 1
face_gid = cubit.get_exodus_id ("face" , 1)
print("Global Element ID of face 1:" , face_gid) # prints 1001 (block 2 follows block 1)
 @n type of entity_type:  string
パラメータ
entity_type メッシュ要素タイプ("hex"、"tet"、"quad"、"tri"、"face"など)。

entity_id の型:int
entity_id 地元のメッシュのエンティティIDは、そのタイプの範囲内です。

戻り値の型:int
戻り値
グローバル要素ID(すべてのブロックおよびタイプにユニーク)またはメッシュが輸出されていない場合、0。

◆ get_exodus_sizing_function_file_name()

def cubit.get_exodus_sizing_function_file_name ( )

Exodusサイズ機能ファイル名を返します。

サイズ機能が輸入されたExodusIIファイルのパスまたはファイル名を返します。 ファイルが輸入されていない場合は、空っぽのストレッチが返されます。

.. code-block:: python
import cubit
# After reading an Exodus field function:
# cubit.cmd("Import Sizing Function 'mesh.sfb' Block all Variable 'curvature' Time 0")
print("Exodus sizing file:" , file_name)
 @n return type of :  string
戻り値
輸入されたExodusIIサイズ機能のファイル名、あるいは空っぽのライン。

◆ get_exodus_sizing_function_variable_name()

def cubit.get_exodus_sizing_function_variable_name ( )

Exodusに基づくサイズ機能の変数名を返します。

現在sizing functionとして使用しているfield variable名を返します。これはadaptive meshingを駆動するExodus変数(nodeベースまたはelementベース)です。

.. code-block:: python
import cubit
# After reading an Exodus field function:
# cubit.cmd("Import Sizing Function 'strain.exo' Block 10 Variable 'plastic_strain' Last")
print("Current Exodus sizing variable:" , var_name)
 @n return type of :  string
戻り値
Exodusの変数の名前は、サイズ化に使われている。

◆ get_exodus_variable_count()

def cubit.get_exodus_variable_count (   container_type,
  container_id 
)

Exodusの変数の数をノードセット、サイドセット、またはブロックで取得します。

パラメータ
entity_type ノードセット、サイドセットまたはブロック

container_id の型:int
container_id ブロックID

戻り値の型:int
戻り値
Exodusの変数数

◆ get_exodus_variable_names()

def cubit.get_exodus_variable_names (   container_type,
  container_id 
)

Exodus変数の名前をノードセット、サイドセット、またはブロックで取得します。

パラメータ
entity_type ノードセット、サイドセットまたはブロック

container_id の型:int
container_id ブロックID

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
Exodusの変数の名称

◆ get_exodus_version()

def cubit.get_exodus_version ( )

Exodus『メッシュ』図書館のバージョンを復元します。

Exodus図書館のバージョンラインが「メッシュ」 I/O に使用されていることを返します。

.. code-block:: python
import cubit
exodus_version = cubit.get_exodus_version ()
print("Exodus version:" , exodus_version)
 @n return type of :  string
戻り値
Exodus図書館のバージョンを含むシート。

◆ get_expanded_connectivity()

def cubit.get_expanded_connectivity (   entity_type,
  entity_id 
)

内部のノードを含むメッシュの要素のノードIDのリストを取得します。

この関数は指定メッシュ要素に関連する全nodeのIDを返します。corner(boundary)nodeとinterior nodeの両方を含みます。順序はExodus規約に従います。要素ごとのnode順序はExodusドキュメントを参照してください。

.. code-block:: python
# Create a brick and assign volume 1 to block 1
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )
# Specify a 20-node hexahedral element type for block 1
cubit.cmd ("block 1 element type hex20" )
# Mesh volume 1, producing hex20 elements
cubit.cmd ("mesh vol 1" )
# Query expanded connectivity of the first hex20 element (ID 1)
node_id_list = cubit.get_expanded_connectivity ("hex20" , 1)
print(f"Hex20 element 1 has {len(node_id_list)} nodes (expected 20):" , node_id_list)
 @n type of entity_type:  string
パラメータ
entity_type メッシュ要素タイプ(例: "hex"、"tet"、"tri"、"quad"、"hex20")。

entity_id の型:int
entity_id メッシュの要素のID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードIDのリストは、内部ノードを含む要素と関連付けられています。

◆ get_force_direction_vector()

def cubit.get_force_direction_vector (   entity_id )

BCの力のベクトルの方向を得る。



entity_id の型:int

パラメータ
entity_id BCの強力なパワー。

戻り値の型:std:: array< double,3 >
戻り値
ベクトルの方向は [x, y, z] です。

◆ get_force_magnitude()

def cubit.get_force_magnitude (   entity_id )

BCの強度を得る。



entity_id の型:int

パラメータ
entity_id BCの強力なパワー。

戻り値の型:float
戻り値
力の大きさ

◆ get_force_moment_vector()

def cubit.get_force_moment_vector (   entity_id )

BCのベクトルの瞬間を手に入れましょう。



entity_id の型:int

パラメータ
entity_id BCの強力なパワー。

戻り値の型:std:: array< double,3 >
戻り値
瞬間ベクトルとして [x, y, z].

◆ get_gaps_between_volumes()

def cubit.get_gaps_between_volumes (   target_volume_ids,
  maximum_gap_tolerance,
  maximum_gap_angle,
  cache_overlaps = 0 
)

サーフェスの間の格差をボリュームのリストで特定します。

これはPythonの友好的なバージョンです。 get_volume_gaps .

サーフェスの格差を持つボリュームのカップルごとに、 VolumeGap オブジェクトが戻ってくる。 それぞれの VolumeGap 含む:

  • ボリュームIDのカップル、
  • サーフェスIDペアのリスト( surfPairs),
  • 距離( gaps),
  • 対応する重複面積( overlapAreas).

キャッシングは、この機能が呼ばれるときに距離計算を回避するために使用することができます。 get_overlapping_surfaces_in_volumes 」 両方の機能は、指定されたボリュームにおける「サーフェス」間の同じ距離計算を必要とします。 キャッシングが有効になった場合、これらの距離計算の結果は、2番目の機能が呼ばれるときに保存され、再利用されます。 あなたがこの機能だけを呼び出している場合、キャッシングはパフォーマンスの利点を提供しません。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 10.01' ) # Move volume 2 slightly away to create a small gap
target_volumes = [1, 2]
gaps = cubit.get_gaps_between_volumes (target_volumes, 0.02, 5.0, 0)
print("Volume gaps:" )

for gap in gaps: print(f"Volumes: ({gap.volume1}, {gap.volume2})") for surf_pair, dist, area in zip(gap.surfPairs, gap.gaps, gap.overlapAreas): print(f" Surfaces: ({surf_pair[0]}, {surf_pair[1]}), " f {dist:.6f}, Overlap area: {area}")

# Expected output:
# Volumes: (1, 2)
# Surfaces: (6, 10), Distance: 0.010000, Overlap area: 100.0
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids チェックするためのボリュームIDのリスト。

maximum_gap_tolerance の型:float
maximum_gap_tolerance サーフェスの間の最大距離は、格差とみなされる。

maximum_gap_angle の型:float
maximum_gap_angle サーフェスの間の最大角度は、格差とみなされる。

cache_overlaps の型:int, optional
cache_overlaps キャッシュモード: 0 = キャッシュなし、1 = 最初にキャッシュをクリア、2 = 既存キャッシュを使用しつつ追加。

戻り値の型:std::vector< VolumeGap,std:: allocator< VolumeGap > >
戻り値
リスト一覧 VolumeGap オブジェクトはボリュームカップルごとに1個、発見された空白を含む。 それぞれの VolumeGap 含む:
  • volume1, volume2●ボリュームID
  • surfPairsサーフェスIDカップルのリスト
  • gapsサーフェスの間の距離のリスト
  • overlapAreasサーフェスの間の面積の表記。

◆ get_geometric_owner()

def cubit.get_geometric_owner (   mesh_entity_type,
  mesh_entity_list 
)

メッシュのエンティティのセットのためにジオメトリの所有者を得る。

指定されたメッシュのエンティティのジオメトリの所有者を返す(例)。 「サーフェス3」、「カーブ5」

タイトルサポートされたメッシュエンティティタイプ

  • quad
  • 顔
  • tri
  • hex
  • tet
  • エッジ
  • node
.. code-block:: python
# Get owners of quads 1-8
owners = cubit.get_geometric_owner ("quad" , "1 to 8" )
print("Geometric owners of quads 1 to 8:" , owners)
# Example output: ['surface 1', 'curve 2', 'curve 3', 'surface 4', ...]
 @n type of mesh_entity_type:  string
パラメータ
mesh_entity_type メッシュエンティティタイプ:quad、face、tri、hex、tet、edge、またはnode。

mesh_entity_list の型:string
mesh_entity_list 空白区切りのmesh entity ID(例: "all"、"1 to 8"、"1 2 3")。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
オーナーのベクトルは「サーフェスX」、「カーブY」などの形で行きます。

◆ get_geometry_node_count()

def cubit.get_geometry_node_count (   entity_type,
  entity_id 
)

メッシュのノード番号をジオメトリのエンティティに取得します。

この機能は、指定されたジオメトリエンティティ(サーフェス、カーブなど)と関連付けられたメッシュノードの数を返します。

.. code-block:: python
# Create and mesh a brick
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query node count on surface 1
node_count = cubit.get_geometry_node_count ("surface" , 1)
print(f"Surface 1 has {node_count} node(s)." )
 @n type of entity_type:  string
パラメータ
entity_type ジオメトリエンティティタイプ("surface"、"curve"、"volume"など)。

entity_id の型:int
entity_id ジオメトリのエンティティのID。

戻り値の型:int
戻り値
エンティティのメッシュノードの数。

◆ get_geometry_owner()

def cubit.get_geometry_owner (   entity_type,
  entity_id 
)

メッシュの要素のジオメトリの所有者を得る。

この機能は、指定されたメッシュの要素を所有するジオメトリのエンティティを返します。 たとえば、「サーフェス3」、「ボリューム1」など、要素がどこに住んでいるかを示すことがあります。

.. code-block:: python
# Create geometry and mesh it
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the geometric owner of hex element 221
geom_owner = cubit.get_geometry_owner ("hex" , 221)
print(f"Geometric owner of hex 221: {geom_owner}" )
 @n type of entity_type:  string
パラメータ
entity_type メッシュ要素タイプ(例: "hex"、"tet"、"tri"、"quad"など)。

entity_id の型:int
entity_id メッシュの要素のID。

戻り値の型:string
戻り値
ジオメトリは要素の所有者(『例えば』、サーフェス3』)。

◆ get_geometry_type()

def cubit.get_geometry_type (   geom_type,
  ent_ids 
)

サーフェスまたはカーブのリストのための分析ジオメトリタイプを返します。

この機能はget_surface_typeとget_curve_typeに似ているが、複数のIDを受け入れる。 また、返品タイプの違いもご注意ください。

.. code-block:: python
# Create a cylinder (curves 1 and 2 are circular edges).
cubit.cmd ("create cylinder radius 3 height 10" )
curve_ids = [1, 2]
curve_types = cubit.get_geometry_type ("curve" , curve_ids)
print(curve_types) # e.g., ['circle', 'circle']
 @n type of geom_type:  string
パラメータ
geom_type エンティティタイプとして"curve"または"surface"を指定します。

ent_ids の型:std::vector< int,std::allocator< int > >
ent_ids 検索するためのカーブまたはサーフェスのIDのリスト。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
ジオメトリタイプのベクトルはent_idsと同じ順序で行きます。 有効なカーブタイプ:arc、ellipse、parabola、segmented、spline、straight、point、helix、hyperbola、undefined、unknown。 適用可能なサーフェスタイプ:cone、plane、sphere、spline、torus、best_fit、facet、cylinder、undefined、unknown。

◆ get_global_element_id()

def cubit.get_global_element_id (   element_type,
  id 
)

get_exodus_idのアライアス:地元のメッシュのエンティティのグローバル要素IDを取得します。

この機能はget_exodus_idと同等で、特定の地元のメッシュのエンティティに割り当てられたグローバル要素IDをそのタイプ特定のIDスペース内で返します。

.. code-block:: python
# Create geometry, mesh it, and assign hex elements to block 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("block 1 hex all" )
# Query the Global Element ID of local hex 22
gid = cubit.get_global_element_id ("hex" , 22)
print("Global Element ID of hex 22:" , gid)
 @n type of element_type:  string
パラメータ
element_type mesh entityタイプ("hex"、"tet"、"wedge"、"pyramid"、"tri"、"quad"、"face"、"edge"、"sphere")。

id の型:int
id 地元のメッシュのエンティティIDは、そのタイプの範囲内です。

戻り値の型:int
戻り値
グローバル要素IDは、指定された地元のエンティティと一致します。

◆ get_graphics_version()

def cubit.get_graphics_version ( )

VTK(Visualization Toolkit)バージョンはCubitによって使用されます。

VTKグラフィックライブラリのバージョンラインをCubitに統合します。

.. code-block:: python
import cubit
vtk_version = cubit.get_graphics_version ()
print("VTK version:" , vtk_version)
 @n return type of :  string
戻り値
VTKのバージョン番号を含むシート。

◆ get_group_bodies()

def cubit.get_group_bodies (   group_id )

特定のグループのための直接子どものボディIDを返します。

.. code-block:: python

# Create geometry and copy the initial volume.
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10" )
# Define group containing all bodies.
cubit.cmd ("group \"body_group\" add body all" )
# Query group ID by name.
body_group_id = cubit.get_id_from_name ("body_group" )
# Get direct child body IDs.
bodies = cubit.get_group_bodies (body_group_id)
# Print tuple-like output.
print(tuple(bodies)) # prints "(1,2)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボディIDのベクトル(いない場合の空白)。

◆ get_group_curves()

def cubit.get_group_curves (   group_id )

特定のグループのための直接子どものカーブIDを返します。

.. code-block:: python

# Create a brick and group all curves.
cubit.cmd ("brick x 10" )
cubit.cmd ("group \"curve_group\" add curve all" )
# Query group ID by name.
curve_group_id = cubit.get_id_from_name ("curve_group" )
# Get direct child curve IDs.
curves = cubit.get_group_curves (curve_group_id)
# Print tuple-like output.
print(tuple(curves)) # prints "(1,2,3,4,5,6,7,8,9,10,11,12)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
curve IDのvector(存在しない場合は空)。

◆ get_group_edges()

def cubit.get_group_edges (   group_id )

特定のグループのための直接子どものエッジIDを返します。

.. code-block:: python

# Create geometry and mesh it.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume all" )
# Group all mesh edges on surface 1.
cubit.cmd ("group \"edge_group\" add edge in surf 1" )
# Query group ID by name.
edge_group_id = cubit.get_id_from_name ("edge_group" )
# Get direct child edge IDs.
edges = cubit.get_group_edges (edge_group_id)
# Print tuple-like output.
print(tuple(edges)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
エッジIDのベクトル(空っぽでない場合)

◆ get_group_groups()

def cubit.get_group_groups (   group_id )

特定の親のグループの直接子どものグループIDを取得する場合。

.. code-block:: python

# Create geometry and define groups.
cubit.cmd ("brick x 10" )
cubit.cmd ("group \"vert_group\" add vert in vol 1" )
cubit.cmd ("group 'curve_group' add curve in vol 1" )
cubit.cmd ("group \"parent_group\" add vert_group curve_group" )
# Query group IDs.
vert_group_id = cubit.get_id_from_name ("vert_group" )
curve_group_id = cubit.get_id_from_name ("curve_group" )
parent_group_id = cubit.get_id_from_name ("parent_group" )
# Get direct child group IDs.
child_groups = cubit.get_group_groups (parent_group_id)
# Print tuple-like output.
print(tuple(child_groups)) # prints "(2,3)"
 @n type of group_id:  int
パラメータ
group_id 親のグループのID

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルの児童グループID(空き場合)

◆ get_group_hexes()

def cubit.get_group_hexes (   group_id )

特定のグループのための直接子どもの六面体の要素IDを返します。

六面体要素は、デフォルトマップスキームを使用してボリュームに生成され、メッシュボリュームすべてを介してマッサージされます。

.. code-block:: python
# Create and mesh geometry with hex elements.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume all" )
# Group all hex elements in volume 1.
cubit.cmd ("group \"hex_group\" add hex in vol 1" )
# Query group ID by name.
hex_group_id = cubit.get_id_from_name ("hex_group" )
# Get direct child hex IDs.
hexes = cubit.get_group_hexes (hex_group_id)
# Print tuple-like output.
print(tuple(hexes)) # prints "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
六面体要素IDのベクトル(空白もしない)。

◆ get_group_nodes()

def cubit.get_group_nodes (   group_id )

特定のグループのための直接子どものノードIDを返します。

.. code-block:: python

# Create geometry, mesh it, and group all nodes.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume all" )
cubit.cmd ("group \"node_group\" add node in vol 1" )
# Query group ID by name.
node_group_id = cubit.get_id_from_name ("node_group" )
# Get direct child node IDs.
nodes = cubit.get_group_nodes (node_group_id)
# Print tuple-like output.
print(tuple(nodes)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードIDのベクトル(いない場合の空白)。

◆ get_group_pyramids()

def cubit.get_group_pyramids (   group_id )

直接子どものピラミッド要素IDを指定されたグループに返します。

.. code-block:: python

# Create geometry, duplicate volume 1 to create vol 2;
# mesh volume 1 with default hex scheme and vol 2 with tet elements,
# auto-generating pyramids at their interface.
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10" )
cubit.cmd ("mesh volume 1" )
cubit.cmd ("vol 2 scheme tetmesh" )
cubit.cmd ("mesh volume 2" )
# Group all pyramid elements in vol 2.
cubit.cmd ("group \"pyramid_group\" add pyramid in vol 2" )
# Query group ID by name.
pyramid_group_id = cubit.get_id_from_name ("pyramid_group" )
# Get direct child pyramid IDs.
pyramids = cubit.get_group_pyramids (pyramid_group_id)
# Print tuple-like output.
print(tuple(pyramids)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ピラミッドIDのベクトル(空っぽでない場合)

◆ get_group_quads()

def cubit.get_group_quads (   group_id )

指定されたグループのための直接子どもの四重IDを返します。

.. code-block:: python

# Create and mesh geometry.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume all" )
# Group all quadrilateral faces on surface 1.
cubit.cmd ("group \"quad_group\" add face in surf 1" )
# Query group ID by name.
quad_group_id = cubit.get_id_from_name ("quad_group" )
# Get direct child quad IDs.
quads = cubit.get_group_quads (quad_group_id)
# Print tuple-like output.
print(tuple(quads)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
四IDのベクトル(空っぽでない場合)

◆ get_group_spheres()

def cubit.get_group_spheres (   group_id )

特定のグループのための直接子どもの領域要素IDを返します。

Sphere elements are generated by inserting nodes or vertices into a block using: Block <id> {node|vertex} <id_range>

作成された後、スペースは位置づけ、グループ化して検索することができます。

.. code-block:: python
# Create volumes, set mesh size, and mesh all volumes.
cubit.cmd ("brick x 10" )
cubit.cmd ("vol all size 5" )
cubit.cmd ("mesh volume all" )
# Create a vertex to seed sphere and mesh to generate node.
cubit.cmd ("create vertex 0 0 10" )
sph_vtx_id = cubit.get_id_from_name ("vertex" )
cubit.cmd (f"mesh vertex {sph_vtx_id}" )
sph_nd = cubit.get_id_from_name ("node" )
# Generate sphere elements via block and spider commands on surface 1.
cubit.cmd ("block 1 volume 1" )
cubit.cmd (f"block 2 vertex {sph_vtx_id}" )
cubit.cmd (f"block 3 joint node {sph_nd} spider surf 1" )
cubit.cmd ("locate sphere all" )
cubit.cmd ("group \"sphere_group\" add sphere all" )
# Query and print sphere group elements.
sphere_group_id = cubit.get_id_from_name ("sphere_group" )
spheres = cubit.get_group_spheres (sphere_group_id)
print(tuple(spheres)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
スペースIDのベクトル(いない場合の空白)

◆ get_group_surfaces()

def cubit.get_group_surfaces (   group_id )

特定のグループのための直接子どものサーフェスIDを返します。

.. code-block:: python

# Create geometry (brick produces six surfaces).
cubit.cmd ("brick x 10" )
# Define group containing all surfaces.
cubit.cmd ("group \"surf_group\" add surface all" )
# Query group ID by name.
surf_group_id = cubit.get_id_from_name ("surf_group" )
# Get direct child surface IDs.
surfaces = cubit.get_group_surfaces (surf_group_id)
# Print tuple-like output.
print(tuple(surfaces)) # prints "(1,2,3,4,5,6)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのベクトル(空白の場合)

◆ get_group_tets()

def cubit.get_group_tets (   group_id )

特定のグループのための直接子どものテトラヘドロンIDを返します。

.. code-block:: python

# Create geometry, set meshing scheme, and mesh.
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh volume all" )
# Group all tetrahedral elements in volume 1.
cubit.cmd ("group \"tet_group\" add tet in vol 1" )
# Query group ID by name.
tet_group_id = cubit.get_id_from_name ("tet_group" )
# Get direct child tetrahedron IDs.
tets = cubit.get_group_tets (tet_group_id)
# Print tuple-like output.
print(tuple(tets)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
テトラヘドロンIDのベクトル(空っぽでない場合)

◆ get_group_tris()

def cubit.get_group_tris (   group_id )

特定のグループのための直接子どもの三角形IDを返します。

.. code-block:: python

# Create and mesh geometry.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume all" )
# Group all triangular faces on surface 1.
cubit.cmd ("group \"tri_group\" add tri in surf 1" )
# Query group ID by name.
tri_group_id = cubit.get_id_from_name ("tri_group" )
# Get direct child triangle IDs.
tris = cubit.get_group_tris (tri_group_id)
# Print tuple-like output.
print(tuple(tris)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
三角形IDのベクトル(空白もしない場合)。

◆ get_group_vertices()

def cubit.get_group_vertices (   group_id )

特定のグループのための直接子どもの「頂点」IDを返します。

.. code-block:: python

# Create geometry (brick creates vertices).
cubit.cmd ("brick x 10" )
# Define group containing all vertices.
cubit.cmd ("group \"vert_group\" add vertex all" )
# Query group ID by name.
vert_group_id = cubit.get_id_from_name ("vert_group" )
# Get direct child vertex IDs.
vertices = cubit.get_group_vertices (vert_group_id)
# Print tuple-like output.
print(tuple(vertices)) # prints "(1,2,3,4,5,6,7,8)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルの「頂点」ID(空っぽでない場合)

◆ get_group_volumes()

def cubit.get_group_volumes (   group_id )

特定のグループのための直接子どものボリュームIDを返します。

.. code-block:: python

# Create geometry and copy volume.
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10" )
# Define group containing all volumes.
cubit.cmd ("group \"vol_group\" add vol all" )
# Query group ID by name.
vol_group_id = cubit.get_id_from_name ("vol_group" )
# Get direct child volume IDs.
volumes = cubit.get_group_volumes (vol_group_id)
# Print tuple-like output.
print(tuple(volumes)) # prints "(1,2)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
volume IDのvector(存在しない場合は空)。

◆ get_group_wedges()

def cubit.get_group_wedges (   group_id )

返信直接の子供は、特定のグループのための要素IDを割り当てます。

.. code-block:: python

# Create geometry, set surface meshing scheme to tris and sweep to create wedges.
cubit.cmd ("brick x 10" )
cubit.cmd ("surf 1 scheme trimesh" )
cubit.cmd ("mesh surf 1" )
cubit.cmd ("mesh volume all" )
# Group all wedge elements in volume 1.
cubit.cmd ("group \"wedge_group\" add wedge in vol 1" )
# Query group ID by name.
wedge_group_id = cubit.get_id_from_name ("wedge_group" )
# Get direct child wedge IDs.
wedges = cubit.get_group_wedges (wedge_group_id)
# Print tuple-like output.
print(tuple(wedges)) # prints something like "(1,2,3,...,n)"
 @n type of group_id:  int
パラメータ
group_id 調査するグループのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルは、偶然のID(空虚でない場合)です。

◆ get_heatflux_on_area()

def cubit.get_heatflux_on_area (   bc_area_enum,
  entity_id 
)

指定された面積に熱流値を取得します。



bc_area_enum の型:int

パラメータ
bc_area_enum CI_BCEntityTypes: 4 (固体)、7 (シェルトップ)、8 (シェルトップ)。

entity_id の型:int
entity_id 熱流量BCのID。

戻り値の型:float
戻り値
Heatflux 値

◆ get_hex_count()

def cubit.get_hex_count ( )

現在のモデルで六面体要素の数を回収します。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("mesh vol 1" ) # mesh as hexes
hex_count = cubit.get_hex_count ()
print("Hex count:" , hex_count)
 @n return type of :  int
戻り値
現在のモデルのメッシュにおける六面体要素の数。

◆ get_hex_global_element_id()

def cubit.get_hex_global_element_id (   hex_id )

特定の六面体の要素のためのグローバル要素IDを取得します。

この機能は、グローバル要素IDがブロックに要素が置かれたときに、その地元の六面体要素IDに割り当てられたグローバル要素IDを返します。

.. code-block:: python
# Create geometry, mesh it, and assign all hexes to block 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("block 1 hex all" )
# Query the Global Element ID of local hex 22
print("Global Element ID of hex 22:" , gid)
 @n type of hex_id:  int
パラメータ
hex_id 六面体の要素ID。

戻り値の型:int
戻り値
グローバル要素IDは、指定された六面体要素のためのグローバル要素ID。

◆ get_hex_sheet()

def cubit.get_hex_sheet (   node_id_1,
  node_id_2 
)

六面体要素を構成するすべての六面体要素のIDを2つのノードを通して取り戻す。

六面体要素(六面体要素)は、六面体要素(六面体要素)の一層である。 2つのノードIDは、その層にエッジを垂直と定義します。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("mesh vol 1" ) # mesh volume 1 with hexes
# Assume nodes 5 and 6 form an edge perpendicular to a hex layer
hex_ids = cubit.get_hex_sheet (5, 6)
print("Hex sheet IDs:" , hex_ids)
 @n type of node_id_1:  int
パラメータ
node_id_1 最初のノードIDはエッジを垂直と六面体要素の層に定義します。

node_id_2 の型:int
node_id_2 2番目のノードIDはエッジを垂直と六面体要素の層に定義します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
六面体要素IDのリスト(ベクトル<int>またはPythonトップル)は、コンテグウスシートを形成します。

◆ get_hole_surfaces()

def cubit.get_hole_surfaces (   surface_id )

サーフェスを指定されたサーフェスに近い穴に戻します。

この機能は、指定されたサーフェスと同じ穴に属するサーフェスIDのリストを返します。 surface_idの入力はすでに穴の一部でなければなりません。 その結果にはsurface_id自体が含まれています。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 1 height 10" )
cubit.cmd ("vol 2 move z 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
surf_id = 10
hole_surfs = cubit.get_hole_surfaces (surf_id)
print("Hole surfaces:" , tuple(hole_surfs))
# Expected output:
# Hole surfaces: (10, 11)
 @n type of surface_id:  int
パラメータ
surface_id Surface IDは穴の一部です。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
穴に属するサーフェスIDのリスト(surface_idを含む)

◆ get_hydraulic_radius_surface_area()

def cubit.get_hydraulic_radius_surface_area (   surface_id )

指定された「サーフェス」の水力半径を計算します。

タイトルコンピュータ

  • hydraulic_radius = 4 * (surface_area / total_edge_length), where surface_area is the face 面積 and total_edge_length is the sum of all エッジ長さ bounding the face
  • total_edge_lengthがゼロであれば、0を返します。
.. code-block:: python
cubit.cmd ("brick x 10" )
print("Cube face hydraulic radius:" , hr1) # Output: 10.0
cubit.cmd ("brick x 10 y 1 z 10" )
print("Skinny face hydraulic radius:" , hr2) # Output: 1.81818
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:float
戻り値
指定された「サーフェス」の水素半径(4 * 面積 / total_edge_length)、または0、もしエッジがない場合。

◆ get_hydraulic_radius_volume_area()

def cubit.get_hydraulic_radius_volume_area (   volume_id )

指定されたボリュームの水素半径を計算します。

タイトルコンピュータ

  • hydraulic_radius = 6 * (enclosed_volume / total_surface_area)
  • enclosed_volume: 測定されたボディのボリューム
  • total_surface_area:すべての顔の面積の合計
  • 返品 0.0 で total_surface_area が 0 である場合
.. code-block:: python
# Cube: volume = 1000, total face area = 600
cubit.cmd ("brick x 10" )
print("Cube hydraulic radius:" , hr_cube) # Output: 10.0
# Skinny brick: volume = 100, total face area = 240
cubit.cmd ("brick x 10 y 1 z 10" )
print("Skinny brick hydraulic radius:" , hr_skinny) # Output: 2.5
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:float
戻り値
水素半径 = 6 * (enclosed_volume / total_surface_area); 0.0 もし total_surface_area がゼロである場合。

◆ get_id_from_name()

def cubit.get_id_from_name (   name )

エンティティの完全なIDをその名前で取り戻します。

.. code-block:: python

# Create and name a vertex.
cubit.cmd ("vertex 22 name 'point_load'" )
# Query the ID using the name.
entity_id = cubit.get_id_from_name ("point_load" )
print("Entity ID:" , entity_id) # prints "22"
 @n type of name:  string
パラメータ
name IDを要求するエンティティの名前。

戻り値の型:int
戻り値
エンティティと呼ばれるインテーガーID。

◆ get_id_string()

def cubit.get_id_string (   entity_ids,
  sort = True 
)

インテガーのリストをコンパクトなCubitスタイルのID範囲列に変換します。

連続IDが「スタートから終わり」の範囲に崩壊し、コンマスとエントリーを分離します。 異なる string_from_id_list() このバージョンはニュージーランド文字を入力しない。

.. code-block:: python
import cubit
ids = [3, 1, 2, 5, 6, 8]
# Default: sort then collapse
# s == "1 to 3, 5 to 6, 8"
# Without sorting:
s = cubit.get_id_string (ids, False )
# s == "3, 1 to 2, 5 to 6, 8"
 @n type of entity_ids:  std::vector< int,std::allocator< int > >
パラメータ
entity_ids ベクトルから形式に全身ID。

sort の型:boolean, optional
sort もし真実(デフォルト)なら、崩壊する前に上昇するIDを分類し、もし偽物なら、オリジナルのオーダーを保存します。

戻り値の型:string
戻り値
単一線のストレッチは、IDの範囲を表す(ラインフラックなし)。

◆ get_idless_signature()

def cubit.get_idless_signature (   entity_type,
  entity_id 
)

ジオメトリまたはメッシュのエンティティの無名の署名を得る。

この機能が戻ってくる。 無名サイン 指定されたエンティティ ID なしの署名は、現在の ID から独立してエンティティへの位置ベースおよびオーディナルベースの参照です。

無形のサインは作成するために使用されます。 バージョン・独立雑誌ファイル 」 エンティティIDは、さまざまな「Cubit」バージョンまたはモデル操作(例えば、Webcuts)の後に変更することができるので、IDなしのサインを使用すると、ジャーナルファイルは、IDではなく位置と通常の正しいエンティティを参照することを保証します。

例えば形式の無名の署名の例: "volume at 3.42 5.66 6.32 ordinal 2" あるいは "curve at (1 1 0 ordinal 2)"

一般利用シナリオ:

  • 可能 journal idless on
  • ジャーナルコマンドは、IDのない参照を使用して記録されます(エンティティIDよりも遅い)
  • get_idless_signature エンティティの現在の無意味な参照をプログラム的に取り戻す
.. code-block:: python
# Create a brick
cubit.cmd ("brick x 10" )
# Retrieve the idless signature of surface 1
signature = cubit.get_idless_signature ("surface" , 1)
print(f"Idless signature of surface 1: {signature}" )
 @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ(例: "curve"、"surface"、"vertex"、"volume"、"face"など)。

entity_id の型:int
entity_id 求められたエンティティのID

戻り値の型:string
戻り値
エンティティのIDなしsignature(例: "volume at x y z ordinal n")。

注: 完全な文脈については、Cubitのコマンドを参照してください。 journal idless {on | off | reverse} .

◆ get_idless_signatures()

def cubit.get_idless_signatures (   entity_type,
  entity_id_list 
)

ジオメトリまたはメッシュのエンティティの範囲の無名の署名を取得します。

この機能が戻ってくる。 無名サイン 特定のエンティティを単一の列として。 ID なしのサインは、現在の ID にかかわらず、それぞれのエンティティに位置に基づく、オーディナルに基づく参照です。

無形のサインは作成するために使用されます。 バージョン・独立雑誌ファイル 」 エンティティIDは、さまざまな「Cubit」バージョンまたはモデル操作(例えば、Webcuts)の後に変更することができるので、IDのないサインを使用すると、IDの代わりにエンティティを位置および通常に参照することで、ジャーナルファイルが有効であることを保証します。

返信線には、スペース分離のエンティティごとに1つの無名の署名が含まれます。 タイトル例:

  • 「カーブで(1 1 0 オーディナル 2)カーブで (0 0 1 オーディナル 1)...」
.. code-block:: python
# Create a brick and mesh it
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Prepare a list of surface IDs
surface_ids = [1, 2, 3]
# Get idless signatures of surfaces 1, 2, 3
signatures = cubit.get_idless_signatures ("surface" , surface_ids)
print(f"Idless signatures of surfaces 1-3: {signatures}" )



entity_type の型:string

パラメータ
entity_type エンティティタイプ(例: "curve"、"surface"、"vertex"、"volume"、"face"など)。

entity_id_list の型:std::vector< int,std::allocator< int > >
entity_id_list エンティティIDのリスト

戻り値の型:string
戻り値
エンティティの無名の署名を含む単一のシリーズ、スペース分離。

注: 完全な文脈については、Cubitのコマンドを参照してください。 journal idless {on | off | reverse} .

◆ get_int_sculpt_default()

def cubit.get_int_sculpt_default (   variable )

Retrieve default integer-valid sculpt パラメーター

入力変数名のサブストレーションを既知の「sculpt」パラメーターと一致し、デフォルト値を返します。

タイトル利用可能全パラメーター

  • NUM_PROC
  • DEBUG
  • NUM_LAPLACE
  • MAX_OPT_SMOOTH
  • MAX_PCOL
  • MAX_GQ_ITERS
  • DEG_ITERS
  • STAIR
  • CSMOOTH
  • SMOOTH
    * VOID_MAT, VOID
  • SIDESETS
    * HTET_METHOD, HTET
  • TRI_MESH
  • PILLOW_LAYERS
    * ADAPT_TYPE, ADAPT_LEVELS, ADAPT_LOAD_BALANCE, ADAPT_MEMORY_STATS
  • ALIGN
    * CAPTURE_SIDE, CAPTURE
    * DEFEATURE_MIN_VOL_CELLS, DEFEATURE_ITERS, DEFEATURE
    * MICRO_EXPAND, MICRO_SHAVE
  • QUIET
    * WRITE_GEOM, WRITE_MBG
  • MESHING_SCHEME
  • PRINT_ONLY
  • THREADS
  • BBOX_EXPAND
  • WEAR_METHOD
  • MIN_NUM_LAYERS
  • INPUT_MESH_MATERIAL



variable の型:string

パラメータ
variable 「sculpt」のパラメーターサブストリングの名前。

戻り値の型:int
戻り値
指定されたパラメーターのデフォルト総値。

◆ get_interface()

def cubit.get_interface (   interface_name )

名前によってCubitインターフェイスをリセットします。

指標を要求された CubitBaseInterface インスタンスまたは nullptr に戻す場合、適合インターフェイスが登録されていない場合。

.. code-block:: python
import cubit
iface = cubit.get_interface ("MeshInterface" )

if iface is not None:

iface を使い...

cubit.release_interface(iface)

  @n type of interface_name:  string
パラメータ
interface_name 接続するインターフェイスの名前。

戻り値の型:CubitBaseInterface
戻り値
CubitBaseInterface、または nullptr に表示されていない場合。

◆ get_label_type()

def cubit.get_label_type (   entity_type )

特定のエンティティタイプの現在のラベル表示タイプを取得します。

現在、指定されたエンティティタイプと関連付けられているラベルディスプレイタイプを尋ねます。

有効 entity_type 価値観:

"RefVolume" , "RefFace" , "RefEdge" , "RefVertex" ,
"CubitHex" , "CubitTet" , "CubitFace" , "CubitTri" ,
"CubitEdge" , "CubitNode" , "CubitSphere"

返品価値は、 SVUtil::LabelType : 0=CUBIT_LABEL_NONE, 1=CUBIT_LABEL_ID, 2=CUBIT_LABEL_ELEMENT_ID, 3=CUBIT_LABEL_NAME, 4=CUBIT_LABEL_INTERVAL, 5=CUBIT_LABEL_SIZE, 6=CUBIT_LABEL_MERGE, 7=CUBIT_LABEL_IS_MERGED, 8=CUBIT_LABEL_FIRMNESS, 9=CUBIT_LABEL_SCHEME, 10=CUBIT_LABEL_NAME_ID, 11=CUBIT_LABEL_NAME_ONLY, 12=CUBIT_LABEL_SPHERE_ID

.. code-block:: python
label_type = cubit.get_label_type ("RefFace" )
print("Label type for RefFace:" , label_type)
 @n type of entity_type:  string
パラメータ
entity_type Entity 質問するタイプ。

戻り値の型:int
戻り値
ラベルディスプレイタイプ(上記のリストを参照)

◆ get_last_id()

def cubit.get_last_id (   entity_type )

特定のタイプの最後に作成されたエンティティのIDを取得します。

この機能は、指定されたタイプの最も最近作成されたエンティティのIDを返します。

サポートされているエンティティタイプには、vertex、curve、surface、volume、bodyなどが含まれます。

.. code-block:: python
# Create a brick
cubit.cmd ("brick x 10" )
# Query the last created surface ID
last_id = cubit.get_last_id ("surface" )
print(f"Last created surface ID: {last_id}" )
 @n type of entity_type:  string
パラメータ
entity_type query対象エンティティのタイプ(例: "surface"、"curve"、"volume")。

戻り値の型:int
戻り値
指定されたタイプの最後に作成されたエンティティの統合ID。

◆ get_list_of_free_ref_entities()

def cubit.get_list_of_free_ref_entities (   geometry_type )

すべてのジオメトリタイプの無料(無関連)エンティティを取得します。

.. code-block:: python

cubit.cmd ("brick x 10" )
cubit.cmd ("create vertex 0 0 0" )
free_vertices = cubit.get_list_of_free_ref_entities ("vertex" )
print(free_vertices) # prints (9,)
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリのタイプ(vertex、curve、surfaceなど)を指定します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
特定のタイプの分離されたエンティティのIDのリスト(ベクトルまたはPythonトップ)

◆ get_material_name()

def cubit.get_material_name (   material_id )

ID によって材料またはCFDメディアの名前を取得します。



material_id の型:int

パラメータ
material_id 材料またはメディアのID

戻り値の型:string
戻り値
メディア名または材料名

◆ get_material_name_list()

def cubit.get_material_name_list ( )

すべての材料名のリストを取得します。



戻り値の型:std::vector< std::string,std::allocator< std:: string > >

戻り値
物質名のリスト

◆ get_material_property()

def cubit.get_material_property (   material_property_enum,
  entity_id 
)

物質財産の価値を得る。



material_property_enum の型:int

パラメータ
material_property_enum 不動産タイプ(例えば、0=エラスティック・モジュール、1=シェア・モジュールなど)

entity_id の型:int
entity_id 材料のIDです。

戻り値の型:float
戻り値
指定された物質財産の価値

◆ get_media_name_list()

def cubit.get_media_name_list ( )

すべてのCFDメディア名のリストを取得します。



戻り値の型:std::vector< std::string,std::allocator< std:: string > >

戻り値
メディア名のリスト

◆ get_media_property()

def cubit.get_media_property (   entity_id )

材料のメディア分類を取得します。



entity_id の型:int

パラメータ
entity_id メディアのID

戻り値の型:int
戻り値
メディアタイプ 0 = FLUID, 1 = POROUS, 2 = SOLID.

◆ get_merge_setting()

def cubit.get_merge_setting (   geometry_type,
  entity_id 
)

特定のエンティティのために合併モード(‘on’、‘off’、または‘auto’)を取得します。

エンティティに合併を妨げることによって、隣接するジオメトリは、別々に保存する物質の境界線、別々のメッシュ地域、および接触インターフェイスを残します。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create first brick (vol 1, surfaces 1-6)
cubit.cmd ("brick x 10" ) # create second brick (vol 2, surfaces 7-12)
cubit.cmd ("vol 2 move x 10" ) # move second brick so surfaces 6 and 10 touch
cubit.cmd ("surface 6 merge off" ) # prevent merging on surface 6
cubit.cmd ("merge all" ) # attempt to merge; volumes remain separate
mode = cubit.get_merge_setting ("surface" , 6) # returns "off"
print("Merge setting:" , mode) # prints "off"
パラメータ
geom_type ジオメトリタイプ("body"、"volume"、"surface"、"curve"、または"vertex")。

entity_id の型:int
entity_id エンティティのID。

戻り値の型:string
戻り値
合併の設定はon、off、またはautoです。

◆ get_merge_tolerance()

def cubit.get_merge_tolerance ( )

現在の合併許容差値を返します。

合併の許容差は、合併のエンティティでジオメトリの通信を決定するために使用される絶対的距離値です。 『頂点』、カーブ、サーフェスは、この許容差内のスペースチェックを使用して比較される。 合併の許容差に近いエンティティは同等とみなされ、それらのパラメーターが異なる場合でも合併することができる。

Cubitの許容差のデフォルト合併は 5.0e-4 です。 最低限は 1.0e-6 です。 定められた上限はありません。

.. code-block:: python
# Set the merge tolerance using a Cubit command:
cubit.cmd ("merge tolerance 0.005" )
# Get the current merge tolerance:
print("Current merge tolerance:" , tol)
# Expected output (example):
# Current merge tolerance: 0.005
 @n return type of :  float
戻り値
現在の合併価値は許容差です。

◆ get_mergeable_curves()

def cubit.get_mergeable_curves (   target_volume_ids )

ボリュームまたはボディのリストから合併可能なカーブのリストを取得します。

ボリュームIDのリストを考慮して、この機能は潜在的に合併可能なカーブのリストを返します。 それぞれの内部リストには、合併できるカーブのセットのカーブIDが含まれています。 各セットには2個以上のカーブが含まれます。

カーブは、現在の合併許容差の範囲内にある場合に合併可能とみなされます。 明示的に設定されていない場合、デフォルトの合併許容差は1e-6です。

Pythonでは、リストはPythonのトップルとして返します。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Volume 1
cubit.cmd ('brick x 10' ) # Volume 2
cubit.cmd ('vol 2 mov x 10' ) # Move volume 2 exactly adjacent to volume 1
target_volumes = [1, 2]
mergeable_curves = cubit.get_mergeable_curves (target_volumes)
print("Mergeable curves:" )

for group in mergeable_curves: print(group)

# Expected output:
# (1, 15)
# (5, 19)
# (10, 21)
# (12, 23)
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids チェックするためのボリュームIDのリスト。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
合併可能なカーブIDのリスト(カップル以上の可能性) Pythonでは、それぞれの内部リストがダブルとして返されます。

◆ get_mergeable_surfaces()

def cubit.get_mergeable_surfaces (   target_volume_ids )

ボリュームまたはボディのリストから合併可能なサーフェスのリストを取得します。

ボリュームIDのリストを考慮して、この機能は潜在的に合併可能な「表面」のリストを返します。 各内部リストには、合併できるサーフェスのセットのサーフェスIDが含まれています。 各セットには2個以上のサーフェスが含まれます。

「サーフェス」は、現在の合併許容差の範囲内にある場合に合併可能とみなされます。 明示的に設定されていない場合、デフォルトの合併許容差は1e-6です。

Pythonでは、リストはPythonのトップルとして返します。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Volume 1
cubit.cmd ('brick x 10' ) # Volume 2
cubit.cmd ('vol 2 mov x 10' ) # Move volume 2 exactly adjacent to volume 1
target_volumes = [1, 2]
mergeable_surfaces = cubit.get_mergeable_surfaces (target_volumes)
print("Mergeable surfaces:" )

for group in mergeable_surfaces: print(group)

# Expected output:
# (6, 10)
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids チェックするためのボリュームIDのリスト。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
合併可能なサーフェスIDのリスト(潜在的にカップル以上) Pythonでは、それぞれの内部リストがダブルとして返されます。

◆ get_mergeable_vertices()

def cubit.get_mergeable_vertices (   target_volume_ids )

合併可能な頂点のリストをボリュームまたはボディのリストから取得します。

ボリュームIDのリストを考慮して、この機能は潜在的に合併可能な「トップポイント」のリストを返します。 各内部リストには、合併できる一連の「トップポイント」の「トップポイント」IDが含まれています。 各セットには2つ以上の頂点が含まれる可能性があります。

頂点は、現在の合併許容差の範囲内にある場合に合併可能とみなされます。 明示的に設定されていない場合、デフォルトの合併許容差は1e-6です。

Pythonでは、リストはPythonのトップルとして返します。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Volume 1
cubit.cmd ('brick x 10' ) # Volume 2
cubit.cmd ('vol 2 mov x 10' ) # Move volume 2 exactly adjacent to volume 1
target_volumes = [1, 2]
mergeable_vertices = cubit.get_mergeable_vertices (target_volumes)
print("Mergeable vertices:" )

for group in mergeable_vertices: print(group)

# Expected output:
# (1, 12)
# (2, 11)
# (5, 16)
# (6, 15)
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids チェックするためのボリュームIDのリスト。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
合併可能な頂点IDのリスト(カップル以上の可能性) Pythonでは、それぞれの内部リストがダブルとして返されます。

◆ get_mesh_edge_length()

def cubit.get_mesh_edge_length (   edge_id )

指定されたメッシュのエッジの長さを計算します。

モデル単位でジオメトリの長さをメッシュのエッジと指定されたIDで返します。

.. code-block:: python
import cubit
# Get the length of edge 10
print("Edge 10 length:" , length)
 @n type of edge_id:  int
パラメータ
edge_id メッシュのエッジの長さが要求されるID。

戻り値の型:float
戻り値
指定されたメッシュのエッジの長さ

◆ get_mesh_element_type()

def cubit.get_mesh_element_type (   entity_type,
  entity_id 
)

メッシュの要素タイプをジオメトリのエンティティに適用します。

指定されたジオメトリのためにメッシュを生成するために使用された要素の種類を返します。 可能な返品値:hex、tet、pyramid、wedge、face(quad)、tri、edge、またはnode。 エンティティがマッサージされていない場合に、空の線を返します。

.. code-block:: python
# Create a block and mesh volume 1 with tets
cubit.cmd ("brick x 10" )
cubit.cmd ("vol all scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Query the mesh type on surface 1
mesh_type = cubit.get_mesh_element_type ("surface" , 1)
print(f"Mesh element type on surface 1: {mesh_type}" ) # prints "tri"
 @n type of entity_type:  string
パラメータ
entity_type ジオメトリタイプ("surface"、"curve"、"volume"など)。

entity_id の型:int
entity_id ジオメトリのエンティティのID。

戻り値の型:string
戻り値
そのエンティティにメッシュの要素のタイトルの名前、あるいは、いない場合、空っぽです。

◆ get_mesh_error_count()

def cubit.get_mesh_error_count ( )

◆ get_mesh_error_solutions()

def cubit.get_mesh_error_solutions (   error_code )

推奨されたソリューションとメッシュエラーのコンテキストケーキを修正します。

メッシュエラーコードを考慮して、三重の線を返します: 1) エラーを修正する方法を説明するソリューションテキスト。 (2)詳細な指導のためのコンテキストクエアを支援する。 3)コマンドパネルは、使用するUIパネルまたはコマンドを示す。

.. code-block:: python
import cubit
# Lookup mesh error solutions for code 102
print("Solution: " , cues[0])
print("Help context: " , cues[1])
print("Command panel: " , cues[2])
 @n type of error_code:  int
パラメータ
error_code メッシュエラーコードを入力してガイドを取得します。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
ベクトルの3行: [0] ソリューションテキスト、 [1] コンテキストの助け、 [2] コマンドのパネルの助け。

◆ get_mesh_errors()

def cubit.get_mesh_errors ( )

◆ get_mesh_geometry_approximation_angle()

def cubit.get_mesh_geometry_approximation_angle (   geometry_type,
  entity_id 
)

特定のエンティティで TriMesh/TetMesh のジオメトリ接近の角度を取得します。

メッシング時に曲がったCADの「表面」に近づくために使用された最大偏差の角度(度)を返します。 より小さな角度は、より薄く三角形のサーフェスを生み出します。 値はカーブ、サーフェス、またはボリュームに明示的に設定されるか、ユーザーセットでない場合、隣接するジオメトリから計算される場合があります。

.. code-block:: python
# 1) Set geometry approximation angle to 10 degrees on volume 5.
cubit.cmd ("volume 5 scheme tetmesh geom approximation angle 10" )
# 2) Query the geometry approximation angle for volume 5.
print(f"Volume 5 geometry approximation angle: {angle} degrees" ) # Expected: 10
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、または"volume")。

entity_id の型:int
entity_id 接近の角度が求められているエンティティのID。

戻り値の型:float
戻り値
ジオメトリの接近角度はグレード(ダブル)で、デフォルトは15です。

◆ get_mesh_group_parent_ids()

def cubit.get_mesh_group_parent_ids (   element_type,
  element_id 
)

特定のメッシュの要素のために親のグループIDを返します。

指定メッシュ要素を含む全groupのIDを返します(pick groupを除く)。

.. code-block:: python
# Fetch groups that contain triangle element 332.
parent_id_list = cubit.get_mesh_group_parent_ids ("tri" , 332)
print("Parent groups for tri 332:" , parent_id_list)
 @n type of element_type:  string
パラメータ
element_type メッシュ要素タイプ(例: "node"、"edge"、"face"/"tri"/"quad"、"volume"/"tet"/"hex")。

element_id の型:int
element_id メッシュの要素のID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
この要素を含むグループIDのベクトルです。

◆ get_mesh_interval_firmness()

def cubit.get_mesh_interval_firmness (   geometry_type,
  entity_id 
)

指定されたジオメトリエンティティのインターバルの固定性を回復します。

インターバルの固定性は、カーブのインターバルの数またはサイズが他のコマンドによって変更されるかどうかを決定します。 タイトル可能な返品値:

  • "HARD" - インターバルがロックされています(ユーザーがhardコマンドで直接設定)。
  • SOFT - インターバルは目標(マッチングまたはその他のコマンドによって調整される可能性があります)。
  • LIMP - いかなるインターバルも明確に設定されていません(デフォルト状態)。
.. code-block:: python
# 1) Create two vertices and a linear curve between them (Curve ID = 1).
cubit.cmd ("create vertex 0 0 0" ) # Vertex ID = 1
cubit.cmd ("create vertex 1 0 0" ) # Vertex ID = 2
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
# 2) By default, interval firmness is LIMP.
firmness = cubit.get_mesh_interval_firmness ("curve" , 1)
print("Curve 1 interval firmness:" , firmness) # Expected: "LIMP"
# 3) Set a "soft" interval count (upgrades firmness to SOFT).
cubit.cmd ("curve 1 interval count 10" )
firmness = cubit.get_mesh_interval_firmness ("curve" , 1)
print("Curve 1 interval firmness:" , firmness) # Expected: "SOFT"
# 4) Lock the interval with a "hard" command.
cubit.cmd ("curve 1 interval hard" )
firmness = cubit.get_mesh_interval_firmness ("curve" , 1)
print("Curve 1 interval firmness:" , firmness) # Expected: "HARD"
 @n type of geometry_type:  string
パラメータ
geometry_type エンティティのジオメトリタイプ("curve"、"surface"、または"volume")。
注
interval firmnessはcurveへ適用されます。"surface"と"volume"のqueryでは、内部curveのfirmnessを組み合わせた値を返します。

entity_id の型:int
パラメータ
entity_id インターバルの固定性が要求されるエンティティのID。

戻り値の型:string
戻り値
: 現在のinterval firmness。"HARD"、"SOFT"、または"LIMP"。

◆ get_mesh_intervals()

def cubit.get_mesh_intervals (   geometry_type,
  entity_id 
)

指定されたエンティティのためにメッシュのインターバルを数える。

タイトルは、メッシュインターバル(カーブ分部)の数を、ジオメトリエンティティで定義します。

  • カーブの場合、これはそのカーブに沿ってメッシュの「エッジ」の数です。
  • サーフェスまたはボリュームの場合、既定のインターバルは、その限界のカーブがカーブレベルの設定が存在しない場合に相続するという計算です。
  • カーブレベルのインターバル設定は常にサーフェスまたはボリュームレベルの設定を超えています。
.. code-block:: python
import cubit
curve_int = cubit.get_mesh_intervals ("curve" , 5)
surf_int = cubit.get_mesh_intervals ("surface" , 12)
 @n type of geometry_type:  string
パラメータ
geometry_type Entity type: "curve"、"surface"、または"volume"。

entity_id の型:int
entity_id ジオメトリのエンティティのID。

戻り値の型:int
戻り値
メッシュインターバルはカーブに数え、またはサーフェスまたはボリュームに相続した数え(カーブレベルの設定によって上昇する)。

◆ get_mesh_scheme()

def cubit.get_mesh_scheme (   geometry_type,
  entity_id 
)

メッシングのスキームをジオメトリのエンティティに適用します。

指定されたエンティティに現在設定されているスキームの名前を返します。 これはスキームが割り当てられた後にいつでも呼ばれることができる(例えば、 cubit.cmd("vol 1 scheme sweep") どのスキームが使用されているかを確認するために。

.. code-block:: python
cubit.cmd ('surface 12 scheme pave' )
scheme = cubit.get_mesh_scheme ("surface" , 12)
print("Surface 12 uses scheme:" , scheme)
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、"volume")。

entity_id の型:int
entity_id スキームが求められているエンティティのID。

戻り値の型:string
戻り値
現在適用されているmeshing scheme名(例: "sweep"、"bias"、"tetmesh")。

◆ get_mesh_scheme_firmness()

def cubit.get_mesh_scheme_firmness (   geometry_type,
  entity_id 
)

指定された「サーフェス」またはボリュームのためにメッシングのスキームの固定性を回復します。

scheme firmnessは、ユーザー指定schemeを自動選択で上書きできるかを制御します。有効値は"Default"(自動選択を許可)、"Soft"(自動選択を優先)、"Hard"(schemeをロックし自動選択で変更しない)です。scheme firmnessをサポートするのは"surface"と"volume"エンティティのみです。

.. code-block:: python
# Assume surface 12 already exists and has a meshing scheme assigned.
# 1) Lock the surface's scheme by setting firmness to "Hard":
cubit.cmd ("surface 12 scheme hard" )
# 2) Query the firmness for surface 12:
firmness = cubit.get_mesh_scheme_firmness ("surface" , 12)
print("Surface 12 firmness:" , firmness) # Expected: "Hard"
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("surface"または"volume")。

entity_id の型:int
entity_id スキームの固有性が要求されるエンティティのID。

戻り値の型:string
戻り値
現在のscheme firmness("Default"、"Soft"、"Hard")。

◆ get_mesh_size()

def cubit.get_mesh_size (   geometry_type,
  entity_id 
)

効果的なターゲットエッジの長さをメッシングのエンティティに戻します。

2Dまたは3Dの要素を生成する際に使用されたメッシュサイズ(モデルユニット)を返します。

  • エンティティにサイズが設定されていない場合、それはそのサイズを親から相続します。
  • サイズがどこにも設定されていない場合は、デフォルト自動サイズが使用されます。
.. code-block:: python
import cubit
size = cubit.get_mesh_size ("curve" , 7)
print("Mesh size on curve 7:" , size)
 @n type of geometry_type:  string
パラメータ
geometry_type Entity type: "curve"、"surface"、または"volume"。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる。

戻り値の型:float
戻り値
効果的なメッシュ『エッジ』長さ(相続またはデフォルト自動サイズ)。

◆ get_mesh_size_type()

def cubit.get_mesh_size_type (   geometry_type,
  entity_id 
)

指定されたエンティティのメッシュサイズ設定タイプを返します。

異なる get_mesh_interval_firmness() インターバル数(エッジ番号)の固定性を返すこの機能は、ターゲットエッジ長さ(メッシュサイズ)設定の状態を返します。 返品値は、ユーザーの直接入力、接続されたジオメトリからの自動計算、または設定の欠如を反映する可能性があります。

タイトル可能な返品値は:

  • USER_SET - このエンティティにユーザーが明確に設定したメッシュサイズ(エッジの長さ)。
  • "CALCULATED" - メッシュサイズが、隣接ジオメトリまたはデフォルト規則に基づいて推定または計算されたことを示します。
  • NOT_SET - ユーザーまたは計算によってメッシュサイズが設定されていません。
.. code-block:: python
# 1) Create two vertices and a linear curve between them (Curve ID = 1).
cubit.cmd ("create vertex 0 0 0" ) # Vertex ID = 1
cubit.cmd ("create vertex 1 0 0" ) # Vertex ID = 2
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
# 2) Initially, no mesh size is set, so status is NOT_SET.
size_type = cubit.get_mesh_size_type ("curve" , 1)
print("Curve 1 mesh size type:" , size_type) # Expected: "NOT_SET"
# 3) Explicitly set a mesh size (target edge length) of 0.1 on curve 1 and mesh it.
cubit.cmd ("curve 1 size 0.1" )
cubit.cmd ("mesh curve 1" )
size_type = cubit.get_mesh_size_type ("curve" , 1)
print("Curve 1 mesh size type:" , size_type) # Expected: "USER_SET"
# 4) If a parent surface or automatic process assigns a size, querying the curve may yield "CALCULATED".
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、または"volume")。

entity_id の型:int
entity_id メッシュサイズタイプが求められているエンティティのID。

戻り値の型:string
戻り値
エンティティのメッシュサイズ状態はUSER_SET、CALCULATED、またはNOT_SETです。

◆ get_meshed_volume_or_area()

def cubit.get_meshed_volume_or_area (   geometry_type,
  entity_ids 
)

合計メッシュボリュームまたはサーフェス面積は、CADエンティティまたはメッシュ要素のために。

  • geometry_typeが"volume"または"surface"の場合、それらのエンティティに接続された全メッシュ要素のvolumeまたはareaを合計します。
  • geometry_typeが"hex"、"tet"、"tri"、または"quad"の場合、指定メッシュ要素IDのvolume(hex、tet)またはarea(tri、quad)を合計します。
.. code-block:: python
import cubit
vol = cubit.get_meshed_volume_or_area ("volume" , [1])
area = cubit.get_meshed_volume_or_area ("tri" , [10, 11])
 @n type of geometry_type:  string
パラメータ
geometry_type "volume"、"surface"、"hex"、"tet"、"tri"、または"quad"。

entity_ids の型:std::vector< int,std::allocator< int > >
entity_ids 特定のタイプのIDのベクトル

戻り値の型:float
戻り値
合計メッシュボリューム(3D)または面積(2D)

◆ get_meshgems_version()

def cubit.get_meshgems_version ( )

MeshGems図書館のバージョンを復元します。

Cubitによって使用されたMeshGems図書館のバージョンラインを返します。

.. code-block:: python
import cubit
meshgems_version = cubit.get_meshgems_version ()
print("MeshGems version:" , meshgems_version)
 @n return type of :  string
戻り値
MeshGems図書館のバージョンを含むシート。

◆ get_ML_classification()

def cubit.get_ML_classification (   geom_type,
  ent_id 
)

単一のボリュームまたはサーフェスのトップランキングラベルを取得します。

この機能は、完全な分類作業流を実行し、呼び出しに等しい。 get_ML_operation_features() フォローした → get_ML_predictions() . ボリュームには"volume_no_op"、サーフェスには"classify_surface"という適切なモデルを使用し、予測確率が最も高いカテゴリを返します。



geom_type の型:string

パラメータ
geom_type ジオメトリタイプ指示子: "volume"または"surface"。

ent_id の型:int
ent_id 分類するボリュームまたはサーフェスのエンティティのID。

戻り値の型:string
戻り値
最も信頼性の高いカテゴリのラベル。
   .. code-block:: python
classification = cubit.get_ML_classification ("surface" , 20)
print("Predicted classification:" , classification)

◆ get_ML_classification_categories()

def cubit.get_ML_classification_categories (   geom_type )

ジオメトリタイプのすべての利用可能な分類カテゴリを取り戻します。

この機能は、ボリュームまたは「サーフェス」を分類するために使用される各ラベルのMLシステムを要求します。 また、特定のMLモデルタイプ、例えばvolume_no_opまたはsurface_classificationを受け入れることもできます。



geom_type の型:string

パラメータ
geom_type ジオメトリタイプ(「容量」または「表面」) また、MLモデルタイプ、例えばvolume_no_opまたはsurface_classificationをサポートしています。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
カテゴリ名のベクトル
   .. code-block:: python
categories = cubit.get_ML_classification_categories ("surface" )
print("Classification categories for surface:" , categories)

◆ get_ML_classification_models()

def cubit.get_ML_classification_models ( )

サポートされた分類 ML モデル名のリストを復元します。

ラベル化またはカテゴリ化に使用されるすべての利用可能な分類モデルのMLサブシステムを検索します。



戻り値の型:std::vector< std::string,std::allocator< std:: string > >

戻り値
ベクトルの分類モデル名; 登録されていない場合、空白。
   .. code-block:: python
print("Available classification models:" , models)

◆ get_ML_classifications()

def cubit.get_ML_classifications (   geom_type,
  ent_ids 
)

複数のボリュームまたはサーフェスを単一のバッチ操作に分類します。

エンティティのコレクションで分類を実行し、繰り返し個々の通話の効率を向上させる。



geom_type の型:string

パラメータ
geom_type 分類対象のジオメトリタイプ("volume"または"surface")。

ent_ids の型:std::vector< size_t,std::allocator< size_t > >
ent_ids ベクトルのエンティティID(ボリュームまたはサーフェス)を分類する。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
予測されたカテゴリラベルのベクトルは、同じ順序でent_idsと表示されます。

◆ get_ML_feature_distance()

def cubit.get_ML_feature_distance (   op_name,
  f1,
  f2 
)

2つの「フィーチャ」とベクトルの間の重い距離を計算します。

操作の特定の重要性重量を決定の木の集合からそれぞれの「フィーチャ」に適用し、その後、重量のベクトルの間のエウクリディアの距離を計算します。 距離は、2つのエンティティの間のジオメトリまたはトポロジー的類似性を示し、ゼロの距離は正確な対比を意味します。



op_name の型:string

パラメータ
op_name ML 操作名称(参照) get_ML_operation_features()).

f1 の型:std::vector< double,std::allocator< double > >
f1 ファースト『フィーチャ』ベクトル; f2 は長さで合わなければならない。

f2 の型:std::vector< double,std::allocator< double > >
f2 二番目の『フィーチャ』ベクトルは、F1と長さで対戦しなければならない。

戻り値の型:float
戻り値
二つの「フィーチャ」のベクトルの間の距離を重ねた。 ゼロの距離はエンティティとの正確な対比を示す。
   .. code-block:: python
# Retrieve features for two entities
op_names = ['surface_no_op' ]
entity1_ids = [5, 10] # Two entities
entity2_ids = [0, 0] # None for surface_no_op
params = [[-1, -1, -1]]
user_configs = [1, 0] # geometry sizing and regularize
mesh_size = 1.5
op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size)
# Compute the weighted distance between the features of the two entities
distance = cubit.get_ML_feature_distance ("surface_no_op" , features[0], features[1])
print("Weighted distance:" , distance)

◆ get_ML_feature_importances()

def cubit.get_ML_feature_importances (   op_name )

特定のMLの操作のために「フィーチャ」の重要性のスコアを回収します。

学習済みモデルを問い合わせ、指定操作で使用される各featureの相対的重要度を取得します。



op_name の型:string

パラメータ
op_name ML 操作識別(たとえば、 remove_cone)

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
ベクトルの重要性の価値は、それぞれの「フィーチャ」と同じ順序で、 get_ML_operation_features().
.. code-block:: python
feature_names = cubit.get_ML_operation_feature_names ("remove_cone" )
importances = cubit.get_ML_feature_importances ("remove_cone" )
print("Feature importances for remove_cone:" )

for i in range(len(feature_names)): print(f"{feature_names[i]}\t{importances[i]}")

◆ get_ML_features()

def cubit.get_ML_features (   ml_op_names,
  entity1_ids,
  entity2_ids,
  params,
  user_configs,
  mesh_size,
  reduced_features = False 
)

複数のエンティティを可能にする操作のためのML「フィーチャ」のベクトルを計算します。

これはバッチバージョンです。 get_ML_operation_features() 操作によってIDのリストを受け入れ、複数のエンティティを通じて「フィーチャ」抽出を同時に可能にします。



ml_op_names の型:std::vector< std::string,std::allocator< std::string > >

パラメータ
ml_op_names ML操作/モデル名のベクトル

entity1_ids の型:std::vector< std::vector< size_t,std::allocator< size_t > >,std::allocator< std::vector< size_t,std::allocator< size_t > > > >
entity1_ids ベクトルのベクトルは、主なエンティティIDを操作に分けます。

entity2_ids の型:std::vector< std::vector< size_t,std::allocator< size_t > >,std::allocator< std::vector< size_t,std::allocator< size_t > > > >
entity2_ids ベクトルのベクトルの次元のエンティティIDは操作によって表示されます。

params の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >
params 各操作のパラメーターリストのベクトル

user_configs の型:std::vector< double,std::allocator< double > >
user_configs ユーザーが設定できる設定のベクトル(ジオメトリサイズと規制)

mesh_size の型:float
mesh_size 「フィーチャ」計算のためのターゲットメッシュサイズ

reduced_features の型:boolean, optional
reduced_features 真実(サポートされている場所)なら、より速いパフォーマンスのために「フィーチャ」セットを減らす。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
外側vectorのサイズ == ml_op_names.size()。各内側vectorには、その操作のfeature値が含まれます。
   .. code-block:: python
ml_op_names = ['surface_no_op' , 'surface_no_op' ]
entity1_ids = [[20, 25], [30, 35]]
entity2_ids = [[0, 0], [0, 0]]
params = [[-1, -1, -1], [-1, -1, -1]]
user_configs = [1, 0]
mesh_size = 1.5924
features = cubit.get_ML_features (
ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size)

◆ get_ML_initialize_surviving_entities()

def cubit.get_ML_initialize_surviving_entities (   op_name,
  ent1,
  ent2 
)

CAD操作の前に「生き残りの追跡」のためのエンティティを捕獲します。

この機能は、CADの操作モデルの基礎を設定し、操作の前と後のメッシュ品質を測定します。 使われているのは、 get_ML_surviving_entities() オリジナルを置き換えるか、または操作の後にそれに合致するエンティティを特定する。



op_name の型:string

パラメータ
op_name ML 操作名称(e.g、remove_cone)

ent1 の型:std::vector< int,std::allocator< int > >
ent1 操作に関与する主なエンティティIDのリスト。

ent2 の型:std::vector< int,std::allocator< int > >
ent2 操作に関与する二次エンティティIDのリスト。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
生存追跡のためのエンティティIDのベクトル
   .. code-block:: python
ent1 = [5]
ent2 = [0]
survivors = cubit.get_ML_initialize_surviving_entities ("remove_cone" , ent1, ent2)
print("Surviving entity ID:" , survivors[0])

◆ get_ML_model_ID()

def cubit.get_ML_model_ID (   model_name )

特定の ML モデルまたは操作名のユニークな数値 ID を返します。

内部マッピングは、モデルまたは操作の名前からその割り当てられたIDに表示されます。



model_name の型:string

パラメータ
model_name MLモデルの名前または操作を尋ねる。

戻り値の型:int
戻り値
ポジティブ・インテラー・ID 成功点: 0 未発見点またはエラー点
   .. code-block:: python
model_id = cubit.get_ML_model_ID ("surface_no_op" )
print("Model ID for surface_no_op:" , model_id)

◆ get_ML_model_name()

def cubit.get_ML_model_name (   model_ID )

MLモデルの名前をそのIDに基づいて取り戻します。

この機能は、提供されたモデルIDに合致するMLモデルの名前を返します。 モデル名は、特定の機械学習モデルを特定するために使用され、分類や予測などのさまざまな操作に使用することができます。



model_ID の型:int

パラメータ
model_ID MLモデルのユニークなアイデンティティ。

戻り値の型:string
戻り値
MLモデルの名前は、提供されたIDに合致する。
   .. code-block:: python
model_ID = 1
model_name = cubit.get_ML_model_name (model_ID)
print("Model name for ID" , model_ID, ":" , model_name)

◆ get_ML_operation()

def cubit.get_ML_operation (   op_name,
  entity_id1,
  entity_id2,
  params,
  user_configs,
  small_curve_size,
  mesh_size 
)

コマンド、表示ラベル、およびML操作のプレビューテキストを生成します。

指定された操作とエンティティのための3つのラインを構築します。

  1. 操作を実行するCubitコマンド、
  2. 人間の読みやすいディスプレイラベル、
  3. プレビューの説明



op_name の型:string

パラメータ
op_name MLの名称は操作(参照get_ML_operation_features)。

entity_id1 の型:int
entity_id1 操作に関与する主なエンティティのID。

entity_id2 の型:int
entity_id2 操作に関与する次元エンティティのID。

params の型:std::vector< double,std::allocator< double > >
params 操作のためのパラメーター値の選択的なベクトルです。

user_configs の型:std::vector< double,std::allocator< double > >
user_configs ユーザーが設定できる設定のベクトル(ジオメトリサイズと規制)

small_curve_size の型:float
small_curve_size カーブを"small"とみなすしきい値。コマンド生成の調整に使用します。

mesh_size の型:float
mesh_size ターゲットメッシュサイズパラメーター操作

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
3つの線のベクトル:
  • [0] = execution command,
  • [1] = display label,
  • (2) 事前テキスト
   .. code-block:: python
operation = cubit.get_ML_operation (
"surface_no_op" , 5, 0, [-1, -1, -1], [1, 0], 0.1, 1.5)
print("Command:" , operation[0])
print("Label:" , operation[1])
print("Preview:" , operation[2])

◆ get_ML_operation_feature_names()

def cubit.get_ML_operation_feature_names (   ml_op_name,
  reduced_features = False 
)

指定された ML 操作のための「フィーチャ」名のリストを返します。

この機能は、操作の入力ベクトルにそれぞれの「フィーチャ」を名付けた線のベクトルを返します。



ml_op_name の型:string

パラメータ
ml_op_name MLの名称操作またはモデル(定義によって定義される) get_ML_operation_features()).

reduced_features の型:boolean, optional
reduced_features 真実である場合(現在はvolume_no_opのみ)は、より速い結論を得るために、完全なセット(46)の代わりに「フィーチャ」名の削減セット(9)を返します。
@n return type of : std::vector< std::string,std::allocator< std:: string > >
戻り値
対応するfeature valueと同じ順序のfeature名文字列vector。
.. code-block:: python
# print names of all features with their type and feature value for surface_no_op
feature_names = cubit.get_ML_operation_feature_names ("surface_no_op" )
feature_types = cubit.get_ML_operation_feature_types ("surface_no_op" )
features = cubit.get_ML_operation_features (['surface_no_op' ], [[20]], [[0]], [[-1, -1, -1]], 1.5)
# Print the feature details
print("Feature details for surface_no_op:" )

for i in range(len(feature_names)): print(f"{i}\t{feature_names[i]}\t{feature_types[i]}\t{features[0][i]}")

◆ get_ML_operation_feature_size()

def cubit.get_ML_operation_feature_size (   ml_op_name,
  reduced_features = False 
)

予想される「フィーチャ」 - ベクトルの長さを、特定のMLの操作のために回収します。

指定された操作(説明したように、 get_ML_operation_features() ) この機能は、モデルが入力として期待する「フィーチャ」の数を返します。



ml_op_name の型:string

パラメータ
ml_op_name ML操作またはモデルの名前。

reduced_features の型:boolean, optional
reduced_features 真実である場合(現在はvolume_no_opのみがサポートされている場合)、減少した「フィーチャ」数(9)は、より効率的な予測のために完全な「フィチャ」セット(46)の代わりに返します。

戻り値の型:int
戻り値
「フィーチャ」の数は操作から期待される。
   .. code-block:: python
feature_size = cubit.get_ML_operation_feature_size ("surface_no_op" )
print("Expected feature size for surface_no_op:" , feature_size)

◆ get_ML_operation_feature_types()

def cubit.get_ML_operation_feature_types (   ml_op_name,
  reduced_features = False 
)

指定したML操作の各featureについて、データ型記述子を取得します。

この関数は、操作のinput vector内の各featureに期待されるデータ型を示す文字列リストを返します。タイプは次のとおりです:

  • boolean(バイナリーフラッグ: 0 または 1)
  • "categorical"(サーフェスタイプなど、離散カテゴリを表す整数コード)
  • "continuous"(カーブ数やサーフェス面積など、連続範囲をとる数値)



ml_op_name の型:string

パラメータ
ml_op_name MLモデルの名前または操作(参照) get_ML_operation_features()).

reduced_features の型:boolean, optional
reduced_features 真実の場合(現在はvolume_no_opのみ)は、完全なセット(46)の代わりに、減少した「フィーチャ」セット(9)のタイプを返します。

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
データタイプの線のベクトルは、「フィーチャ」値の順序と一致する。
   .. code-block:: python
feature_types = cubit.get_ML_operation_feature_types ("surface_no_op" )
print("Feature types for surface_no_op:" , feature_types)

◆ get_ML_operation_features()

def cubit.get_ML_operation_features (   ml_op_names,
  entity1_ids,
  entity2_ids,
  params,
  user_configs,
  mesh_size,
  reduced_features = False 
)

ML『フィーチャ』ベクトルをCubit操作のリストに計算します。

この機能は、特定のパラメーターに基づいてCubitの操作のリスト、すなわちエンティティID、ターゲットメッシュサイズのための機械学習「フィーチャ」のベクトルを計算します。 それは、それぞれの操作のために計算された「フィチャ」のベクトルを返します。

.. code-block:: python
ml_op_names = ['surface_no_op' , 'surface_no_op' ]
entity1_ids = [20, 25] # surface IDs
entity2_ids = [0, 0] # none for surface_no_op
params = [[-1, -1, -1], [-1, -1, -1]]
user_configs = [1, 0] # geom_sizing ON, regularize OFF
mesh_size = 1.5924
ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size)

サポートされた操作: ### 未更新 ###

.. code-block:: c++

      ID | Type | #Labels | Name                    | Entity1 | Entity2  | Params
      ---------------------------------------------------------------------------
      1 |  R   |   3     | vertex_no_op            | vertex  | none     |
      2 |  R   |   3     | curve_no_op             | curve   | none     |
      3 |  R   |   3     | surface_no_op           | surface | none     |
      4 |  C   |   1     | volume_no_op            | volume  | none     |
      5 |  R   |   3     | remove_surface          | surface | none     |
      6 |  R   |   3     | tweak_replace_surface   | surface | surface  |
      7 |  R   |   3     | composite_surfaces      | surface | surface  |
      8 |  R   |   3     | collapse_curve          | curve   | vertex   |
      9 |  R   |   3     | remove_topology_curve   | curve   | curve    |
     10 |  R   |   3     | virtual_collapse_curve  | curve   | vertex   |
     11 |  R   |   3     | remove_topology_surface | surface | surface  |
12 | R | 3 | blunt_tangency | vertex | none | remove_mat, angle, depth

13 | R | 3 | remove_cone | surface | none |

14 | R | 3 | collapse_angle | vertex | none | real_split, angle, comp_vertex

15 | R | 3 | remove_blend | surface | none | 16 | R | 3 | remove_cavity | surface | none |

17 | R | 3 | copy_surface | volume | surface | nsurfs, id0, loft0, thick0, ...
18 | R | 3 | midsurface | volume | surf0 | surf1, loft, thick

19 | C | 1 | classify_surface | surface | none |



ml_op_names の型:std::vector< std::string,std::allocator< std::string > >

パラメータ
ml_op_names ML操作/モデル名のベクトル

entity1_ids の型:std::vector< size_t,std::allocator< size_t > >
entity1_ids 各操作のための主なエンティティIDのベクトルです。

entity2_ids の型:std::vector< size_t,std::allocator< size_t > >
entity2_ids 次元のエンティティIDのベクトルは、それぞれの操作に対して。

params の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >
params 各操作のパラメーターリストのベクトル

user_configs の型:std::vector< double,std::allocator< double > >
user_configs ユーザーが設定できる設定のベクトル(ジオメトリサイズと規制)

mesh_size の型:float
mesh_size 「フィーチャ」計算のためのターゲットメッシュサイズ

reduced_features の型:boolean, optional
reduced_features 真実(サポートされている場所)なら、より速いパフォーマンスのために「フィーチャ」セットを減らす。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
外側vectorのサイズ == ml_op_names.size()。各内側vectorには、その操作のfeature値が含まれます。

◆ get_ML_operation_label_size()

def cubit.get_ML_operation_label_size (   ml_op_name )

予想されるラベルベクトル長さを特定のML操作のために返します。

指定された操作またはモデルのベクトル出力ラベルに記載された入力数を返します。



ml_op_name の型:string

パラメータ
ml_op_name ML操作またはモデルの名前。

戻り値の型:int
戻り値
操作の出力ベクトルのラベル数。
   .. code-block:: python
label_size = cubit.get_ML_operation_label_size ("surface_no_op" )
print("Label size for surface_no_op:" , label_size)

◆ get_ML_predictions()

def cubit.get_ML_predictions (   ml_op_names,
  entity1_ids,
  entity2_ids,
  params,
  user_configs,
  mesh_size,
  reduced_features = False 
)

単一エンティティのペアに対する操作リストについて、ML予測を計算します。

この機能は、MLのトレーニングデータ(すでに充電されていない場合)、それぞれの指定された操作と関連するエンティティのための「フィーチャ」を計算し、その後、決断ツリーのスキット学習セットを使用して予測を実行します。



ml_op_names の型:std::vector< std::string,std::allocator< std::string > >

パラメータ
ml_op_names ML操作またはモデル名のベクトル
Classification volume_no_op、classify_surface(カテゴリごとに信頼を返す)。
Regression さまざまな操作ID(一つまたは複数の品質メトリックを返す)

entity1_ids の型:std::vector< size_t,std::allocator< size_t > >
entity1_ids 各操作のための主なエンティティIDのベクトルです。

entity2_ids の型:std::vector< size_t,std::allocator< size_t > >
entity2_ids 次元のエンティティIDのベクトルは、それぞれの操作に対して。

params の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >
params 各操作のパラメーターリストのベクトル

user_configs の型:std::vector< double,std::allocator< double > >
user_configs ユーザーが設定できる設定のベクトル(ジオメトリサイズと規制)

mesh_size の型:float
mesh_size ターゲットメッシュサイズは「フィーチャ」の計算に使用されます。

reduced_features の型:boolean, optional
reduced_features 真実(サポートされている場所)であれば、より速い結論を得るために「フィーチャ」の設定を削減してください。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
外部のベクトルはml_op_namesの長さと対戦し、それぞれの内部のベクトルには、その操作の予測値が含まれています。
  • 分類: 信頼性(0-1) 各カテゴリ
  • レグレジョン:モデルごとに定義された1つまたは複数のメトリック。
   .. code-block:: python
ml_op_names = ['volume_no_op' , 'classify_surface' ]
entity1_ids = [5, 10] # volume IDs
entity2_ids = [0, 0] # none for classification
params = [[-1, -1, -1], [-1, -1, -1]]
user_configs = [1, 0]
mesh_size = 1.5
predictions = cubit.get_ML_predictions (
ml_op_names, entity1_ids, entity2_ids, params, user_configs, mesh_size)

◆ get_ML_regression_models()

def cubit.get_ML_regression_models ( )

サポートされた regression ML モデル名のリストをリトリウムします。

予測または分析のために使用されるすべての利用可能な regression モデルのための ML サブシステムを検索します。



戻り値の型:std::vector< std::string,std::allocator< std:: string > >

戻り値
ベクトルの逆転モデル名; 登録されていないモデルが空いている場合。
   .. code-block:: python
print("Available regression models:" , models)

◆ get_ML_surviving_entities()

def cubit.get_ML_surviving_entities (   op_name,
  begin_ents 
)

どのエンティティがCAD操作の後に生き残るかを特定します。

スナップショットを使用して get_ML_initialize_surviving_entities() 操作完了後に残存する、または初期集合に対応するエンティティを検索するために使用します。



op_name の型:string

パラメータ
op_name MLの名称は操作。

begin_ents の型:std::vector< int,std::allocator< int > >
begin_ents Entity IDリストから get_ML_initialize_surviving_entities().

戻り値の型:std::pair< std::string,std::vector< int,std:: allocator< int > > >
戻り値
カップル:
  • 1つ目はエンティティタイプ(vertex、curveなど)です。
  • 二つ目は「生き残ったエンティティ」IDのリストです。
 .. code-block:: python
# Step 1: Initialize the baseline entity IDs
ent1 = [5] # Primary entity (surface 5)
ent2 = [0] # No secondary entities for the operation
begin_ents = cubit.get_ML_initialize_surviving_entities ("remove_surface" , ent1, ent2)
# Step 2: Perform the operation (remove surface 5)
cubit.cmd ("remove surface 5" )
# Step 3: Retrieve the surviving entities
result = cubit.get_ML_surviving_entities ("remove_surface" , begin_ents)
# Print the surviving entity type and ID
print("Surviving entity type:" , result[0])

for id in result[1]: print("Surviving entity ID:", id)

◆ get_moment_magnitude()

def cubit.get_moment_magnitude (   entity_id )

BCの強さの瞬間の大きさを得る。



entity_id の型:int

パラメータ
entity_id BCの強力なパワー。

戻り値の型:float
戻り値
瞬間の大きさ

◆ get_n_largest_distances_between_meshes()

def cubit.get_n_largest_distances_between_meshes (   n,
  entity_type1,
  ids1,
  entity_type2,
  ids2 
)

最大のノードから要素の距離を2つのメッシュの間で見つける。

各ノードのエンティティに ids1 距離から近い要素まで計算します。 ids2 .

  * Only triangle and quad elements are supported. For a distance to be included:

      * The node and element must be sufficiently facing each other (dot product of normals < -0.65).
      * The distance must be smaller than the element's bounding box size.



  * The function returns the N largest such distances found. For each, the following are returned:

      * Distance between the node and element.
      * Node ID.
      * Element ID.



  * The result is a flat vector of 3 * N doubles, ordered by decreasing distance.

  * This function is useful for:

      * Checking mesh alignment between surfaces.
      * Identifying large mesh gaps.
      * Identifying overlapping regions where contact conditions are expected.



  * Overlapping meshes in such cases can cause problems in FEA analyses if not corrected.






.. code-block:: python
# Surface IDs for first mesh (source nodes)
ids1 = [1, 2]
# Surface IDs for second mesh (target elements)
ids2 = [3, 4]
distances = cubit.get_n_largest_distances_between_meshes (5, "surface" , ids1, "surface" , ids2)

for i in range(0, len(distances), 3): print("Distance:", distances[i], "Node ID:", int(distances[i+1]), "Element ID:", int(distances[i+2]))

  @n type of n:  int
パラメータ
n 最大の距離が戻ってくる。

entity_type1 の型:string
entity_type1 Entity 1つ目のmeshのタイプ(例: "surface")。

ids1 の型:std::vector< int,std::allocator< int > >
ids1 ノードのために使用するエンティティのID。

entity_type2 の型:string
entity_type2 Entity 2つ目のmeshのタイプ(例: "surface")。

ids2 の型:std::vector< int,std::allocator< int > >
ids2 要素のために使用するエンティティのID。
  @n return type of : std::vector< double,std:: allocator< double > >
戻り値
フラットベクトルの(距離、ノード ID、要素 ID)三角形、サイズ=3 * N。

◆ get_namespace_list()

def cubit.get_namespace_list ( )

◆ get_narrow_regions()

def cubit.get_narrow_regions (   target_ids,
  narrow_size 
)

指定されたボリュームの範囲内で狭い地域を含む顔を見つける。

すべてのユニークなボリュームの顔をtarget_idsに収集します。 それぞれの顔:

  • faceに境界loopが1つだけある場合、隣接していないエッジ同士がnarrow_size以内まで近づき、その間に短いvertex chainがない"split"位置を検索します。
  • faceに複数loopがある場合、loop間の最小距離を計算し、任意の2loopがnarrow_size以内ならそのfaceを含めます。いずれかの条件を満たすfaceを返します。

この機能は、すべての顔に適用することによってget_closed_narrow_surfacesと異なり、get_surfs_with_narrow_regionsは、単なるエッジパイア・オリエンテーションチェックの代わりに、分割点とロップ・トゥ・ロップの接近テストを使用することによって異なります。

.. code-block:: python
cubit.cmd ("cylinder radius 3 height 10" )
cubit.cmd ("modify curve 1 blend radius 0.5" )
cubit.cmd ("cylinder radius 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
narrow_thresh = 1.0
narrow_faces = cubit.get_narrow_regions ([1], narrow_thresh)
print(narrow_faces)
 @n type of target_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_ids 調査対象のボリュームIDのベクトル。

narrow_size の型:float
narrow_size 狭い地域を検出するための距離限界。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
狭い地域を含むサーフェスIDのベクトル

◆ get_narrow_surfaces()

def cubit.get_narrow_surfaces (   target_volume_ids,
  mesh_size 
)

指定されたボリュームで狭い地域を含むサーフェスを見つける。

target_volume_idsにおけるボリュームの各面については、いずれにせよ2つの非寄付のエッジが狭い領域(距離」 <=mesh_sizeと方向差 > 15deg)を形成しているかどうかを確認します。 この基準を満たすすべての顔IDを返します。

.. code-block:: python
volume_ids = [1, 2]
mesh_size = 0.1 # Distance threshold.
narrow_surfaces = cubit.get_narrow_surfaces (volume_ids, mesh_size)

for sid in narrow_surfaces: print("Narrow surface ID:", sid)

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

mesh_size の型:float
mesh_size 狭い地域を検出するための距離限界。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
狭い地域を含むサーフェスIDのベクトル

◆ get_nearby_entities()

def cubit.get_nearby_entities (   gtype,
  ent_ids,
  compare_ents,
  distance 
)

近くのエンティティをカーブ、サーフェス、またはボリュームのタイプで、同じタイプの特定のリストに指定します。

タイプのエンティティのリストを返す gtype 定められた範囲内にある distance エンティティの ent_ids 。 compare_ents 空っぽ、すべてのエンティティのタイプ gtype モデルは比較用に使用されます。

もし distance 「1」に設定されている場合、デフォルト許容差が内部で計算されます。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 10.5' ) # Move volume 2 slightly away from volume 1
gtype = "volume"
ent_ids = [1]
compare_ents = [] # Empty list = check against all volumes
distance = 1.0
nearby_ents = cubit.get_nearby_entities (gtype, ent_ids, compare_ents, distance)
print("Nearby volumes to volume 1:" )

for id in nearby_ents: print(id)

# Expected output:
# 2
 @n type of gtype:  string
パラメータ
gtype Entity queryするタイプ: "curve"、"surface"、または"volume"。

ent_ids の型:std::vector< int,std::allocator< int > >
ent_ids タイプのエンティティ gtype チェックする。

compare_ents の型:std::vector< int,std::allocator< int > >
compare_ents タイプのエンティティ gtype 反対をチェック。 空いている場合は、タイプのすべてのエンティティに対してチェックします。 gtype モデルで。

distance の型:float
distance エンティティ間の最大距離 -1の場合、デフォルト許容差が計算されます。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
エンティティタイプのIDのリスト gtype それが内側にある distance エンティティの ent_ids.

◆ get_nearby_volumes_at_volume()

def cubit.get_nearby_volumes_at_volume (   volume_id,
  compare_volumes,
  distances,
  progress = None 
)

近くのボリュームを、ターゲットボリュームのリストのモデルに指定します。

あらゆるボリュームに volume_id ボリュームのリストを返す compare_volumes (もしくは、モデル内のすべてのボリューム compare_volumes 空っぽ(指定された距離の範囲内にあるもの。

☆ ☆ ☆ ☆ distances ベクトルは、それぞれの関連するボリュームに使用する最大距離を指定します。 volume_id 」 値が -1 に設定された場合、そのボリュームのためにデフォルトの許容差が計算されます。

結果はvectorのvectorです。入力volumeごとに近傍volumeのリストを1つ持ちます: volume_id .

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 10.5' ) # Move volume 2 slightly away from volume 1
volume_ids = [1]
compare_volumes = [] # Empty list = check against all volumes
distances = [1.0] # Per-volume distance
nearby_volumes = cubit.get_nearby_volumes_at_volume (volume_ids, compare_volumes, distances)
print("Nearby volumes:" )

for i, near_list in enumerate(nearby_volumes): print(f"Volume {volume_ids[i]} nearby volumes:", " ".join(str(v) for v in near_list))

# Expected output:
# Volume 1 nearby volumes: 2
 @n type of volume_id:  std::vector< int,std::allocator< int > >
パラメータ
volume_id チェックするためのボリュームIDのリスト

compare_volumes の型:std::vector< int,std::allocator< int > >
compare_volumes チェックするためのボリュームのリスト空いている場合は、モデル内のすべてのボリュームに対してチェックします。

distances の型:std::vector< double,std::allocator< double > >
distances 最大距離はボリュームで使用できます。 volume_id」 値が -1 である場合、デフォルトの許容差が計算されます。

progress の型::py:class: CubitProgressHandlerオプション
progress オプションの進歩が行われる。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
ベクトルのベクトルあらゆるボリュームに volume_id近くのボリュームIDのリストを返します。 compare_volumes.

◆ get_next_block_id()

def cubit.get_next_block_id ( )

次の利用可能なブロックIDを取得します。

.. code-block:: python

cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 2 mov x 10" )
# Create blocks and assign volumes
cubit.cmd ("block 10 vol 1" )
cubit.cmd ("block 20 vol 2" )
print("Next available block ID:" , next_id)
# Expected output:
# Next available block ID: 21
 @n return type of :  int
戻り値
次の利用可能なブロックID

◆ get_next_boundary_layer_id()

def cubit.get_next_boundary_layer_id ( )

次の利用可能な境界層IDを取得します。

このIDは、新しい境界層のエンティティを定義するために使用できます。

戻り値の型:int

戻り値
次の利用可能なユニークな境界層ID。

◆ get_next_command_from_history()

def cubit.get_next_command_from_history ( )

次のコマンドを歴史バッファーから取得します。

内部の歴史指標を進め、次のコマンドを返します。

.. code-block:: python
import cubit
print(next_cmd)
 @n return type of :  string
戻り値
次のコマンドは、歴史の順序。

◆ get_next_group_id()

def cubit.get_next_group_id ( )

次の利用可能なグループIDをCubitから返します。

.. code-block:: python

# Initialize geometry.
cubit.cmd ("brick x 10" )
# Retrieve the next free group ID (should be 2).
print("Next group ID:" , next_id) # prints "Next group ID: 2"
# Create a new group; it will use the next available ID.
cubit.cmd ("group \"vert_group\" add vert in vol 1" )
# Verify assignment by fetching the ID from the group name.
vert_group_id = cubit.get_id_from_name ("vert_group" )
print("vert_group ID:" , vert_group_id) # prints "vert_group ID: 2"
 @n return type of :  int
戻り値
次のグループのための未使用の全身ID。

◆ get_next_nodeset_id()

def cubit.get_next_nodeset_id ( )

次の利用可能なノードセットIDを取得します。

.. code-block:: python

cubit.cmd ("brick x 10" )
cubit.cmd ("nodeset 30 vertex 1 2" )
cubit.cmd ("nodeset 31 vertex 3 4" )
print("Next available nodeset ID:" , next_id)
# Expected output:
# Next available nodeset ID: 32
 @n return type of :  int
戻り値
次の利用可能なノードセットID。

◆ get_next_sideset_id()

def cubit.get_next_sideset_id ( )

次の利用可能なサイドセットIDを取得します。

.. code-block:: python

cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 20 surface 1" )
cubit.cmd ("sideset 21 surface 2" )
print("Next available sideset ID:" , next_id)
# Expected output:
# Next available sideset ID: 22
 @n return type of :  int
戻り値
次の利用可能なサイドセットID。

◆ get_nodal_coordinates()

def cubit.get_nodal_coordinates (   node_id )

メッシュノードの座標を取得します。

この機能は、指定されたノードIDの座標(x、y、z)を返します。 C++ では、座標は std::array <double,3> として返します。 Pythonでは、座標は3つのフラットのトップルとして返されます。

.. code-block:: python
# Create a brick and mesh its volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Get coordinates of node 1
print(f"Node 1 at ({coords[0]}, {coords[1]}, {coords[2]})" )
 @n type of node_id:  int
パラメータ
node_id ノードのアイドル

戻り値の型:std:: array< double,3 >
戻り値
: ノードの座標のx、y、zを倍増する3つの順序(またはトップル)。

◆ get_node_constraint()

def cubit.get_node_constraint ( )

ノード制限が有効であるかどうかを問う(中間ノードをジオメトリに移動する)。

ノードの制限は、より高いオーダーのノードのスナップがジオメトリにどのように曲がるかをコントロールします。

  • オフ:中間ノードは元の位置を保持します。
  • 中間ノードはジオメトリにプロジェクトされます。
  • スマート:中間のノードはスナップのみで、そうすれば「要素品質」を低下させない。
.. code-block:: python
# Enable node constraint (mid-nodes snap).
cubit.cmd ("set Node Constraint on" )
enabled = cubit.get_node_constraint () # returns True
print("Node constraint enabled:" , enabled)
# Disable node constraint.
cubit.cmd ("set Node Constraint off" )
enabled = cubit.get_node_constraint () # returns False
print("Node constraint enabled:" , enabled)
 @n return type of :  boolean
戻り値
node constraintが"on"または"smart"ならtrue、それ以外はfalse。

◆ get_node_constraint_smart_metric()

def cubit.get_node_constraint_smart_metric ( )

ノード制限のための現在の品質指標を検索します。

tetまたはtriでnode constraintが"smart" modeの場合、snappingを制御するmetricとして"distortion"または"normalized inradius"を返します。

.. code-block:: python
# Set smart mode with normalized inradius metric.
cubit.cmd ("set Node Constraint SMART tet quality normalized inradius threshold 0.2" )
metric = cubit.get_node_constraint_smart_metric () # returns "normalized inradius"
print("Smart metric:" , metric)
 @n return type of :  string
戻り値
smart modeで使用する品質指標名("distortion"または"normalized inradius")。

◆ get_node_constraint_smart_threshold()

def cubit.get_node_constraint_smart_threshold ( )

スマートノード制限の現在の品質制限を調べる。

node constraintが"smart" modeの場合、element qualityがこのしきい値を上回るときだけmid-nodeを投影します。

.. code-block:: python
# Set smart mode with threshold 0.25.
cubit.cmd ("set Node Constraint SMART tet quality normalized inradius threshold 0.25" )
print("Smart threshold:" , thr)
 @n return type of :  float
戻り値
スマートモード(ダブルモード)に使用される品質の限界。

◆ get_node_constraint_value()

def cubit.get_node_constraint_value ( )

ノード制限設定の数値値を調べる。

offなら0、onなら1、smartなら2を返します。"set Node Constraint"オプションに対応します。

.. code-block:: python
# Set to on.
cubit.cmd ("set Node Constraint on" )
mode = cubit.get_node_constraint_value () # returns 1
print("Node constraint mode:" , mode)
 @n return type of :  int
戻り値
0 もしオフなら 1 もしオンなら 2 もしスマートなら

◆ get_node_count()

def cubit.get_node_count ( )

現在のモデルでノードの数を回収します。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("mesh vol 1" ) # mesh volume 1
node_count = cubit.get_node_count ()
print("Node count:" , node_count)
 @n return type of :  int
戻り値
現在のモデルのメッシュのノードの数。

◆ get_node_edges()

def cubit.get_node_edges (   node_id )

ノードに付属するすべてのエッジの要素のIDを取得します。

エッジの要素は、マッジされたカーブとマッジされたサーフェス全体で作成されますが、内部のボリュームのメッシュでは作成されません。 ノードは、いかなるカーブやサーフェスにも付属するエッジもありません。

.. code-block:: python
# Create a brick and mesh a curve with equal spacing
cubit.cmd ("brick x 10" )
cubit.cmd ("curve 1 scheme equal" )
cubit.cmd ("mesh curve 1" )
# Query edge elements adjacent to node 1
edges = cubit.get_node_edges (1)
print(f"Node 1 is adjacent to {len(edges)} edge(s):" , edges)
 @n type of node_id:  int
パラメータ
node_id ノードのアイドル

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
エッジの要素IDのリストはノードに近い(いない場合は空白)。

◆ get_node_exists()

def cubit.get_node_exists (   node_id )

モデルにノードがあるかどうかを確認します。

この機能が戻ってくる。 true 指定されたノードIDが現在のモデルに存在する場合、そうでなければ返信されます。 false .

.. code-block:: python
# Create geometry and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Check if node 1 exists
exists = cubit.get_node_exists (1)
print(f"Node 1 exists? {'Yes' if exists else 'No'}" )
 @n type of node_id:  int
パラメータ
node_id ノードのIDをチェックする

戻り値の型:boolean
戻り値
true もしノードが存在するなら、 false 別に。

◆ get_node_faces()

def cubit.get_node_faces (   node_id )

ノードに隣接するすべての四方的な要素(顔)のIDを取得します。

Cubitでは"face"はサーフェス上のquad要素として表現されます。ボリューム内部のノードについては隣接faceは返されません。

.. code-block:: python
# Create and mesh a brick volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query quad faces adjacent to an interior node
quads = cubit.get_node_faces (1)
print(f"Node 1 is adjacent to {len(quads)} quad(s)." ) # likely 0
# Mesh the surface and query again
cubit.cmd ("surface 1 mesh" )
quads = cubit.get_node_faces (1)
print(f"After surface mesh, Node 1 is adjacent to {len(quads)} quad(s):" , quads)
 @n type of node_id:  int
パラメータ
node_id ノードのアイドル

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノード(ノード)に近い四要素のID(顔)のリスト(いずれにせよ空白)。

◆ get_node_global_id()

def cubit.get_node_global_id (   node_id )

Exodusファイルに割り当てられたグローバルノードIDをメッシュのノードに取得します。

Cubitでは、セッション内の各ノードにユニークなローカルIDがあります。 メッシュをExodusファイルに輸出すると、ノードは1からNまでのグローバルIDスペースに改名されます。 この機能は、指定されたローカルノードIDのExodusグローバルノードID、またはメッシュが輸出されていない場合、0を返します。

.. code-block:: python
# Create and mesh a brick volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Before export, no global node IDs exist
print(f"Global node ID of node 1 before export: {gid}" ) # prints 0
# Export mesh to assign global node IDs
cubit.cmd ("export mesh \"model.exo\"" )
# After export, global and local node IDs match
print(f"Global node ID of node 1 after export: {gid}" ) # prints 1
 @n type of node_id:  int
パラメータ
node_id 地元のCubitノードID。

戻り値の型:int
戻り値
Exodusファイルに割り当てられたグローバルノードID、またはまだ輸出されていない場合、0。

◆ get_node_position_fixed()

def cubit.get_node_position_fixed (   node_id )

メッシュのノードが固定されているかどうかを尋ねる(スムージングに対して制限されている)。

固定ノードはメッシュスムージングまたは最適化操作によって移動されません。

.. code-block:: python
# Create a brick and set up tetmeshing on volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Fix all nodes on surface 1
cubit.cmd ("node in surface 1 position fixed" )
# Attempt to smooth all surfaces
cubit.cmd ("smooth surface all" )
# Get the center point of surface 1
center = cubit.get_center_point ("surface" , 1)
# Find the node closest to that center and check its fixed state
node_id = cubit.get_closest_node (*center)
is_fixed = cubit.get_node_position_fixed (node_id)
print(f"Node {node_id} fixed? {is_fixed}" ) # Expected: True
 @n type of node_id:  int
パラメータ
node_id ノードのアイデンティティを尋ねる。

戻り値の型:boolean
戻り値
true もしノードが固定(制限)された場合、 false もしそうでないなら

◆ get_node_tris()

def cubit.get_node_tris (   node_id )

ノードに隣接するすべての三角的な要素のIDを取得します。

Cubitでは三角形の"face"はサーフェス上のtriとして表現されます。ボリューム内部のノードについては隣接triは返されません。

.. code-block:: python
# Create a brick and mesh its surfaces with triangles
cubit.cmd ("brick x 10" )
cubit.cmd ("surface 1 scheme trimesh" )
cubit.cmd ("mesh surface 1" )
# Query triangular faces (tris) adjacent to node 1
tris = cubit.get_node_tris (1)
print(f"Node 1 is adjacent to {len(tris)} tri(s):" , tris)
 @n type of node_id:  int
パラメータ
node_id ノードのアイドル

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードに近い三角的な要素ID(tris)のリスト(いずれにせよ空白)。

◆ get_nodeset_count()

def cubit.get_nodeset_count ( )

モデルにノードセットの現在の番号を入力します。

Cubitでは、ノードセットのグループのメッシュのノードが、制限条件または負荷を適用します。 ノードセットは、特定のIDに「頂点」、カーブ、サーフェス、ボリューム、または個々のノードを割り当てることによって定義することができます。

.. code-block:: python
# Create and mesh a brick; nodes are generated on volume 1.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume 1" )
# Define nodeset 201 to include nodes on surface 1.
cubit.cmd ("Nodeset 201 add surface 1" )
# get_nodeset_count() returns 1.
print("Nodeset count:" , count) # prints 1
 @n return type of :  int
戻り値
モデルで現在定義されているノードセットの数。

◆ get_nodeset_curves()

def cubit.get_nodeset_curves (   nodeset_id )

ノードセットと関連付けられたカーブIDのリストを取得します。

この機能は、指定されたノードセットと関連付けられているすべてのカーブのIDを返します。

.. code-block:: python
# Create a brick and assign curves in volume 1 to nodeset 30
cubit.cmd ("brick x 10" )
cubit.cmd ("nodeset 30 curve in vol 1" )
# Query the curves in nodeset 30
curve_ids = cubit.get_nodeset_curves (30)
print(f"Nodeset 30 contains {len(curve_ids)} curve(s)." )

for curve_id in curve_ids: print(f" Curve ID: {curve_id}")

  @n type of nodeset_id:  int
パラメータ
nodeset_id ノードセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードセットに含まれるカーブIDのリスト。

◆ get_nodeset_id_list()

def cubit.get_nodeset_id_list ( )

すべてのアクティブなノードセットIDのリストを取得します。

モデル内のすべての現在アクティブなノードセットIDのベクトルを返します。

.. code-block:: python
# Create geometry
cubit.cmd ("brick x 10" )
# Create nodesets on vertices
cubit.cmd ("nodeset 30 vertex 1 2" )
cubit.cmd ("nodeset 31 vertex 3 4" )
# Query all active nodeset IDs
nodeset_ids = cubit.get_nodeset_id_list ()
# Print the nodeset IDs
print("Active nodeset IDs:" )

for nodeset_id in nodeset_ids: print(" Nodeset ID:", nodeset_id)

# Expected output (example):
# Active nodeset IDs:
# Nodeset ID: 30
# Nodeset ID: 31



戻り値の型:std::vector< int,std:: allocator< int > >

戻り値
すべてのアクティブなノードセットIDのベクトル(Pythonトップ)

◆ get_nodeset_id_list_for_bc()

def cubit.get_nodeset_id_list_for_bc (   bc_type_enum,
  bc_id 
)

限界状態に関連するノードセットIDのリストを取得します。

ノードセットは、BCが適用されるものに戻ります。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型エンム(CI_BCTypes)

bc_id の型:int
bc_id 境界条件の識別

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
関連するノードセットIDのリスト。

◆ get_nodeset_node_count()

def cubit.get_nodeset_node_count (   nodeset_id )

ノードセットにノードセットの番号を入力します。



nodeset_id の型:int

パラメータ
nodeset_id ノードセットID

戻り値の型:int
戻り値
ノードセットのノードセットの数

◆ get_nodeset_nodes()

def cubit.get_nodeset_nodes (   nodeset_id )

ノードセットに明示的に割り当てられたノードIDのリストを取得します。

この機能は、ノードセットに具体的に割り当てられたノードのIDを返します。

ノードセットがジオメトリに作成された場合(‘e.g.’) サーフェスまたはボリュームで、この機能は ノー return the nodes on that geometry unless they were explicitly assigned. To include nodes on geometry, use 'get_nodeset_nodes_inclusive' instead.

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign nodes from surface 1 to nodeset 50
cubit.cmd ("nodeset 50 node in surface 1" )
# Query the nodes in nodeset 50
node_ids = cubit.get_nodeset_nodes (50)
print(f"Nodeset 50 contains {len(node_ids)} node(s)." )

for node_id in node_ids: print(f" Node ID: {node_id}")

  @n type of nodeset_id:  int
パラメータ
nodeset_id ノードセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードセットに明示的に割り当てられたノードIDのリスト。

◆ get_nodeset_nodes_inclusive()

def cubit.get_nodeset_nodes_inclusive (   nodeset_id )

ノードセット(含む)と関連付けられたノードIDのリストを取得します。

この機能は、指定されたノードセットに関連するすべてのノードのIDを返します。 それは含む:

  • ノードはノードセットに明確に割り当てられています。
  • ノードはノードセットを定義するために使用されたあらゆるジオメトリと関連付けられています。 サーフェスまたはボリューム

この機能を使用するとノードセットがジオメトリを使用して作成され、 関連するすべてのノード 」 単に明示的に割り当てられたノードについては、get_nodeset_nodesを参照してください。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Create nodeset 50: assign nodes from surface 1
cubit.cmd ("nodeset 50 node in surface 1" )
# Add surface 6 to nodeset 50 (nodes on surface 6 will also be included)
cubit.cmd ("nodeset 50 add surface 6" )
# Query the nodes in nodeset 50 (inclusive)
print(f"Nodeset 50 (inclusive) contains {len(node_ids)} node(s)." )

for node_id in node_ids: print(f" Node ID: {node_id}")

  @n type of nodeset_id:  int
パラメータ
nodeset_id ノードセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードセットに含まれるノードIDのリスト、関連するジオメトリのノードを含む。

◆ get_nodeset_surfaces()

def cubit.get_nodeset_surfaces (   nodeset_id )

ノードセットと関連付けられたサーフェスIDのリストを取得します。

この機能は、指定されたノードセットと関連付けられているすべてのサーフェスのIDを返します。

.. code-block:: python
# Create a brick and assign surfaces 1 to 6 to nodeset 20
cubit.cmd ("brick x 10" )
cubit.cmd ("nodeset 20 surface 1 to 6" )
# Query the surfaces in nodeset 20
surface_ids = cubit.get_nodeset_surfaces (20)
print(f"Nodeset 20 contains {len(surface_ids)} surface(s)." )

for surf_id in surface_ids: print(f" Surface ID: {surf_id}")

  @n type of nodeset_id:  int
パラメータ
nodeset_id ノードセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードセットに含まれるサーフェスIDのリスト。

◆ get_nodeset_vertices()

def cubit.get_nodeset_vertices (   nodeset_id )

ノードセットと関連付けられた「頂点」IDのリストを取得します。

この機能は、指定されたノードセットと関連付けられているすべての頂点のIDを返します。

.. code-block:: python
# Create a brick and assign vertices in volume 1 to nodeset 40
cubit.cmd ("brick x 10" )
cubit.cmd ("nodeset 40 vertex in vol 1" )
# Query the vertices in nodeset 40
vertex_ids = cubit.get_nodeset_vertices (40)
print(f"Nodeset 40 contains {len(vertex_ids)} vertex(s)." )

for vertex_id in vertex_ids: print(f" Vertex ID: {vertex_id}")

  @n type of nodeset_id:  int
パラメータ
nodeset_id ノードセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードセットに含まれる「頂点」IDのリスト。

◆ get_nodeset_volumes()

def cubit.get_nodeset_volumes (   nodeset_id )

ノードセットと関連付けられたボリュームIDのリストを取得します。

この機能は、指定されたノードセットと関連付けられているすべてのボリュームのIDを返します。

.. code-block:: python
# Create a brick and assign volume 1 to nodeset 1
cubit.cmd ("brick x 10" )
cubit.cmd ("nodeset 1 vol 1" )
# Query the volumes in nodeset 1
volume_ids = cubit.get_nodeset_volumes (1)
print(f"Nodeset 1 contains {len(volume_ids)} volume(s)." )

for vol_id in volume_ids: print(f" Volume ID: {vol_id}")

  @n type of nodeset_id:  int
パラメータ
nodeset_id ノードセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ノードセットに含まれるボリュームIDのリスト。

◆ get_num_volume_shells()

def cubit.get_num_volume_shells (   volume_id )

シェル数をボリュームで取得します。

"shell"は、ボリューム内部の領域を囲む閉じた面集合です。内部キャビティのない単純なソリッドでは1を返します。ボリュームに空洞や入れ子領域がある場合は、各閉境界を別々のshellとして数えます。

.. code-block:: python
# Create two bricks: volume 1 (10x10x10) and volume 2 (5x5x5).
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
# Subtract the smaller brick from the larger one, creating a cavity inside volume 1.
cubit.cmd ("subtract vol 2 from vol 1" )
# Now volume 1 has 2 shells: the outer boundary and the inner cavity.
shells = cubit.get_num_volume_shells (1) # returns 2
print("Volume 1 shells:" , shells)
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:int
戻り値
シールの数(指示されたボリュームに閉じ込められた顔の穴)

◆ get_overconstrained_tets_in_volumes()

def cubit.get_overconstrained_tets_in_volumes (   volumes )

指定されたボリュームの範囲内で過剰に制限されたテトラヘドラのIDを取得します。

過剰に閉じ込められたテトラヘドラは、同じサーフェスに二つの三角形の顔があり、すべての四角のノードがサーフェス、カーブ、または頂点に位置しています。 このような四面体要素は、柔らかくなることはできず、通常はメッシュ品質を向上させるために削除されます。



volumes の型:std::vector< int,std::allocator< int > >

パラメータ
volumes ボリュームIDのベクトルは、過剰に四面体要素を検索するためです。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
std::ベクトル<int> すべての超限の四面体要素の ID を含む発見されました。
.. code-block:: python
import cubit
# 1) Create and mesh a spherical volume (Volume ID = 1).
cubit.cmd ("create sphere rad 1" ) # Create a sphere of radius 1 (volume ID = 1)
cubit.cmd ("volume 1 scheme tetmesh" ) # Apply TetMesh scheme to volume 1
cubit.cmd ("mesh volume 1" ) # Generate tetrahedral mesh
# 2) Identify overconstrained tets in volume 1.
vols = [1]

if over_tets:

3)全体的なリストをスペース分離のストレッチに変換する。

ids_str = cubit.string_from_id_list(over_tets)

# 4) Remove all overconstrained tets.
cubit.cmd (f"remove overconstrained tet {ids_str}" )
print(f"Removed overconstrained tets: {ids_str}" )

else:

print("No overconstrained tets found in volume 1." )

◆ get_overlap_max_angle()

def cubit.get_overlap_max_angle ( )

現在の最大角度許容差を「サーフェス」の過剰を計算するために使用する。

隣接する「サーフェス」の正常の間で許可される最大角度(グレード)を返す。 この設定では、「表面」が非過剰なものとみなされる前に、どのくらいの角度の偏差が容認されるかを制御します。

.. code-block:: python
# Retrieve the default max angle setting.
print("Current overlap max angle:" , max_angle)
 @n return type of :  float
戻り値
現在の最大角度許容差(グレード)は「サーフェス」の表面計算に使用される。

◆ get_overlap_max_gap()

def cubit.get_overlap_max_gap ( )

現在の最大差許容差を取得し、「サーフェス」の過剰を計算するために使用される。

隣接するサーフェスの間の最大可能な格差を回復し、過剰を決定します。 この設定では、「表面」が非過剰なものとみなされる前に、どの程度の格差が容認されるかを制御します。

.. code-block:: python
# Retrieve the default max gap setting.
print("Current overlap max gap:" , max_gap)
 @n return type of :  float
戻り値
現在の最大差は許容差(モデルユニット)で「サーフェス」の過剰計算に使用される。

◆ get_overlap_min_gap()

def cubit.get_overlap_min_gap ( )

現在の最低差許容差を取得し、「サーフェス」の過剰を計算するために使用される。

隣接するサーフェスの間の最低限の許可範囲を回復し、上昇を決定します。 この設定は、無視可能な格差を無視するために使用することができ、それらは過剰に扱われるべきです。

.. code-block:: python
# Retrieve the default min gap setting.
print("Current overlap min gap:" , min_gap)
 @n return type of :  float
戻り値
現在の最低差は許容差(モデルユニット)がサーフェスの過剰計算に使用されている。

◆ get_overlapping_surfaces_at_surface()

def cubit.get_overlapping_surfaces_at_surface (   surface_id,
  compare_volumes,
  cache_overlaps = 0 
)

単一のターゲットサーフェスを超えるモデルでサーフェスを特定します。

指定された表面を超えるサーフェスのリストを返す surface_id 。 compare_volumes 空っぽで、モデル内のすべてのボリュームは比較に使用されます。

キャッシングは、この機能が呼ばれるときに距離計算を回避するために使用することができます。 get_overlapping_surfaces_in_volumes 」 両方の機能は、指定されたボリュームにおける「サーフェス」間の同じ距離計算を必要とします。 キャッシングが有効になった場合、これらの距離計算の結果は、2番目の機能が呼ばれるときに保存され、再利用されます。 あなたがこの機能だけを呼び出している場合、キャッシングはパフォーマンスの利点を提供しません。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 10' ) # Move volume 2 exactly next to volume 1
surface_id = 6 # Example surface on volume 1
compare_volumes = [] # Empty list = check against all volumes
overlapping_surfaces = cubit.get_overlapping_surfaces_at_surface (surface_id, compare_volumes, 0)
print(f"Surfaces overlapping surface {surface_id}:" )

for s_id in overlapping_surfaces: print(s_id)

# Expected output:
# 10
 @n type of surface_id:  int
パラメータ
surface_id Surface IDをチェックする

compare_volumes の型:std::vector< int,std::allocator< int > >
compare_volumes チェックするためのボリュームのリスト空いている場合は、モデル内のすべてのボリュームに対してチェックします。

cache_overlaps の型:int, optional
cache_overlaps キャッシュモード: 0 = キャッシュなし、1 = 最初にキャッシュをクリア、2 = 既存キャッシュを使用しつつ追加。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
指定されたサーフェスを超えるIDのリスト surface_id.

◆ get_overlapping_surfaces_in_bodies()

def cubit.get_overlapping_surfaces_in_bodies (   body_ids,
  filter_slivers = False 
)

ボディのセットで異なるボリュームの間で「サーフェス」を超えることを特定します。

サーフェスからサーフェスからサーフェスから 異なるボリューム 」 結果はベクトルのベクトルです。 それぞれのベクトルにおける最初のサーフェスIDは、そのベクトルにおけるその後のすべてのサーフェスを超えています。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 10' ) # Move volume 2 to overlap with volume 1
body_ids = [1, 2]
print("Overlapping surfaces:" )

for surfaces in overlaps: print("Surfaces:", tuple(int(sid) for sid in surfaces))

# Expected output:
# Surfaces: (6, 10)
# Surfaces: (10, 6)



body_ids の型:std::vector< int,std::allocator< int > >

パラメータ
body_ids ボディIDのリストでサーフェスを検索します。

filter_slivers の型:boolean, optional
filter_slivers サーフェスが合併したカーブを共有するオプションフラッグをフィルタリングする。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
サーフェスを超える結果のリスト。 各エントリーはサーフェスIDのベクトルであり、最初のIDはそのベクトルに含まれるすべてのその後のIDを含む。 表面は、異なるボリュームから「表面」の間のみ報告されます。

◆ get_overlapping_volumes()

def cubit.get_overlapping_volumes (   target_volume_ids )

ボリュームのリストでボリュームを超えることを特定します。

ボリュームを超えるカップルごとに、2つのボリュームIDが出力リストに戻されます。 最初のボリュームIDは、第2のIDを上回り、第3のIDは、第4のIDを上回り、その他。 リストには常にボリュームID(モジュール2=0)の均等数が含まれなければなりません。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 9.5' ) # Move volume 2 to overlap with volume 1
target_volumes = [1, 2]
overlapping_volumes = cubit.get_overlapping_volumes (target_volumes)
print("Overlapping volumes:" )

for i in range(0, len(overlapping_volumes), 2): print(f"Volumes: ({overlapping_volumes[i]}, {overlapping_volumes[i+1]})")

# Expected output:
# Volumes: (1, 2)
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids チェックするためのボリュームIDのリスト。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームIDを超えるリスト。 最初のIDは第2のID、第3は第4のID、およびその他のIDを上回る。

◆ get_overlapping_volumes_at_volume()

def cubit.get_overlapping_volumes_at_volume (   volume_id,
  compare_volumes 
)

単一のターゲットボリュームを超えるモデルでボリュームを特定します。

指定された範囲を超えるボリュームのリストを返します。 volume_id 。 compare_volumes 空っぽで、モデル内のすべてのボリュームは比較に使用されます。

.. code-block:: python
cubit.cmd ('brick x 10' ) # Create volume 1
cubit.cmd ('brick x 10' ) # Create volume 2
cubit.cmd ('vol 2 mov x 9.5' ) # Move volume 2 to overlap with volume 1
volume_id = 1
compare_volumes = [] # Empty list = check against all volumes
overlapping_volumes = cubit.get_overlapping_volumes_at_volume (volume_id, compare_volumes)
print(f"Volumes overlapping volume {volume_id}:" )

for v_id in overlapping_volumes: print(v_id)

# Expected output:
# 2
 @n type of volume_id:  int
パラメータ
volume_id Volume IDをチェックする

compare_volumes の型:std::vector< int,std::allocator< int > >
compare_volumes チェックするためのボリュームのリスト空いている場合は、モデル内のすべてのボリュームに対してチェックします。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームIDのリストは、指定されたIDを超える volume_id.

◆ get_owning_body()

def cubit.get_owning_body (   geometry_type,
  entity_id 
)

特定のエンティティのために所有するボディを取得します。

返信するボディのID(オーナー)は、そのエンティティを含む。

.. code-block:: python
# Create a 10x10x10 brick (body 1).
cubit.cmd ("brick x 10" )
# Query the owning body for curve 12.
body_id = cubit.get_owning_body ("curve" , 12) # returns 1
print("Owning body of curve 12:" , body_id)
 @n type of geometry_type:  string
パラメータ
geometry_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")を指定します。

entity_id の型:int
entity_id ボディを所有するエンティティのIDが要求されます。

戻り値の型:int
戻り値
指定されたエンティティを所有するボディのID(もしくは 0 がない場合)。

◆ get_owning_volume()

def cubit.get_owning_volume (   geometry_type,
  entity_id 
)

指定されたエンティティのために所有するボリュームを取得します。

指定されたエンティティを含むボリュームのIDを返します。

.. code-block:: python
# Create a 10x10x10 brick (volume 1).
cubit.cmd ("brick x 10" )
# Query the owning volume for curve 12.
volume_id = cubit.get_owning_volume ("curve" , 12) # returns 1
print("Owning volume of curve 12:" , volume_id)
 @n type of geometry_type:  string
パラメータ
geometry_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")を指定します。

entity_id の型:int
entity_id ボリュームを所有するエンティティのIDが要求されます。

戻り値の型:int
戻り値
指定されたエンティティを所有するボリュームのID(もしくは 0 がない場合)。

◆ get_owning_volume_by_name()

def cubit.get_owning_volume_by_name (   entity_name )

エンティティの所有するボリュームをその名前で取得します。

.. code-block:: python

# Create a brick and name one surface.
cubit.cmd ("brick x 10" )
cubit.cmd ("surface 1 name 'TipSurface'" )
volume_id = cubit.get_owning_volume_by_name ("TipSurface" )
print("Owning volume:" , volume_id) # prints 1
 @n type of entity_name:  string
パラメータ
entity_name Cubitで定義されたエンティティの名前。

戻り値の型:int
戻り値
いわゆるエンティティを所有するボリュームのID、または名称が見つからない場合の0。

◆ get_parent_assembly_instance()

def cubit.get_parent_assembly_instance (   assembly_id )

会議のノードの親の例番号を取得します。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:int
戻り値
親子番号です。

◆ get_parent_assembly_path()

def cubit.get_parent_assembly_path (   assembly_id )

ノードの親のパスを取得します。



assembly_id の型:int

パラメータ
assembly_id アセンブリノードのID。

戻り値の型:string
戻り値
親のパスストリップ

◆ get_pick_filters()

def cubit.get_pick_filters ( )

エンティティタイプのリストを復元し、現在、選択することを許可しています。

すべてのタイプをアクティブなピックフィルターに戻します。 これらのタイプのエンティティだけがグラフィックウィンドウで選択できます。

.. code-block:: python
import cubit
filters = cubit.get_pick_filters ()

for t in filters: print("Pick filter:", t)

  @n return type of : std::vector< std::string,std::allocator< std:: string > >
戻り値
ベクトルは、現在のピックフィルタータイプを指定する線の種類です。

◆ get_pick_type()

def cubit.get_pick_type ( )

エンティティの選択のための現在の選択モードを取得します。

選択のためにグラフィックシステムが使用しているピックタイプを返します。 これはGUIアイコンと一致し、vertex、curve、surface、volume、node、edge、faceなどの一つかもしれません。

.. code-block:: python
import cubit
print("Current pick mode:" , mode)
# Retrieve selected entities of that type

for id in ids: print(f"Selected {mode}: {id}")

  @n return type of :  string
戻り値
Null-terminated string は、現在の pick タイプを名付けます。

◆ get_pressure_function()

def cubit.get_pressure_function (   entity_id )

BC圧力に関連する機能表現を得る。



entity_id の型:int

パラメータ
entity_id プレッシャーのID BC

戻り値の型:string
戻り値
圧力はストレッチとして機能します。

◆ get_pressure_value()

def cubit.get_pressure_value (   entity_id )

圧力BCの大きさ値を取得します。



entity_id の型:int

パラメータ
entity_id プレッシャーのID BC

戻り値の型:float
戻り値
圧力の大きさ

◆ get_previous_command_from_history()

def cubit.get_previous_command_from_history ( )

歴史バッファーから前のコマンドを取得します。

内部の歴史を後ろに指示し、そのコマンドを返します。

.. code-block:: python
import cubit
print(prev_cmd)
 @n return type of :  string
戻り値
前回のコマンドは、歴史の順序。

◆ get_protrusion_surfaces()

def cubit.get_protrusion_surfaces (   surface_id )

サーフェスを指定されたサーフェスに結びついたプロトゥーズに戻します。

この機能は、そのサーフェスと同じプロトゥーズ「フィーチャ」に属するサーフェスIDのリストを返します。 surface_idの入力はプロトゥーシュの一部でなければなりません。 その結果にはsurface_id自体が含まれています。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("unite volume 1 2" )
surf_id = 17
protrusion_surfs = cubit.get_protrusion_surfaces (surf_id)
print("Protrusion surfaces:" , tuple(protrusion_surfs))
# Expected output (example):
# Protrusion surfaces: (17, 19, 20, 21, 22, 23)



surface_id の型:int

パラメータ
surface_id Surface プロトリウムの一部であるIDです。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
プロトリウスに属するサーフェスIDのリスト(surface_idを含む)

◆ get_pyramid_count()

def cubit.get_pyramid_count ( )

現在のモデルにおけるピラミッド要素の数を回収します。

.. code-block:: python

cubit.cmd ("brick x 10" ) # Volume ID = 1
cubit.cmd ("brick x 10" ) # Volume ID = 2
cubit.cmd ("vol 1 mov x 10" ) # move volume 1 to abut volume 2
cubit.cmd ("merge all" ) # merge volumes
cubit.cmd ("vol 1 scheme map" ) # hex mesh for volume 1
cubit.cmd ("mesh vol 1" )
cubit.cmd ("vol 2 scheme tetmesh" ) # tet mesh for volume 2
cubit.cmd ("mesh vol 2" )
# pyramids are generated at the interface to join hex and tet elements
pyramid_count = cubit.get_pyramid_count ()
print("Pyramid count:" , pyramid_count)
 @n return type of :  int
戻り値
ピラミッドの要素の数は、現在のモデルのメッシュです。

◆ get_pyramid_global_element_id()

def cubit.get_pyramid_global_element_id (   pyramid_id )

特定のピラミッドの要素のためのグローバル要素IDを取得します。

この機能は、要素がブロックに置かれたときに、その地元のピラミッドIDに割り当てられたグローバル要素IDを返します。

.. code-block:: python
# Create two volumes and generate pyramids at their interface
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10" )
cubit.cmd ("merge all" )
# Mesh volume 1 with mapped hexes
cubit.cmd ("vol 1 scheme map" )
cubit.cmd ("mesh vol 1" )
# Mesh the other side with tetmeshing to create pyramids
cubit.cmd ("vol 2 scheme tetmesh" )
cubit.cmd ("mesh vol 2" )
# Assign all pyramid elements to block 1
cubit.cmd ("block 1 pyramid all" )
# Query the Global Element ID of local pyramid 22
print("Global Element ID of pyramid 22:" , gid)
 @n type of pyramid_id:  int
パラメータ
pyramid_id 地元のピラミッド要素IDはそのタイプの範囲内です。

戻り値の型:int
戻り値
グローバル要素IDは、指定されたピラミッドの場合、またはブロックに置かれていない場合、0です。

◆ get_python_version()

def cubit.get_python_version ( )

Pythonの翻訳バージョンをCubitによって使用します。

Pythonの翻訳器のバージョンラインをCubitに戻します。

.. code-block:: python
import cubit
python_version = cubit.get_python_version ()
print("Python version:" , python_version)
 @n return type of :  string
戻り値
Pythonのバージョン番号を含むシート。

◆ get_quad_count()

def cubit.get_quad_count ( )

現在のモデルにおける四方的な要素の数を回収します。

六面体のボリュームのメッシュの場合、これは「サーフェス」の四面の数を返します。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("vol 1 scheme map" ) # set hex scheme
cubit.cmd ("mesh vol 1" ) # mesh as hexes (surface faces are quads)
quad_count = cubit.get_quad_count ()
print("Quad count:" , quad_count)
 @n return type of :  int
戻り値
四面要素の数(六面体要素のサーフェス、メッシュの表面)

◆ get_quad_global_element_id()

def cubit.get_quad_global_element_id (   quad_id )

グローバル要素IDを特定の四方的な要素のために取得します。

Cubitは、それぞれの要素にグローバル要素IDを割り当てるときにブロックに置かれます。 この機能は、そのタイプ特定のID スペース内の特定の地元の四重ID に合致するグローバル要素IDを返します。

.. code-block:: python
# Create a brick and mesh its volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("block 1 quad in surface 1" ) # assign all quads on surface 1 to block 1
# Query the Global Element ID of local quad 22
print("Global Element ID of quad 22:" , gid)
 @n type of quad_id:  int
パラメータ
quad_id 地元の四方的な要素IDは、そのタイプの範囲内です。

戻り値の型:int
戻り値
グローバル要素IDは、指定された四角形のグローバル要素ID、またはブロックに置かれていない場合、0。

◆ get_quality_stats_at_geometry()

def cubit.get_quality_stats_at_geometry (   geom_type,
  mesh_type,
  geom_id_list,
  expand_levels,
  metric_name,
  single_threshold,
  use_low_threshold,
  low_threshold,
  high_threshold,
  make_group 
)

Python友好的版のget_quality_statsがジオメトリエンティティで動作する。

指定されたジオメトリエンティティ(カーブ、サーフェスまたはボリューム)に付属するすべてのメッシュ要素の品質統計を、指定された関連性レベルまで計算し、指定されたメトリックおよび限界基準を使用します。 結果は次のとおり単一のstd::ベクトル<ダブル>に包み込まれています。

  • [0] min_value
  • (1)max_value
  • [2] mean_value
  • (3)std_value
  • [4] min_element_id
  • (5)max_element_id
  • [6] element_type (0=edge, 1=tri, 2=quad, 3=tet, 4=hex)
  • [7] bad_group_id
  • [8] 失敗する要素の数(n)
  • [9]...[9+n-1] 失敗のID 要素

異なる get_elem_quality_stats() , mesh-element IDのフラットなリストを対象に動作します。この関数はまず、指定されたgeometry_typeエンティティに接続されたmesh_typeの全メッシュ要素を収集し(接続性をexpand_levelsまで拡張)、その後 get_elem_quality_stats() 内部で。

.. code-block:: python
# 1) Create two vertices and a linear curve (Curve ID = 1), then mesh that curve.
cubit.cmd ("create vertex 0 0 0" )
cubit.cmd ("create vertex 1 0 0" )
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
cubit.cmd ("curve 1 size 0.1" )
cubit.cmd ("mesh curve 1" )
# 2) Compute quality stats for all "edge" elements attached to that curve.
# expand_levels = 0 means only directly connected edges.
curves = [1]
"curve" , # geom_type
"edge" , # mesh_type
curves, # geom_id_list
0, # expand_levels
"scaled jacobian" , # metric_name
0.2, # single_threshold
False , # use_low_threshold
0.0, # low_threshold
0.2, # high_threshold
True# make_group
)
min_value = quality_data[0]
max_value = quality_data[1]
mean_value = quality_data[2]
std_value = quality_data[3]
min_element_id = int(quality_data[4])
max_element_id = int(quality_data[5])
element_type = int(quality_data[6]) # 0=edge
bad_group_id = int(quality_data[7])
num_failures = int(quality_data[8])
mesh_list = [int(x) for x in quality_data[9:9+num_failures]]
 @n type of geom_type:  string
パラメータ
geom_type ジオメトリタイプ("curve"、"surface"、または"volume")。

mesh_type の型:string
mesh_type メッシュ - 要素のタイプを評価する(edge、tri、quad、tet、hex)。

geom_id_list の型:std::vector< int,std::allocator< int > >
geom_id_list 関連するメッシュの要素が考慮されるジオメトリIDのベクトルです。

expand_levels の型:int
expand_levels 関連性レベルの数を含む(0 = 直接関連する要素のみ)。

metric_name の型:string
metric_name 品質指標名(例: "scaled jacobian"、"skew")。

single_threshold の型:float
single_threshold 単一の制限を使用する際の制限

use_low_threshold の型:boolean
use_low_threshold 正しい場合は [low_threshold, high_threshold] を適用し、そうでなければ single_threshold を使用します。

low_threshold の型:float
low_threshold 受け入れられる品質範囲の低い制限。

high_threshold の型:float
high_threshold 受け入れられる品質範囲の上限。

make_group の型:boolean
make_group もしそうなら、失敗した要素を含むグループを作成し、そのIDは出力に表示されます。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
ベクトルと「ダブル」は、品質概要と失敗する要素のIDを含みます。

◆ get_quality_value()

def cubit.get_quality_value (   mesh_type,
  mesh_id,
  metric_name 
)

特定の品質指標の値を単一のメッシュの要素に返します。

要求された品質指標をメッシュのエンティティに返します。

.. code-block:: python
"hex" , # mesh_type
223, # mesh_id
"skew"# metric_name
)
 @n type of mesh_type:  string
パラメータ
mesh_type メッシュ要素タイプ("hex"、"tet"、"tri"、"quad")。

mesh_id の型:int
mesh_id メッシュの要素の識別

metric_name の型:string
metric_name 品質指標名(例: "skew"、"taper"、"scaled jacobian")。

戻り値の型:float
戻り値
指定された品質指標の価値

◆ get_quality_values()

def cubit.get_quality_values (   mesh_type,
  mesh_ids,
  metric_name 
)

複数のメッシュの要素の品質指標値を返します。

メトリック値のベクトルを要素IDの指定リストに返します。 これは異なる get_quality_value() 単一の要素のメトリックだけを返す。

.. code-block:: python
mesh_ids = [223, 224, 225]
skew_vals = cubit.get_quality_values (
"hex" , # mesh_type
mesh_ids, # list of element IDs
"skew"# metric_name
)

for eid, val in zip(mesh_ids, skew_vals): print(f"Element {eid} skew: {val}")

  @n type of mesh_type:  string
パラメータ
mesh_type メッシュ要素タイプ("hex"、"tet"、"tri"、"quad")。

mesh_ids の型:std::vector< int,std::allocator< int > >
mesh_ids ベクトルのメッシュの要素IDを検索する。

metric_name の型:string
metric_name 品質指標名(例: "skew"、"taper"、"scaled jacobian")。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
std::ベクトル<ダブル> 各 mesh_id に合致するメトリック値を含む。

◆ get_reduce_bolt_core_default_dimensions()

def cubit.get_reduce_bolt_core_default_dimensions (   vol_id )

ボルトのボリュームのデフォルトコアサイズを計算し、ボルトコアの操作を減らす。

使われた reduce volume <id> bolt core c1、c2、c3のデフォルト値を推定し、ボルトを取り巻くコアジオメトリの範囲を定義する。

.. code-block:: python
print("c1:" , dims[0], "c2:" , dims[1], "c3:" , dims[2])
 @n type of vol_id:  int
パラメータ
vol_id Volume IDはボルトジオメトリを表しています。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
ベクトルは、ボルトコアのサイズ(c1、c2、c3)を含む。

◆ get_relatives()

def cubit.get_relatives (   source_geometry_type,
  source_id,
  target_geom_type 
)

特定のエンティティの親族(親または子供)を取得します。

指定source entityについて、あるタイプのancestor(parent)またはdescendant(child)entityを取得するために使用します。たとえばsurface 12を囲む全curveを列挙するには、source_geometry_type="surface"、source_id=12、target_geom_type="curve"で呼び出します。

.. code-block:: python
# Create a brick and extract curves for surface 1.
cubit.cmd ("brick x 10" )
curve_list = cubit.get_relatives ("surface" , 1, "curve" )
print(curve_list) # e.g., (1, 2, 3, 4)
 @n type of source_geometry_type:  string
パラメータ
source_geometry_type source entityタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

source_id の型:int
source_id ソースのIDエンティティ

target_geom_type の型:string
target_geom_type 取得対象エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
source_idに関連し、target_geom_typeに一致するIDのリスト(vectorまたはPython tuple)。

◆ get_rendering_mode()

def cubit.get_rendering_mode ( )

現在のグラフィック・レンダーモードを取得します。

アクティブなレンダリングスタイルのための完全なコードを返します:

  • 0 = wireframe only
  • 1 = 隠された線の除去を含むワイヤーフレーム
  • 2 = true hidden-line shading
  • 3 = smooth shaded surfaces
  • 4 = transparent surfaces
  • 5 = geometry facets only
.. code-block:: python
import cubit
# Set rendering mode to hidden-line removal and verify
cubit.cmd ("Graphics Mode HiddenLine" )
print("Rendering mode:" , mode) # should print 1
 @n return type of :  int
戻り値
現在のレンダリングモードのコードを完全に表示します。

◆ get_requested_mesh_interval_firmness()

def cubit.get_requested_mesh_interval_firmness (   geometry_type,
  entity_id 
)

特定のエンティティのために明示的に要求されたインターバルの固定性を回復します。

異なる get_mesh_interval_firmness() この機能は、関連トポロジーからの影響を考慮した後に効果的な堅固性を返すが、この機能は、ユーザーがエンティティそのものに直接割り当てられた堅固性設定のみを返す(相続性や拡散性がない)。

タイトル可能な返品値は:

  • "HARD" - このエンティティにhard intervalコマンドを使用して、インターバルが明示的にロックされています。
  • "SOFT" - このエンティティのインターバルが明示的にsoftへ設定(または昇格)されています。
  • LIMP - このエンティティに直接設定されたインターバルの固定性はありませんでした。
.. code-block:: python
# Assume surface 12 already exists.
# 1) Explicitly set surface 12's interval firmness to SOFT:
cubit.cmd ("surface 12 interval soft" )
# 2) Query only the requested interval firmness for surface 12:
firmness = cubit.get_requested_mesh_interval_firmness ("surface" , 12)
print("Surface 12 requested interval firmness:" , firmness) # Expected: "SOFT"
# 3) Query again (still "SOFT", unaffected by connected geometry).
firmness = cubit.get_requested_mesh_interval_firmness ("surface" , 12)
print("Surface 12 requested interval firmness:" , firmness) # Expected: "SOFT"
 @n type of geometry_type:  string
パラメータ
geometry_type エンティティのジオメトリタイプ("curve"、"surface"、または"volume")。

entity_id の型:int
entity_id 要請されたインターバルの固定性が要求されるエンティティのID。

戻り値の型:string
戻り値
: そのエンティティに要求されているinterval firmness。"HARD"、"SOFT"、または"LIMP"。"LIMP"はここでfirmnessが明示設定されていないことを示します。

◆ get_requested_mesh_intervals()

def cubit.get_requested_mesh_intervals (   geometry_type,
  entity_id 
)

メッシュのインターバルの数をジオメトリのエンティティに明確に設定します。

指定されたジオメトリエンティティに直接割り当てられた分部の数を返します。

  • インターバルがエンティティに設定されていない場合、そのサイズは親から相続します。
  • インターバルがどこにも設定されていない場合、デフォルト自動サイズが使用されます。
.. code-block:: python
import cubit
size = cubit.get_requested_mesh_intervals ("curve" , 7)
print("Mesh size on curve 7:" , size)
 @n type of geometry_type:  string
パラメータ
geometry_type Entity type: "curve"、"surface"、または"volume"。

entity_id の型:int
entity_id ジオメトリのエンティティのID。

戻り値の型:int
戻り値
インターバルの計算は、そのエンティティに設定されます。

◆ get_requested_mesh_size()

def cubit.get_requested_mesh_size (   geometry_type,
  id 
)

メッシュサイズをジオメトリのエンティティに明確に設定します。

ターゲットエッジ長さは、親のエンティティから相続されていないエンティティに直接割り当てられた。 明確なサイズが設定されていない場合は、 -1. 返します。

.. code-block:: python
import cubit
# Get the requested mesh size on surface 4
requested_size = cubit.get_requested_mesh_size ("surface" , 4)
print("Requested mesh size:" , requested_size)
 @n type of geometry_type:  string
パラメータ
geometry_type Entity type: "curve"、"surface"、または"volume"。

id の型:int
id ジオメトリのエンティティのID。

戻り値の型:float
戻り値
メッシュサイズはエンティティに明示的に設定され、あるいは -1 が存在しない場合。

◆ get_requested_mesh_size_type()

def cubit.get_requested_mesh_size_type (   geometry_type,
  entity_id 
)

指定されたエンティティで明示的に要求されたメッシュサイズ設定タイプを復元します。

異なる get_mesh_size_type() CALCULATEDを返すことができ、そのサイズが相続または計算された場合、この機能は、ユーザーが直接このエンティティに適用したメッシュサイズ設定の状態のみを返します。

タイトル可能な返品値は:

  • USER_SET - このエンティティにメッシュサイズ(ターゲットエッジ長さ)が明確に設定されました。
  • "CALCULATED" - このエンティティのメッシュサイズが推定または計算されたことを示します(ユーザーが直接設定したものではありません)。
  • NOT_SET - このエンティティにメッシュサイズは明確に設定されていません。
.. code-block:: python
# 1) Create two vertices and a linear curve between them (Curve ID = 1).
cubit.cmd ("create vertex 0 0 0" ) # Vertex ID = 1
cubit.cmd ("create vertex 1 0 0" ) # Vertex ID = 2
cubit.cmd ("create curve vertex 1 2" ) # Curve ID = 1
# 2) By default, no mesh size is set, so this returns "NOT_SET".
requested_type = cubit.get_requested_mesh_size_type ("curve" , 1)
print("Curve 1 requested mesh size type:" , requested_type) # Expected: "NOT_SET"
# 3) Explicitly set a mesh size (target edge length) of 0.1 on curve 1.
cubit.cmd ("curve 1 size 0.1" )
# 4) Now get_requested_mesh_size_type returns "USER_SET".
requested_type = cubit.get_requested_mesh_size_type ("curve" , 1)
print("Curve 1 requested mesh size type:" , requested_type) # Expected: "USER_SET"
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、または"volume")。

entity_id の型:int
entity_id 要求されたメッシュサイズの状態を求めるエンティティのID。

戻り値の型:string
戻り値
要求されたメッシュサイズの状態は、そのエンティティのUSER_SET、CALCULATED、またはNOT_SETです。

◆ get_revision_date()

def cubit.get_revision_date ( )

Cubitの修正日を更新します。

Cubitエンジンに適用された最後のコード修正の日付を返します。

.. code-block:: python
import cubit
rev_date = cubit.get_revision_date ()
print("Revision date:" , rev_date)
 @n return type of :  string
戻り値
Cubitの最後の修正の日付を含むライン。

◆ get_rubberband_shape()

def cubit.get_rubberband_shape ( )

現在のゴムバンドの選択形状を取得します。

グラフィックウィンドウでアクティブな選択形式の完全なコードを返します:

  • 0 = box
  • 1 = polygon
  • 2 = circle
.. code-block:: python
import cubit
print("Rubberband shape:" , shape)
 @n return type of :  int
戻り値
完全コードは、現在のゴムバンドの選択形状を示しています。

◆ get_selected_id()

def cubit.get_selected_id (   index )

インデックスによって選択されたエンティティIDを取得します。

共に使用する get_selected_ids() そして、 get_selected_type() 選択をチェックする。

.. code-block:: python
import cubit
# Select surfaces 3 and 4
cubit.cmd ("select surface 3 4" )
# Retrieve all selected IDs by index

for i in range(len(ids)): id = cubit.get_selected_id(i)

print("Selection" , i, ":" , type, id)
 @n type of index:  int
パラメータ
index ゼロベースのインデックスが現在の選択リストに入ります。

戻り値の型:int
戻り値
Entity 指定インデックスにおけるID

◆ get_selected_ids()

def cubit.get_selected_ids ( )

すべての現在選択されているエンティティIDを選択したオーダーで取り戻します。

グラフィックインターフェイスまたはプログラミングでコマンドを選択したエンティティのIDのベクトルを返します。 オーダーはエンティティが選ばれた順序を反映します。

.. code-block:: python
import cubit
# Select surfaces 3 and 4, then iterate through the selection
cubit.cmd ("select surface 3 4" )

for i, id in enumerate(ids): t = cubit.get_selected_type(i)

print("Selected" , t, "with ID" , id)
 @n return type of : std::vector< int,std:: allocator< int > >
戻り値
選択されたエンティティIDのベクトル; 選択されたエンティティが選択されていない場合、空白。

◆ get_selected_type()

def cubit.get_selected_type (   index )

インデックスによって選択されたエンティティタイプを取得します。

共に使用する get_selected_ids() そして、 get_selected_id() 選択をチェックする。

.. code-block:: python
import cubit
# Select surfaces 3 and 4
cubit.cmd ("select surface 3 4" )
# If there is at least one selection, print its type and ID

if ids: id = cubit.get_selected_id(0)

print(f"First selection is a {t} with ID {id}" )
 @n type of index:  int
パラメータ
index ゼロベースのインデックスが現在の選択リストに入ります。

戻り値の型:string
戻り値
Entity このインデックスにvertex、curve、surface、volumeのタイプストリップが表示されます。

◆ get_sgm_version()

def cubit.get_sgm_version ( )

SGM(Solid Geometry Manager)のバージョンを取得します。

SGMエンジンのバージョンラインをCubitと統合して返します。

.. code-block:: python
import cubit
sgm_version = cubit.get_sgm_version ()
print("SGM version:" , sgm_version)
 @n return type of :  string
戻り値
SGMバージョン番号を含むシート。

◆ get_sharp_angle_vertices()

def cubit.get_sharp_angle_vertices (   target_volume_ids,
  upper_bound,
  lower_bound 
)

「頂点」をカーブの鋭い角度でボリュームのセットで指定します。

この機能は、指定されたボリュームのそれぞれの「サーフェス」にカーブの交差点(鋭い角)の内側の角度を計算します。 「頂点」は、内側の角度が指定された角度を超える場所を特定します。 upper_bound あるいは下に落ちる。 lower_bound 境界線

.. code-block:: python
cubit.cmd ('brick x 10' )
cubit.cmd ('cylinder rad 5 height 10' )
cubit.cmd ('vol 2 mov z 10' )
cubit.cmd ('unite vol all' )
sharp_vertex_data = cubit.get_sharp_angle_vertices ([1], 350, 10)
vertex_ids = sharp_vertex_data[0]
angles = sharp_vertex_data[1]
print("Sharp vertices:" )

for vid, angle in zip(vertex_ids, angles): print(f"Vertex {int(vid)} angle {angle:.1f}")

# Expected output:
# Vertex 11 angle 0.0
# Vertex 12 angle 0.0
# Vertex 13 angle 0.0
# Vertex 14 angle 0.0
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 分析するためのボリュームIDのリスト。

upper_bound の型:float
upper_bound 上限の角度、グレードで。

lower_bound の型:float
lower_bound 低限の角度、グレード。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
2D(トップ点のID)は、関連する角度(関連する角度)です。 最初の列には、ユニークな頂点ID(全体として)が含まれています。 2番目の列には、それぞれの頂点の関連する角度が含まれています(浮動点の値として)。

◆ get_sideset_area()

def cubit.get_sideset_area (   sideset_id )

サイドセットの総面積を取得します。

サイドセットに三角形または四角形要素が含まれている場合、この機能は、これらの要素の面積の合計を返します。 そうでなければ、それはサイドセットと関連するジオメトリの顔を見つけ、関連するジオメトリのサーフェスの面積の合計を返します。

.. code-block:: python
# Create a brick, mesh the volume, and assign faces on surface 1 to sideset 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("sideset 1 face in surface 1" )
# Query the area of sideset 1
print(f"Sideset 1 total area: {area}" )
 @n type of sideset_id:  int
パラメータ
sideset_id サイドセットのIDを検証します。

戻り値の型:float
戻り値
サイドセットにあるすべてのトリスや顔の面積の合計。

◆ get_sideset_contact_pairs()

def cubit.get_sideset_contact_pairs (   geom_type,
  ent_list,
  geom_tol = -1.0 
)

サイドセットに基づくコンタクトインターフェイスを特定し、コンパクトな整合インタラクションレコードを返します。

指定volumeまたはblockに関連するsidesetを走査し、共通contact interface(1-to-1、one-to-many、many-to-one、many-to-many)を表すsidesetをグループ化して、各interfaceをcompact integer recordとして返します。一方だけに名前付きsidesetがあり、反対側entityが既知の場合は"intent"を表すrecordを返すこともあります。

返信されたインタラクションの記録は、以下のように暗号化されます。

[状態、 A_id、 B_id、 bolt_id、 n_A_to_B、 A_to_B_ss、 n_B_to_A、 B_to_A_ss...)

フィールド意味:

  • 状態:
    • 0 = both directions present (n_A_to_B >= 1 and n_B_to_A >= 1)
    • 1 = 逆方向が欠けている(正確に1つの方向リストが存在する)
    • 2 = ambiguous (multiple plausible neighbors; not uniquely resolvable)
    • 3 = 合わない(反対のエンティティに結論を出さない)
  • A_id, B_id:
    • 「geom_type==ボリューム モード: volume IDs
    • 「geom_type==ブロック モード: block IDs
    • B_id は、不明/不一致/不一致の場合 0 です。
  • bolt_id: parsed from naming convention (e.g. "<A>_to_<B>_<bolt_id>"); 0 if not present/unknown
  • n_A_to_B、 n_B_to_A:各方向でグループ化されたサイドセットの数
  • A_to_B_ss、 B_to_A_ss: サイドセット IDs grouped for each direction
ノート
  • 出力リストは、再生性とテストのために決定的に分類されます。
  • 多くのモデルでは、単一の方向だけが明確に名称コンベンションによって定義されます。 このようなケースは、反対のエンティティが知られている場合の状態を返します。

関連するアシスタントあなたがサイドセット ID を持っているとき:

- get_exodus_entity_name("sideset" , sideset_id)
- get_sideset_area(sideset_id)

.. code-block:: python

pairs = cubit.get_sideset_contact_pairs ("block" , [12, 34])

for rec in pairs: status, a_id, b_id, bolt_id = rec[0], rec[1], rec[2], rec[3]

i = 4
n_ab = rec[i]; i += 1
ab_ids = rec[i:i + n_ab]; i += n_ab
n_ba = rec[i]; i += 1
ba_ids = rec[i:i + n_ba]
print(f"status={status} A={a_id} B={b_id} bolt_id={bolt_id}" )

for sid in ab_ids: name = cubit.get_exodus_entity_name ("sideset", sid)

area = cubit.get_sideset_area (sid)
print(f" A->B sideset {sid}: name='{name}', area={area:g}" )

for sid in ba_ids: name = cubit.get_exodus_entity_name ("sideset", sid)

area = cubit.get_sideset_area (sid)
print(f" B->A sideset {sid}: name='{name}', area={area:g}" )
  @n type of geom_type:  string
パラメータ
geom_type Entity タイプ選択器: ボリューム (ent_list は volume IDs) または ブロック (ent_list は block IDs) 指定されたエンティティに関連するサイドセットのみが考慮されます。 ケース不敏感

ent_list の型:std::vector< int,std::allocator< int > >
ent_list 検証するためのエンティティIDのリスト(『geom_type==ボリューム; ブロック IDs when geom_type==block)

geom_tol の型:float, optional
geom_tol ジオメトリ許容差近距離落下のために。 geom_tol < 0 (デフォルト -1.0) を使用する場合 get_merge_tolerance()」 もし geom_tol = 0 なら、近距離の落下が妨げられます。 geom_tol > 0 の場合、許容差を使用します。

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
上記のようにインタラクションレコードのリスト。

◆ get_sideset_count()

def cubit.get_sideset_count ( )

モデルにサイドセットの現在の番号を入力します。

Cubitでは、サイドセットのグループの要素の顔(またはエッジ)が限界条件を適用する。 サイドセットは、特定のIDにサーフェス、カーブ、顔、またはメッシュのエンティティを割り当てることによって定義することができます。

.. code-block:: python
# Create and mesh a brick; surfaces 1-6 become mesh faces.
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume 1" )
# Define sideset 101 to include faces on surface 1.
cubit.cmd ("Sideset 101 add surface 1" )
# get_sideset_count() returns 1.
print("Sideset count:" , count) # prints 1
 @n return type of :  int
戻り値
モデルで現在定義されているサイドセットの数。

◆ get_sideset_curves()

def cubit.get_sideset_curves (   sideset_id )

サイドセットと関連付けられたカーブIDのリストを取得します。

この機能は、指定されたサイドセットと関連付けられているすべてのカーブのIDを返します。

.. code-block:: python
# Create a brick and assign curves in volume 1 to sideset 10
cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 10 curve in vol 1" )
# Query the curves in sideset 10
curve_ids = cubit.get_sideset_curves (10)
print(f"Sideset 10 contains {len(curve_ids)} curve(s)." )

for curve_id in curve_ids: print(f" Curve ID: {curve_id}")

  @n type of sideset_id:  int
パラメータ
sideset_id サイドセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サイドセットに含まれるカーブIDのリスト。

◆ get_sideset_edges()

def cubit.get_sideset_edges (   sideset_id )

サイドセットに含まれるエッジIDのリストを取得します。

サイドセットにはエッジの要素が含まれます。 この機能は、それらが存在する場合、エッジの要素のIDを返します。 サイドセットにエッジがない場合、空のリストが返されます。

.. code-block:: python
# Create a brick, mesh volume 1, and assign edges in volume 1 to sideset 20
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("sideset 20 edge in curve in vol 1" )
# Query the edges in sideset 20
edge_ids = cubit.get_sideset_edges (20)
print(f"Sideset 20 contains {len(edge_ids)} edge(s)." )

for edge_id in edge_ids: print(f" Edge ID: {edge_id}")

  @n type of sideset_id:  int
パラメータ
sideset_id サイドセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サイドセットに含まれるエッジIDのリスト。

◆ get_sideset_element_type()

def cubit.get_sideset_element_type (   sideset_id )

サイドセットの要素タイプを取得します。



sideset_id の型:int

パラメータ
sideset_id 求めるサイドセットのID

戻り値の型:string
戻り値
要素の種類

◆ get_sideset_id_list()

def cubit.get_sideset_id_list ( )

すべてのアクティブなサイドセットIDのリストを取得します。

モデル内のすべての現在アクティブなサイドセットIDのベクトルを返します。

.. code-block:: python
# Create geometry
cubit.cmd ("brick x 10" )
# Create sidesets on surfaces
cubit.cmd ("sideset 20 surface 1" )
cubit.cmd ("sideset 21 surface 2" )
# Query all active sideset IDs
sideset_ids = cubit.get_sideset_id_list ()
# Print the sideset IDs
print("Active sideset IDs:" )

for sideset_id in sideset_ids: print(" Sideset ID:", sideset_id)

# Expected output (example):
# Active sideset IDs:
# Sideset ID: 20
# Sideset ID: 21
 @n return type of : std::vector< int,std:: allocator< int > >
戻り値
すべてのアクティブなサイドセットIDのベクトル(Python)

◆ get_sideset_id_list_for_bc()

def cubit.get_sideset_id_list_for_bc (   bc_type_enum,
  bc_id 
)

限界状態に関連するサイドセットIDのリストを取得します。

サイドセットは、BCが適用されるものに戻ります。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型エンム(CI_BCTypes)

bc_id の型:int
bc_id 境界条件の識別

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
関連するサイドセットIDのリスト。

◆ get_sideset_quads()

def cubit.get_sideset_quads (   sideset_id )

サイドセットに含まれる四方(四方) 要素 ID のリストを取得します。

サイドセットには、四方的な要素(顔)が含まれます。 この機能は、それらが存在する場合、その四要素のIDを返します。 空っぽのリストがサイドセットにクアドが存在しない場合に返還されます。

.. code-block:: python
# Create a brick, mesh the volume, and assign faces on surface 1 to sideset 4
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol all" )
cubit.cmd ("sideset 4 face in surface 1" )
# Query the quads in sideset 4
quad_ids = cubit.get_sideset_quads (4)
print(f"Sideset 4 contains {len(quad_ids)} quad(s)." )

for quad_id in quad_ids: print(f" Quad ID: {quad_id}")

  @n type of sideset_id:  int
パラメータ
sideset_id サイドセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サイドセットに含まれる四側(quad) 要素 ID のリスト。

◆ get_sideset_surfaces()

def cubit.get_sideset_surfaces (   sideset_id )

サイドセットに含まれるサーフェスIDのリストを取得します。

サイドセットにはサーフェスが含まれます。 この機能は、存在する場合、そのサーフェスのIDを返します。 サイドセットにサーフェスがない場合、空のリストが返されます。

.. code-block:: python
# Create a brick and assign surface 3 to sideset 3
cubit.cmd ("brick x 10" )
cubit.cmd ("sideset 3 surface 3" )
# Query the surfaces in sideset 3
surface_ids = cubit.get_sideset_surfaces (3)
print(f"Sideset 3 contains {len(surface_ids)} surface(s)." )

for surf_id in surface_ids: print(f" Surface ID: {surf_id}")

  @n type of sideset_id:  int
パラメータ
sideset_id サイドセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サイドセットに含まれるサーフェスIDのリスト。

◆ get_sideset_tris()

def cubit.get_sideset_tris (   sideset_id )

サイドセットに含まれる三角形(三)要素IDのリストを取得します。

サイドセットには「三角形(三角形)」(三角形)が含まれます。 この機能は、それらが存在する場合、これらの三要素のIDを返します。 サイドセットにトリスがない場合、空のリストが返されます。

.. code-block:: python
# Create a brick, tetmesh volume 1, and assign tris on surface 6 to sideset 6
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("sideset 6 tri in surface 6" )
# Query the tris in sideset 6
tri_ids = cubit.get_sideset_tris (6)
print(f"Sideset 6 contains {len(tri_ids)} tri(s)." )

for tri_id in tri_ids: print(f" Tri ID: {tri_id}")

  @n type of sideset_id:  int
パラメータ
sideset_id サイドセットのIDを検証します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
三角形(三)要素IDのリストはサイドセットに含まれています。

◆ get_similar_curves()

def cubit.get_similar_curves (   curve_ids,
  tol = 1e-3,
  use_percent_tol = True,
  on_similar_vols = True 
)

あるカーブに似た長さを含むカーブを見つける。

この関数はcurve_ids内のカーブ長をモデル内の他の全カーブと比較します。長さの差がtol以下(use_percent_tolがtrueなら比率、falseなら絶対長として解釈)のカーブをsimilarとみなします。on_similar_volsがtrueの場合、curve_idsを所有するボリュームと同じジオメトリを持つボリューム上のカーブだけを比較します。

.. code-block:: python
# Create a cylinder of radius 1 and height 2; its circular edges are curves 1 (back) and 2 (front)
cubit.cmd ("create cylinder radius 1 height 2" )
# Find curves similar to curve 1.
matches = cubit.get_similar_curves ([1])
print(matches) # prints (1, 2)
 @n type of curve_ids:  std::vector< int,std::allocator< int > >
パラメータ
curve_ids 比較するためのカーブIDのリスト。

tol の型:float, optional
tol 許容差と長さの比較(もしuse_percent_tolが真実である場合の分割、そうでなければ絶対)。

use_percent_tol の型:boolean, optional
use_percent_tol もし真実なら、トルをカーブの長さの一部として解釈し、そうでなければ絶対的な長さとして解釈する。

on_similar_vols の型:boolean, optional
on_similar_vols もしそうなら、カーブとの比較をボリュームに限定し、curve_idsを所有するボリュームに似ている。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
カーブIDのリストで、その長さが許容差の範囲内で一致する。

◆ get_similar_surfaces()

def cubit.get_similar_surfaces (   surface_ids,
  tol = 1e-3,
  use_percent_tol = True,
  on_similar_vols = True 
)

サーフェスと同様の面積とカーブを数えるサーフェスを見つける。

この関数はsurface_ids内の各サーフェスをモデル内の他の全サーフェスと比較します。面積差がtol以下(use_percent_tolがtrueなら比率、falseなら絶対面積として解釈)で、境界カーブ数が同じサーフェスをsimilarとみなします。on_similar_volsがtrueの場合、surface_idsを所有するボリュームと同じジオメトリを持つボリューム上のサーフェスだけを比較します。

.. code-block:: python
# Create a cylinder of radius 1 and height 2; its circular end faces are surfaces 2 and 3.
cubit.cmd ("create cylinder radius 1 height 2" )
# Find surfaces similar to surface 2.
matches = cubit.get_similar_surfaces ([2])
print(matches) # prints (2, 3)
 @n type of surface_ids:  std::vector< int,std::allocator< int > >
パラメータ
surface_ids 対比するサーフェスIDのリスト。

tol の型:float, optional
tol 許容差は面積の比較(use_percent_tolが真実である場合の分割、そうでなければ絶対)。

use_percent_tol の型:boolean, optional
use_percent_tol 真実なら、トルをサーフェスの面積の一部として解釈し、そうでなければ絶対的な面積として解釈する。

on_similar_vols の型:boolean, optional
on_similar_vols trueの場合、surface_idsを所有するボリュームと類似するボリューム上のサーフェスに比較対象を限定します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
面積とカーブが許容差に匹敵するサーフェスIDのリスト。

◆ get_similar_volumes()

def cubit.get_similar_volumes (   volume_ids,
  tol = 1e-3,
  use_percent_tol = True 
)

ボリュームと同様のサイズと顔の数をボリュームに表示します。

この関数はvolume_ids内の各ボリュームをモデル内の他の全ボリュームと比較します。体積差がtol以下(use_percent_tolがtrueなら比率、falseなら絶対体積として解釈)で、face数が同じボリュームをsimilarとみなします。

.. code-block:: python
# Create two identical bricks of size 10 (volumes 1 and 2).
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 2 move x 20" ) # separate the second brick
# Find volumes similar to volume 1.
matches = cubit.get_similar_volumes ([1])
print(matches) # prints (1, 2)
 @n type of volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
volume_ids 対比するボリュームIDのリスト。

tol の型:float, optional
tol ボリューム比較の許容差。use_percent_tolがtrueなら比率、falseなら絶対値です。

use_percent_tol の型:boolean, optional
use_percent_tol もし真実なら、ボリュームの一部としてトルを解釈し、そうでなければ絶対的なボリュームとして解釈する。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームIDのリスト(ベクトルまたはPythonトゥーブル)は、ボリュームと『顔』が許容差の範囲内で計算される。

◆ get_sizing_function_name()

def cubit.get_sizing_function_name (   entity_type,
  entity_id 
)

メッシングサイズ機能のタイプを「サーフェス」またはボリュームに戻します。

指定エンティティへ割り当てられたsizing functionタイプを返します。戻り値は"constant"、"curvature"、"interval"、"inverse"、"linear"、"super"、"test"、"exodus"、"none"のいずれかです。

.. code-block:: python
import cubit
# After setting a volume sizing function:
# cubit.cmd("Volume 2 Sizing Function Type Curvature");
fn = cubit.get_sizing_function_name ("volume" , 2)
print("Volume 2 sizing function:" , fn) # prints "curvature"
 @n type of entity_type:  string
パラメータ
entity_type "surface"または"volume"。

entity_id の型:int
entity_id サーフェスまたはボリュームのID。

戻り値の型:string
戻り値
そのエンティティに割り当てられたサイズ機能の名前。

◆ get_small_and_narrow_surfaces()

def cubit.get_small_and_narrow_surfaces (   target_ids,
  small_area,
  small_curve_size 
)

面積に小さくあるいは狭い地域を含む「サーフェス」を見つける。

target_ids内の各ボリュームの各面について面積を測定し、area <= small_areaか確認します。また、隣接していないエッジペアを評価してnarrow領域も確認します。距離 <= small_curve_sizeかつ方向差 > 15度なら、その面をnarrowと判定します。いずれかの条件を満たすすべての面IDを返します。

.. code-block:: python
volume_ids = [1, 2]
area_thresh = 0.25 # e.g., mesh_size * mesh_size.
narrow_thresh = 0.1 # Edge-distance threshold.
results = cubit.get_small_and_narrow_surfaces (volume_ids, area_thresh, narrow_thresh)

for sid in results: print("Surface ID:", sid)

  @n type of target_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_ids 調査対象のボリュームIDのベクトル。

small_area の型:float
small_area 面積しきい値。area <= small_area を満たす面を"small"と判定します。

small_curve_size の型:float
small_curve_size 距離しきい値。隣接していない任意の2エッジについて距離がsmall_curve_size以下、かつ方向差が15度超の面を"narrow"と判定します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルは、小さくあるいは狭い顔のIDです。

◆ get_small_curves()

def cubit.get_small_curves (   target_volume_ids,
  mesh_size 
)

エッジと長さを含むカーブを特定のボリュームの範囲内の範囲の下で見つける。

target_volume_idsのボリュームの顔にある各カーブは、そのエッジの長さを測定します。 カーブと長さ=mesh_sizeが返されます。

.. code-block:: python
volume_ids = [1, 2]
mesh_size = 0.5 # Edge-length threshold.
small_curves = cubit.get_small_curves (volume_ids, mesh_size)

for cid in small_curves: print("Small curve ID:", cid)

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

mesh_size の型:float
mesh_size "small"カーブを判定するエッジ長しきい値。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
長さ <= mesh_sizeのcurve ID vector。

◆ get_small_radius_blend_surfaces()

def cubit.get_small_radius_blend_surfaces (   target_volume_ids,
  max_radius 
)

サーフェスと曲線の半径を混ぜる <=max_radiusを見つける。

target_volume_ids内の全ボリュームのfaceを走査し、曲率半径 <= max_radiusのblend surfaceを返します。max_radius = 0の場合はすべてのblend surfaceを返します。

.. code-block:: python
# Create a 10x10x10 brick and apply two blends: one with radius 0.5 and one with radius 2.
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 1 blend radius 0.5" ) # blend surface 7
cubit.cmd ("modify curve 2 blend radius 2.0" ) # blend surface 8
# Get only the small-radius blends (<= 1.0).
max_radius = 1.0
small_blends = cubit.get_small_radius_blend_surfaces ([1], max_radius)
print(small_blends) # expect [7]
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

max_radius の型:float
max_radius 曲線の最大半径; もし0なら、すべての混合物「サーフェス」を返します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルはサーフェスIDを半径と混ぜてmax_radiusです。

◆ get_small_surfaces()

def cubit.get_small_surfaces (   target_volume_ids,
  area_threshold 
)

指定しきい値未満の面積を持つサーフェスを検索します。

指定したボリューム群から一意なfaceをすべて収集し、各faceの面積を測定して、area <= area_thresholdを満たすものを返します。

.. code-block:: python
volume_ids = [1, 2]
area_threshold = 0.25 # e.g., mesh_size * mesh_size.
small_surfaces = cubit.get_small_surfaces (volume_ids, area_threshold)

for sid in small_surfaces: print("Small surface ID:", sid)

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

area_threshold の型:float
area_threshold 面積限界; 面積 <= area_threshold を含む顔が返されます。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスのIDのベクトルと面積はarea_thresholdです。

◆ get_small_surfaces_HR()

def cubit.get_small_surfaces_HR (   target_volume_ids,
  mesh_size 
)

Pythonと呼ばれるバージョン:小さな水力半径の「サーフェス」を特定します。

各面のための水力半径 = 4*(面積/ペリメーター)を target_volume_ids で計算します。 顔のIDを半径=mesh_sizeで返します。

.. code-block:: python
volume_ids = [1, 2]
mesh_size = 0.5 # Hydraulic radius threshold.
small_surfaces = cubit.get_small_surfaces_HR (volume_ids, mesh_size)

for sid in small_surfaces: print("Small surface ID:", sid)

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

mesh_size の型:float
mesh_size 水力半径しきい値。4*(area/perimeter) <= mesh_size を満たすfaceを"small"と判定します。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
小さな水力半径のIDのベクトルのサーフェス

◆ get_small_volumes()

def cubit.get_small_volumes (   target_volume_ids,
  mesh_size 
)

メッシュサイズに基づいて限界の下にあるサイズのボリュームを見つける。

実体積 < 10 * mesh_size^3のvolumeを"small"とみなします。

.. code-block:: python
# Create two small and one larger brick.
cubit.cmd ("brick x 0.5 y 0.5 z 0.5" ) # Vol 1
cubit.cmd ("brick x 1 y 1 z 1" ) # Vol 2
cubit.cmd ("brick x 3 y 3 z 3" ) # Vol 3
mesh_size = 1.0 # 10 * 1^3 = 10.
small_vols = cubit.get_small_volumes ([1, 2, 3], mesh_size)
print(small_vols) # expect [1, 2]
 @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

mesh_size の型:float
mesh_size "small"を定義するしきい値: volume < 10 * mesh_size^3 のボリューム。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
"small"基準を満たすvolume ID vector。

◆ get_smallest_curves()

def cubit.get_smallest_curves (   target_volume_ids,
  number_to_return 
)

指定されたボリュームに最小のカーブの返信ID。

target_volume_idsでボリュームの顔に長さを測定し、最短の長さでnumber_to_returnのカーブを返します。

.. code-block:: python
volume_ids = [1, 2]
number_to_return = 5 # Get five shortest curves.
smallest_curves = cubit.get_smallest_curves (volume_ids, number_to_return)

for cid in smallest_curves: print("Curve ID:", cid)

  @n type of target_volume_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

number_to_return の型:int
number_to_return 最も小さなカーブの数が戻ってくる。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルは、最も小さなカーブのIDです。

◆ get_smooth_scheme()

def cubit.get_smooth_scheme (   geometry_type,
  entity_id 
)

指定されたジオメトリのエンティティのためにスムージングのスキームを取り戻します。

指定エンティティ("curve"、"surface"、"volume")とIDへ適用されているsmoothing scheme名を返します。未設定なら空文字列を返します。

.. code-block:: python
cubit.cmd ("surface 10 smooth scheme mean ratio" )
scheme = cubit.get_smooth_scheme ("surface" , 10)
print("Smooth scheme:" , scheme)
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ: "curve"、"surface"、または"volume"。

entity_id の型:int
entity_id エンティティのアイデンティティ

戻り値の型:string
戻り値
スムージングのスキームの名前、あるいは空っぽのラインが設定されていない場合。

◆ get_solutions_for_bad_geometry()

def cubit.get_solutions_for_bad_geometry (   geom_type,
  geom_id 
)

悪質なジオメトリの治療法をACISの癒しを通じて提供する(うつ病)。

悪いジオメトリは、しばしば不完全なCADの翻訳から生じる。 この機能はACISの内蔵癒しの操作を呼びかけます。

注
ACISの癒しサポートは低下し、将来のリリースで削除されます。 悪いジオメトリのための代替ソリューションが待っている。



geom_type の型:string

パラメータ
geom_type entity の型:"curve", "surface", "volume", or "body".

geom_id の型:int
geom_id ジオメトリのエンティティのIDを尋ねる。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの3行のベクトル: [0] ディスプレイストリート、 [1] コマンドストリート、 [2] プレビューストリート。

◆ get_solutions_for_blends()

def cubit.get_solutions_for_blends (   surface_id )

可能な混合除去ソリューションを特定のサーフェス(およびその混合チェーンが適用される場合)に提供します。

サーフェスIDを考慮して、この機能は、そのサーフェスの混合物を削除または調整するための可能なソリューションを返します。 サーフェスが混合チェーンの一部である場合、ソリューションには混合チェーン全体の操作も含まれます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 12 2 8 11 blend radius 1" ) # Blend the four curves on surface 5
# Get blend removal solutions for surface 10:
surface_id = 10
solutions = cubit.get_solutions_for_blends (surface_id)

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output:
# Option: Remove Blend Chain at Surface 10
# Command: remove surface 10 blend_chain
# Preview: remove surface 10 blend_chain preview
# Shorthand: 15 10
 @n type of surface_id:  int
パラメータ
surface_id サーフェスが求められています。 混合チェーンの一部である場合、ソリューションには全チェーンが含まれます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトル: [0] 各推奨混合ソリューションのためのディスプレイライン、 [1] 各混合ソリューションに適用するCubitのコマンドのライン、 [2] コマンドのCubitのプレビューライン、 [3] ショートハンドの説明(操作IDおよび関連するサーフェスID)。

◆ get_solutions_for_bolt()

def cubit.get_solutions_for_bolt (   bolt_id,
  insert_id,
  threaded_vol_id 
)

知られているサブコンポーネントIDを使用してボルトとして分類されたボリュームのための操作を提案します。

この機能は、知られている入力と線形のサブコンポーネントボリュームを使用してボルトボリュームの変更のオプションを提供します。 get_solutions_for_classified_volumeより効率的で、これらのIDがすでに利用可能である場合。

Set insert_id or threaded_vol_id to 0 if the corresponding volume is not present or not known. To classify bolt volumes in the model, use get_ML_classification() .

.. code-block:: python
cubit.cmd ("cylinder radius 1 height 10" ) # volume 1
cubit.cmd ("cylinder radius 2 height 2" ) # volume 2
cubit.cmd ("volume 2 move z 5" )
cubit.cmd ("unite volume all" ) # volume 1 becomes a bolt
solutions = cubit.get_solutions_for_bolt (1, 0, 0)

for i in range(3): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" ML Op:" , solutions[3][i])
# Expected output (first three results only):
# Option: Delete Bolt Volume 1
# Command: delete volume 1
# Preview: highlight volume 1
# ML Op: 40 1 0 0
# Option: Reduce Bolt 1 Simplify
# Command: reduce volume 1
# Preview: highlight volume 1
# ML Op: 42 1 0 0 1 1 0
# Option: Reduce Bolt 1 Tight Fit
# Command: reduce volume 1 bolt fit_volume tight_fit remove_key merge
# Preview: highlight volume 1
# ML Op: 42 1 0 0 1 1 1
 @n type of bolt_id:  int
パラメータ
bolt_id ボリュームのIDはボルトとして分類されます。

insert_id の型:int
insert_id ボルトインターフェイスにボリュームを入力するオプションID。 欠席の場合は 0 を使用します。

threaded_vol_id の型:int
threaded_vol_id オプション ID の threaded (lower) ボリューム. 欠席または未知の場合 0 を使用します。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの対応する文字列vector: [0] 各推奨操作の表示文字列、[1] 操作用Cubitコマンド、[2] 可視化用previewコマンド、[3] 機械学習ツール向け形式の操作文字列。Pythonではlistのtupleとして返されます。

◆ get_solutions_for_bolt_hole()

def cubit.get_solutions_for_bolt_hole (   bearing_hole,
  threaded_holes 
)

修理または修理のオプションを提案し、集中式のパイロットホールのセット。

持つ穴のサーフェスIDと集中線の穴のサーフェスIDのリストを考慮して、この機能は、修理または最適化の操作の可能性を特定します。

.. code-block:: python
cubit.cmd ("brick x 10 y 10 z 2" )
cubit.cmd ("brick x 10 y 10 z 2" )
cubit.cmd ("volume 2 move z 2" )
cubit.cmd ("cylinder radius 1 height 10" )
cubit.cmd ("subtract volume 3 from volume 1 2" )
threaded_holes = [19]
solutions = cubit.get_solutions_for_bolt_hole (16, threaded_holes)

for i in range(3): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output (first three results only):
# Option: Delete Pilot Hole at Surfaces 16 19
# Command: remove surface 16 19 include hole
# Preview: highlight surface 16 19
# Shorthand: 57 16 19
# Option: Reduce Hole at Surfaces 16 19 Spider Wagon Wheel
# Command: reduce upper surface 16 lower surface 19 hole spider wagon wheel mesh
# Preview: highlight surface 16 19
# Shorthand: 58 16 19 3 1 0
# Option: Reduce Hole at Surfaces 16 19 Spider J2G
# Command: reduce upper surface 16 lower surface 19 hole spider j2g mesh
# Preview: highlight surface 16 19
# Shorthand: 58 16 19 3 2 0
 @n type of bearing_hole:  int
パラメータ
bearing_hole サーフェスのIDは、運ぶ穴(穴ごとに1個)にあります。

threaded_holes の型:std::vector< int,std::allocator< int > >
threaded_holes サーフェスIDのリストは、集中線の穴(穴ごとに1個)から。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの対応する文字列vector: [0] 各提案操作の表示文字列、[1] 実行用Cubitコマンド、[2] 可視化用previewコマンド、[3] 操作IDとサーフェスIDを識別する短縮文字列。Pythonではlistのtupleとして返されます。

◆ get_solutions_for_cavity_surface()

def cubit.get_solutions_for_cavity_surface (   surface_id )

可能な穴の除去または調整ソリューションを特定の「サーフェス」(およびその穴が適用される場合)に提供します。

サーフェスIDを考慮して、この機能は、そのサーフェスにジオメトリの穴を除去または調整するための可能なソリューションを返します。 サーフェスが穴の一部である場合、解決策には、全体の穴のための操作も含まれます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
# Get cavity removal solutions for surface 17:
surface_id = 17
solutions = cubit.get_solutions_for_cavity_surface (surface_id)

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
# Expected output:
# Option: Remove Cavity at Surface 17
# Command: remove surface 17 cavity
# Preview: remove surface 17 cavity preview
 @n type of surface_id:  int
パラメータ
surface_id サーフェスが求められています。 穴の一部であれば、解決策には完全な穴が含まれます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
3つの文字列vector: [0] 各推奨cavity solutionの表示文字列、[1] 各cavity solutionを適用するCubitコマンド文字列、[2] Cubit previewコマンド文字列。

◆ get_solutions_for_chamfers()

def cubit.get_solutions_for_chamfers (   surface_id )

特定のサーフェスのための可能なカムファー除去ソリューションを提供する(およびそのカムファーチェーンが適用される場合)。

サーフェスIDを考慮して、この機能は、そのサーフェスのカムフェルを削除または調整するための可能なソリューションを返します。 サーフェスがシャンファーチェーンの一部である場合、ソリューションには、シャンファーチェーン全体の操作も含まれます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("modify curve 12 2 8 11 chamfer radius 1" ) # Chamfer the four curves on surface 5
# Get chamfer removal solutions for surface 10:
surface_id = 10
solutions = cubit.get_solutions_for_chamfers (surface_id)

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output:
# Option: Remove Chamfer Chain at Surface 10
# Command: remove surface 10 chamfer_chain
# Preview: remove surface 10 chamfer_chain preview
# Shorthand: 15 10
 @n type of surface_id:  int
パラメータ
surface_id サーフェスが求められています。 シャムファーチェーンの一部であれば、ソリューションには全チェーンが含まれます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトル: [0] 各推奨混合ソリューションのためのディスプレイライン、 [1] 各混合ソリューションに適用するCubitのコマンドのライン、 [2] コマンドのCubitのプレビューライン、 [3] ショートハンドの説明(操作IDおよび関連するサーフェスID)。

◆ get_solutions_for_classified_surface()

def cubit.get_solutions_for_classified_surface (   classification,
  surf_id 
)

分類されたサーフェスのための修正や修正を提案します。

.. code-block:: python

#Subtract a smaller cylinder from a larger one.
cubit.cmd ("cylinder rad 10 height 3" ) # volume 1
cubit.cmd ("cylinder rad 8 height 3" ) # volume 2
cubit.cmd ("subtract vol 2 from vol 1" ) # creates annulus surface 9
cubit.cmd ("classify surface 9 \"slot\"" ) # machine learning operation

for disp, cmd, prev, shrt in zip(solutions[0], solutions[1], solutions[2], solutions[3]): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
 @n type of classification:  string
パラメータ
classification サーフェスへ割り当てられたタイプ(例: "slot"、"hole"、"fillet")。

surf_id の型:int
surf_id 分類されたサーフェスのID。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの文字列vector: [0] 各remedyを説明する表示文字列、[1] 各remedyを実行するCubitコマンド文字列、[2] 可視化用previewコマンド、[3] 短縮操作記述子。

◆ get_solutions_for_classified_volume()

def cubit.get_solutions_for_classified_volume (   classification,
  vol_id 
)

ジオメトリの修正または「フィーチャ」の操作をボリュームに基づいて提案します。

分類タイプとボリュームIDを考慮して、この機能は推奨された変更を生成します。

CubitのMLシステムから分類を取得するには、 get_ML_classification() .

.. code-block:: python
cubit.cmd ("cylinder radius 1 height 10" ) # volume 1
cubit.cmd ("cylinder radius 2 height 2" ) # volume 2
cubit.cmd ("volume 2 move z 5" )
cubit.cmd ("unite volume all" ) # volume 1 becomes a bolt

for i in range(3): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" ML Op:" , solutions[3][i])
# Expected output (first three results only):
# Option: Delete Bolt Volume 1
# Command: delete volume 1
# Preview: highlight volume 1
# ML Op: 40 1 0
# Option: Reduce Bolt 1 Simplify
# Command: reduce volume 1
# Preview: highlight volume 1
# ML Op: 42 1 0
# Option: Reduce Bolt 1 Tight Fit
# Command: reduce volume 1 bolt fit_volume tight_fit remove_key merge
# Preview: highlight volume 1
# ML Op: 42 1 0 1 1 0
 @n type of classification:  string
パラメータ
classification 分類タイプ: "bolt"、"nut"、"washer"、"spring"、"ball"、"race"、"pin"、"gear"、"insert"、"other"のいずれか。

vol_id の型:int
vol_id 処理するためのボリュームのID。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの対応する文字列vector: [0] 各提案操作の表示文字列、[1] 操作用Cubitコマンド文字列、[2] 可視化用previewコマンド文字列、[3] 機械学習形式の操作文字列。

◆ get_solutions_for_close_loop()

def cubit.get_solutions_for_close_loop (   surface_id,
  mesh_size 
)

狭い地域を解決するために、近距離のサーフェスのための推奨された治療法を取得します。

.. code-block:: python

cubit.cmd ("cylinder radius 3 height 10" )
cubit.cmd ("modify curve 2 blend radius 0.5" )
mesh_size = 1.0
solutions = cubit.get_solutions_for_close_loop (4, mesh_size)

for disp, cmd, prev, shrt in zip(solutions[0], solutions[1], solutions[2], solutions[3]): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# Expected output:
# Option: Remove Surface 4
# Command: remove surface 4 extend
# Preview: remove surface 4 extend preview
# Shorthand: 5 4
# Option: Composite Surfaces 4 and 3
# Command: composite create surface 4 3 keep angle 180.0
# Preview: highlight surface 4 3
# Shorthand: 7 4 3
# Option: Composite Surfaces 4 and 1
# Command: composite create surface 4 1 keep angle 180.0
# Preview: highlight surface 4 1
# Shorthand: 7 4 1
 @n type of surface_id:  int
パラメータ
surface_id サーフェスに近いサーフェスのアイデンティティが求められている。

mesh_size の型:float
mesh_size 距離の限界は、狭いループ地域を定義する。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトルのベクトル: [0] 各治療法のためのラインを表示する [1] Cubit コマンド各治療法を適用するためのライン、 [2] Cubit プレビューコマンドライン、 [3] ショートハンドの説明(操作 ID とエンティティ ID) 操作を再構築するために。

◆ get_solutions_for_cone_surface()

def cubit.get_solutions_for_cone_surface (   surface_id )

サーフェスを「円錐」と分類するための治療法を提案します。

円錐サーフェスに対する推奨操作を返します。人が読める説明、適用用Cubitコマンド文字列、可視化用previewコマンド、serializationまたは機械学習workflow用の短縮文字列を含みます。

.. code-block:: python
cubit.cmd ("create frustum height 2 radius 2 top 0" )
cubit.cmd ("cylinder rad 2 height 10" )
cubit.cmd ("vol 2 mov z -6" )
cubit.cmd ("unite vol all" )
cubit.cmd ("brick x 10" )
cubit.cmd ("subtract vol 1 from vol 3" ) # cone surface becomes surface 13

for disp, cmd, prev, shrt in zip(solutions[0], solutions[1], solutions[2], solutions[3]): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# Output:
# Option: Remove Cone Surface 13
# Command: tweak surface 13 cone
# Preview: highlight surface 13
# Shorthand: 13 13
# Option: Composite Surfaces 13 and 12
# Command: composite create surface 13 12 keep angle 180.0
# Preview: highlight surface 13 12
# Shorthand: 7 13 12
 @n type of surface_id:  int
パラメータ
surface_id コニカルサーフェスのID

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトル: [0] 推奨される操作の各行のためのディスプレイライン、 [1] Cubitのコマンドのライン、 [2] コマンドのプレビューライン、 [3] ショートハンドの操作の説明ライン。
注
Pythonでは、返されたベクトルはトップルになります。

◆ get_solutions_for_connected_surfaces()

def cubit.get_solutions_for_connected_surfaces (   surf_ids,
  common_surface_type 
)

サーフェスの接続されたセットに2つの操作を提案します。

相互に接続されているサーフェスIDのリストを考慮して、この機能は正確に2つの候補者操作を返します: (1)接続地域の削除。 (2)単一の顔にサーフェスの構成。

それぞれのソリューションは、4つの要素のストリップリストとして表示されます: [0] 操作のためのディスプレイストリップ。 [1]コマンドをコマンドで実行します。 [2]Cubitプレビューコマンド。 (3) ML ショートハンドストレッチ(操作 + ID を含む)

ML ショートハンドは操作とサーフェスIDを暗号化し、その「フィーチャ」タイプは指定されたIDから引き出される。 common_surface_type .

注
サーフェスが実際に接続されているかどうか、または指定されたサーフェスタイプが有効であるかどうかを確認する機能はありません。 どちらも正しいと仮定する。
.. code-block:: python
import cubit
surf_ids = [12, 13, 14, 15]
solutions = cubit.get_solutions_for_connected_surfaces (surf_ids, "chamfer" )

for disp, cmd, prev, shrt in zip(*solutions): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)



surf_ids の型:std::vector< int,std::allocator< int > >

パラメータ
surf_ids サーフェスのIDは、相互に接続しなければならない。



common_surface_type の型:string

パラメータ
common_surface_type 関連するサーフェスの有名なタイプ。
One "chamfer"、"blend"、"cavity"、"cone"、またはデフォルトの"contiguous"。このタイプは各解のML用短縮文字列に反映されます。



戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >

戻り値
長さの4行のベクトルの長さ2: [0] 各操作のためのラインを表示し、 [1] Cubit コマンド、 [2] Preview コマンド、 [3] ML ショートハンドライン(入力タイプから引き出されたフィーチャタイプ)。 Pythonでは、結果はリストのトップルです。

◆ get_solutions_for_decomposition()

def cubit.get_solutions_for_decomposition (   volume_list,
  exterior_angle,
  do_imprint_merge,
  tolerant_imprint 
)

外側の角度基準に基づいてボリュームの可能な分解ソリューションを提供します。

ボリュームのリストと外側の角度の範囲を考慮して、この機能は可能な分解を示す。 オプションとして、印刷と合併は、分解プロセスをサポートするために実行することができます。

.. code-block:: python
cubit.cmd ("brick x 10 y 10 z 2" ) # Volume 1
cubit.cmd ("brick x 10 y 2 z 10" ) # Volume 2
cubit.cmd ("volume 2 move y -5" )
cubit.cmd ("unite volume all" )
volume_list = [1]
exterior_angle = 135.0
do_imprint_merge = False
tolerant_imprint = False
solutions = cubit.get_solutions_for_decomposition (volume_list, exterior_angle, do_imprint_merge, tolerant_imprint)

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
# Expected output (partial):
# Option: Webcut Volume 1 With Sheet Extended From Surface 17
# Command: webcut volume 1 with sheet extended from surface 17 imprint merge include_neighbors
# Preview: webcut volume 1 with sheet extended from surface 17 imprint merge include_neighbors preview
# Option: Webcut Volume 1 With Sheet Extended From Surface 16
# Command: webcut volume 1 with sheet extended from surface 16 imprint merge include_neighbors
# Preview: webcut volume 1 with sheet extended from surface 16 imprint merge include_neighbors preview
# ... additional options ...
 @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

exterior_angle の型:float
exterior_angle 解体面を決定するために使用される外側の角度(度)の限界値。

do_imprint_merge の型:boolean
do_imprint_merge もしそうなら、印刷を実行し、解体をサポートするために操作を組み合わせる。

tolerant_imprint の型:boolean
tolerant_imprint 真実なら、寛容な印刷を行います。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの文字列vector: [0] 各推奨decompositionオプションの表示文字列、[1] 各decompositionオプションを適用するCubitコマンド文字列、[2] Cubit previewコマンド文字列、[3] 短縮記述(操作IDと関連するvolumeまたはsurface ID)。解によっては空の場合があります。

◆ get_solutions_for_imprint_merge()

def cubit.get_solutions_for_imprint_merge (   surface_id1,
  surface_id2 
)

印刷/合併のための治療法を提案すると、2つの上着のサーフェスが異なるボリュームにあります。

異なるボリュームから2つのサーフェスIDを乗り越えると、この機能は、乗り越えを解決するために提案された操作を提供します。

事前に「サーフェス」を上回ることを検出するには、get_overlapping_surfaces_at_surface(単一の「表面」のために)またはget_overlapping_surfaces_in_volumes(ボリュームのセットのために)を使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder radius 3 height 10" )
cubit.cmd ("volume 2 move z 10" )

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
# Expected output (3 remedies):
# Option: Imprint with curves 13
# Command: imprint tolerant surface 1 with curve 13 merge
# Preview: draw surface 1 8 overlap;highlight curve 13
# Option: Auto Fix
# Command: merge surface 1 8 auto_imprint
# Preview:
# Option: Tolerant Imprint Owning Volumes
# Command: imprint tolerant volume 1 2 merge
# Preview:
 @n type of surface_id1:  int
パラメータ
surface_id1 最初の重複サーフェスのID(surface_id2とは異なるボリューム上にある必要があります)。

surface_id2 の型:int
surface_id2 2番目のサーフェスのID(surface_id1とは異なるボリュームでなければなりません)。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4つの連合線ベクトルのベクトル: [0] 各推奨療法のためのラインを表示する, [1] Cubit コマンドラインを各治療法に適用する, [2] Cubit プレビューコマンドラインを各治療法に適用する, [3] Shorthand の説明(操作 ID とサーフェス / ボリューム ID; 空っぽかもしれません)。

◆ get_solutions_for_near_coincident_vertex_and_curve()

def cubit.get_solutions_for_near_coincident_vertex_and_curve (   vertex_id,
  curve_id 
)

「頂点」が別のボリュームからカーブに置かれている場合の解決策を提案します。

異なるボリュームから頂点と近隣のカーブを考慮して、この機能は操作を特定し、ジオメトリの問題を導入せずに近隣の偶然を解決します。

このような頂点とカーブのカップルを検出するには、get_close_vertex_curve_pairsを使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("volume 2 move x 10 y 5 z 0.01" )

for i in range(3): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output (first three results only):
# Option: tweak surfaces in vertex 12 to curve 1
# Command: tweak surface in vertex 12 move vertex 12 location 5 0 5
# Preview: tweak surface in vertex 12 move vertex 12 location 5 0 5 preview
# Shorthand: 47 12 1 5 0 5
# Option: tweak surfaces in curve 1 to vertex 12
# Command: tweak surface in curve 1 move curve 1 location vertex 12
# Preview: tweak surface in curve 1 move curve 1 location vertex 12 preview
# Shorthand: 48 1 12 0 0 0
# Option: move volume 2 from vertex 12 to curve 1
# Command: move vertex 12 location 5 0 5 include_merged
# Preview: move vertex 12 location 5 0 5 include_merged preview
# Shorthand: 52 12 1 5 0 5
 @n type of vertex_id:  int
パラメータ
vertex_id 特にカーブと一致する頂点のID(異なるボリュームでなければならない)。

curve_id の型:int
curve_id 頂点の近くにあるカーブのID(異なるボリュームでなければならない)。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4つの連合線ベクトルのベクトル: [0] 各推奨療法のためのラインを表示し、 [1] Cubit コマンドラインを各治療法に適用し、 [2] Cubit プレビューコマンドラインを各治療法に適用し、 [3] Shorthand の説明(操作 ID および頂点/カーブ ID)。

◆ get_solutions_for_near_coincident_vertex_and_surface()

def cubit.get_solutions_for_near_coincident_vertex_and_surface (   vertex_id,
  surface_id 
)

「頂点」が別のボリュームからサーフェスに置かれている場合の解決策を提案します。

異なるボリュームから頂点と近隣の「サーフェス」を考慮して、この機能は、ツイクやボリュームの調整などの潜在的な修正を特定します。

近くの偶然の頂点とサーフェスのカップルを特定するには、get_close_vertex_surface_pairsを使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("volume 2 move x 10.01 y 5 z 5" )

for i in range(3): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output (first three results only):
# Option: tweak surfaces in vertex 15 to surface 6
# Command: tweak surface in vertex 15 move vertex 15 location 5 0 0
# Preview: tweak surface in vertex 15 move vertex 15 location 5 0 0 preview
# Shorthand: 49 15 6 5 0 0
# Option: tweak surface 6 to vertex 15
# Command: tweak surface 6 move surface 6 location vertex 15
# Preview: tweak surface 6 move surface 6 location vertex 15 preview
# Shorthand: 50 6 15 0 0 0
# Option: move volume 2 from vertex 15 to surface 6
# Command: move vertex 15 location 5 0 0 include_merged
# Preview: move vertex 15 location 5 0 0 include_merged preview
# Shorthand: 54 15 6 5 0 0
 @n type of vertex_id:  int
パラメータ
vertex_id 特にサーフェスと一致する頂点のID(異なるボリュームでなければならない)。

surface_id の型:int
surface_id 頂点の近くにあるサーフェスのID(異なるボリュームでなければならない)。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4つの連合線ベクトルのベクトル: [0] 各推奨療法のためのラインを表示し、 [1] Cubit コマンドラインを各治療法に適用し、 [2] Cubit プレビューコマンドラインを各治療法に適用し、 [3] Shorthand の説明(操作 ID と頂点 / サーフェス ID)。

◆ get_solutions_for_near_coincident_vertices()

def cubit.get_solutions_for_near_coincident_vertices (   vertex_id_1,
  vertex_id_2 
)

異なるボリュームで2つの偶然の頂点を解決するための修正を提供し、欠陥や誤解を解決します。

vertexは異なるvolumeに属している必要があります。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("volume 2 move x 10 y 0.01" )

for disp, cmd, prev, shrt in zip(solutions[0][:3], solutions[1][:3], solutions[2][:3], solutions[3][:3]): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
print("and more" )
# Expected output:
# Option: tweak surfaces in vertex 2 to vertex 11
# Command: tweak surface in vertex 2 move vertex 2 location vertex 11
# Preview: tweak surface in vertex 2 move vertex 2 location vertex 11 preview
# Shorthand: 46 2 11 0 0 0
# Option: move volume 1 from vertex 2 to vertex 11
# Command: move vertex 2 location vertex 11 include_merged
# Preview: move vertex 2 location vertex 11 include_merged preview
# Shorthand: 51 2 11 0 0 0
# Option: tweak surfaces in vertex 11 to vertex 2
# Command: tweak surface in vertex 11 move vertex 11 location vertex 2
# Preview: tweak surface in vertex 11 move vertex 11 location vertex 2 preview
# Shorthand: 46 11 2 0 0 0
# and more
 @n type of vertex_id_1:  int
パラメータ
vertex_id_1 最初の頂点のID(ボリューム1に)

vertex_id_2 の型:int
vertex_id_2 2番目の頂点のID(ボリューム2)

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの文字列vector: [0] 各推奨remedyの表示文字列、[1] 各remedyを適用するCubitコマンド文字列、[2] Cubit previewコマンド文字列、[3] 短縮記述(操作IDとvertex ID)。

◆ get_solutions_for_overlapping_surfaces()

def cubit.get_solutions_for_overlapping_surfaces (   surface_id_1,
  surface_id_2 
)

異なるボリュームに2つのサーフェスを超えるための治療法を提案します。

同じスペースエリアを共有する異なるボリュームから2つのサーフェスIDを上回るため、この機能は上回りを解決するための印刷と合併のオプションを提供します。

「サーフェス」を上回ることを事前に確認するには、get_overlapping_surfaces_at_surfaceまたはget_overlapping_surfaces_in_volumesを使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("volume 2 move x 10" )

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output:
# Option: Imprint Volumes 1 2
# Command: imprint volume 1 2
# Preview: highlight volume 1 2
# Shorthand: 45 1 2
# Option: Imprint & Merge Volumes 1 2
# Command: imprint volume 1 2;merge volume 1 2
# Preview: highlight volume 1 2
# Shorthand: 44 1 2
 @n type of surface_id_1:  int
パラメータ
surface_id_1 最初のサーフェスのID(surface_id_2とは異なるボリュームでなければなりません)。

surface_id_2 の型:int
surface_id_2 2番目のサーフェスのID(surface_id_1とは異なるボリュームでなければなりません)。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4つの連合線ベクトルのベクトル: [0] 各推奨療法のためのラインを表示し、 [1] Cubit コマンドラインを各治療法に適用し、 [2] Cubit プレビューコマンドラインを各治療法に適用し、 [3] Shorthand の説明(操作 ID とボリューム ID) を表示します。

◆ get_solutions_for_overlapping_volumes()

def cubit.get_solutions_for_overlapping_volumes (   volume_id_1,
  volume_id_2,
  maximum_gap_tolerance,
  maximum_gap_angle 
)

gap許容差と角度許容差に基づいて、重複する2つのボリュームに対するremedyを提示します。

二つのボリュームIDが上流の固体を表し、上流が特定の差または角度の許容差を超える場合、この機能は操作を示すので、干渉を解決します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder radius 3 height 10" )
cubit.cmd ("volume 2 move x 9.9" )
solutions = cubit.get_solutions_for_overlapping_volumes (1, 2, 0.2, 5.0)

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output:
# Option: Remove Overlap from Smaller Volume (2)
# Command: remove overlap volume 1 2 modify smaller
# Preview: highlight volume 2
# Shorthand: 41 2 1
# Option: Remove Overlap from Larger Volume (1)
# Command: remove overlap volume 1 2 modify larger
# Preview: highlight volume 1
# Shorthand: 41 1 2
# Option: Replace Surface 1 with Surface 8
# Command: tweak surface 1 replace with surface 8
# Preview: tweak surface 1 replace with surface 8 preview
# Shorthand: 6 1 8
# Option: Replace Surface 8 with Surface 1
# Command: tweak surface 8 replace with surface 1
# Preview: tweak surface 8 replace with surface 1 preview
# Shorthand: 6 8 1
 @n type of volume_id_1:  int
パラメータ
volume_id_1 最初のボリュームのID。

volume_id_2 の型:int
volume_id_2 2番目のボリュームのID

maximum_gap_tolerance の型:float
maximum_gap_tolerance ボリュームの前に許可される最大の格差は、過剰であると考えられます。

maximum_gap_angle の型:float
maximum_gap_angle 最大限は、上層地域における角度偏差が許可されます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトルのベクトル: [0] 各推奨療法のためのラインを表示し、 [1] Cubit コマンドラインを各治療法に適用し、 [2] Cubit プレビューコマンドライン、 [3] ショートハンドの説明(操作 ID とボリュームまたはサーフェス ID)。

◆ get_solutions_for_protrusion_surface()

def cubit.get_solutions_for_protrusion_surface (   surface_id )

特定のサーフェス(および適用される場合、そのプロトゥーシング)のための可能なプロトゥーシング除去または調整ソリューションを提供する。

サーフェスIDを考慮して、この機能は、そのサーフェスにジオメトリのプロトリウムを削除または調整するための可能なソリューションを返します。 サーフェスがプロトゥーシュの一部である場合、ソリューションには、プロトゥーシュ全体のグループの操作も含まれます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("unite volume 1 2" )
# Get protrusion removal solutions for surface 12:
surface_id = 12

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
# Expected output:
# Option: Remove Protrusion at Surface 12
# Command: remove surface 12 protrusion
# Preview: remove surface 12 protrusion preview



surface_id の型:int

パラメータ
surface_id サーフェスが求められています。 プロトゥーシュの一部である場合、解決策には、完全なプロトゥーシュグループが含まれます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
3つの文字列vector: [0] 各推奨protrusion solutionの表示文字列、[1] 各protrusion solutionを適用するCubitコマンド文字列、[2] Cubit previewコマンド文字列。

◆ get_solutions_for_sharp_angle_vertex()

def cubit.get_solutions_for_sharp_angle_vertex (   vertex_id,
  small_curve_size,
  mesh_size 
)

Retrieve recommended remedies for a sharp angle at a 'top point' は、頂点の鋭い角度のための推奨療法を取得します。

.. code-block:: python

cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 5 height 10" )
cubit.cmd ("vol 2 mov z 10" )
cubit.cmd ("unite vol 1 2" )
small_curve_size = 0.25
mesh_size = 1.0
solutions = cubit.get_solutions_for_sharp_angle_vertex (12, small_curve_size, mesh_size)

for disp, cmd, prev, shrt in zip(solutions[0], solutions[1], solutions[2], solutions[3]): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# Expected output (first 3 options shown, more options are returned):
# Option: Blunt Tangency at Vertex 12 Remove Material using Angle 15
# Command: blunt tangency vertex 12 remove_material angle 15
# Preview: blunt tangency vertex 12 remove_material angle 15 preview
# Shorthand: 12 12 0 1 15 -1
# Option: Blunt Tangency at Vertex 12 Add Material using Angle 15
# Command: blunt tangency vertex 12 angle 15
# Preview: blunt tangency vertex 12 angle 15 preview
# Shorthand: 12 12 0 0 15 -1
# Option: Blunt Tangency at Vertex 12 Remove Material using Angle 30
# Command: blunt tangency vertex 12 remove_material angle 30
# Preview: blunt tangency vertex 12 remove_material angle 30 preview
# Shorthand: 12 12 0 1 30 -1
# ...
# (Additional options omitted for brevity.)
 @n type of vertex_id:  int
パラメータ
vertex_id 頂点のアイデンティティは、要望される鋭い角度で表示されます。

small_curve_size の型:float
small_curve_size カーブを"small"とみなす基準を定義するしきい値。

mesh_size の型:float
mesh_size 要素サイズはメッシングに使用され、ソリューションを通知するために使用されます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトルのベクトル: [0] 各治療法のためのラインを表示する [1] Cubit コマンド各治療法を適用するためのライン、 [2] Cubit プレビューコマンドライン、 [3] ショートハンドの説明(操作 ID とエンティティ ID) 操作を再構築するために。

◆ get_solutions_for_sheet_volume_connection()

def cubit.get_solutions_for_sheet_volume_connection (   args,
  kwargs 
)

サーフェスツイック、印刷、および合併操作を提案して、2つのシートボリュームセットをブリッジします。

get_solutions_for_sheet_volumes(単一のグループ)とは異なり、この機能は2つの別々のシートボディセットを結びつけることで、まずそれぞれのセット(必要に応じて)に合併し、その後、ツイク、印刷、およびそれらの間の合併のステップを提案します。 葉は、ユニークな材料の任務を維持するために別々のボディに残ります。

.. code-block:: python
import cubit
cubit.cmd ("reset" )
cubit.cmd ("brick x 10 y 1 z 10" )
cubit.cmd ("brick x 1 z 10 y 10" )
cubit.cmd ("vol 2 mov x 5.5" )
cubit.cmd ("reduce vol 1 thin copy surface 5 loft factor 0 thickness 1" )
cubit.cmd ("reduce vol 2 thin midsurface surface 10 12 loft factor 0.5 thickness 1" )
v1 = [3]; v2 = [4]
sols = cubit.get_solutions_for_sheet_volume_connection (v1, v2, 1.0, 1.0, "" , 0)
print("Option:" , sols[0][0])
print(" Command:" , sols[1][0])
print(" Preview:" , sols[2][0])
print(" Shorthand:" , sols[3][0])
# Expected output:
# Option: Tweak Curve 25 to Sheet 4 (Surface 14)
# Command: tweak curve 25 target surface 14;imprint volume 4 with curve 25;merge volume 4 3
# Preview: tweak curve 25 target surface 14 preview
# Shorthand: 38 25 14 0.5 0 0
 @n type of vol1_sheets:  std::vector< int,std::allocator< int > >
パラメータ
vol1_sheets 最初のシートのIDボリュームセット(普通の親)

vol2_sheets の型:std::vector< int,std::allocator< int > >
vol2_sheets 2枚目のボリュームセット(一般親)のID。

thickness1 の型:float
thickness1 葉の厚さはvol1_sheetsにあります。

thickness2 の型:float
thickness2 葉の厚さはvol2_sheetsです。

close_type の型:string, optional
close_type 近傍へフォーカスするオプションのエンティティタイプ(例: "curve")。デフォルト = ""。

close_id の型:int, optional
close_id close_typeのエンティティのオプションID。 デフォルト=0

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4行のベクトル: [0] 各オプションのラベルを表示し、 [1] 各オプションを実行するためのコマンド、 [2] プレビューコマンド、 [3] ML トレーニングのための短手のラベル。

◆ get_solutions_for_sheet_volumes()

def cubit.get_solutions_for_sheet_volumes (   vol_ids,
  thickness 
)

「サーフェス」拡張と印刷/混合操作を提案してボディを接続します。

ボディのボリュームを分析し、サーフェスを拡張するコマンドを提案し、それらの間の格差を満たすためにサーフェスを拡張し、印刷を提案し、操作を組み合わせる。 葉は、ユニークな材料の任務を満たすために別々のボディに残ります。

.. code-block:: python
cubit.cmd ("brick x 10 y 1 z 10" )
cubit.cmd ("brick x 1 z 10 y 10" )
cubit.cmd ("vol 2 mov x 5.5" )
cubit.cmd ("reduce vol 1 thin copy surface 5 loft factor 0 thickness 1" ) # -> sheet 3
cubit.cmd ("reduce vol 2 thin midsurface surface 10 12 loft factor 0.5 thickness 1" ) # -> sheet 4
vol_ids = [3, 4]
thickness = [1.0, 1.0]
solutions = cubit.get_solutions_for_sheet_volumes (vol_ids, thickness)

for disp, cmd, prev, shrt in zip(*solutions): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# Expected output (only one option shown):
# Option: Tweak Curve 25 to Sheet 4 (Surface 14)
# Command: tweak curve 25 target surface 14;imprint volume 4 with curve 25;merge volume 4 3
# Preview: tweak curve 25 target surface 14 preview
# Shorthand: 38 25 14 0.5 0 0
 @n type of vol_ids:  std::vector< int,std::allocator< int > >
パラメータ
vol_ids 接続するためのボディページのID。

thickness の型:std::vector< double,std::allocator< double > >
thickness それぞれのボディの厚さ値に合致する。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
四行のベクトルのベクトル: [0] 各接続のオプションの説明を表示し、 [1] Cubitのコマンドは拡張を実行し、印刷し、合併し、 [2] Cubitのコマンドのプレビュー、 [3] 短手の線(MLトレーニング用)を表示します。

◆ get_solutions_for_small_curves()

def cubit.get_solutions_for_small_curves (   curve_id,
  small_curve_size,
  mesh_size 
)

すでに小型のカーブに操作を勧めます。

small_curve_sizeとmesh_sizeによりsmallと判定されたcurveを対象とし、surface removal、surface replacement tweak、curve collapse to vertex、またはtopology rebuild操作を提案します。

.. code-block:: python
import cubit
cubit.cmd ("reset" )
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 0.1" )
cubit.cmd ("vol 2 mov x 5 y 5 z 5" )
cubit.cmd ("subtract vol 2 from vol 1" )
curve_id = 28
small_curve_size = 0.25
mesh_size = 1.0
curve_id, small_curve_size, mesh_size)

for disp, cmd, prev, shrt in zip(*solutions)[:3]: print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# Expected output (first three of many):
# Option: Remove Surface 13
# Command: remove surface 13 extend
# Preview: remove surface 13 extend preview
# Shorthand: 5 13
# Option: Remove Surface 16
# Command: remove surface 16 extend
# Preview: remove surface 16 extend preview
# Shorthand: 5 16
# Option: Replace Surface 18 with Surface 14
# Command: tweak surface 18 replace with surface 14
# Preview: tweak surface 18 replace with surface 14 preview
# Shorthand: 6 18 14
# ...and more options
 @n type of curve_id:  int
パラメータ
curve_id 小さなカーブのアイデンティティ

small_curve_size の型:float
small_curve_size Curve-length threshold defining "small" features.

mesh_size の型:float
mesh_size コンテキストのためのターゲットメッシュ要素サイズ。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
四行のベクトルのベクトル: [0] ディスプレイラベル, [1] Cubit コマンド, [2] プレビューコマンド, [3] ML トレーニングのためのショートハンドライン。

◆ get_solutions_for_small_surfaces()

def cubit.get_solutions_for_small_surfaces (   surface_id,
  small_curve_size,
  mesh_size 
)

すでに小さく印刷されているサーフェスに操作を勧めます。

small_curve_sizeとmesh_sizeによりsmallと判定されたsurfaceを対象とし、composite merge、topology rebuild、surface removal、またはsurface replacement tweakを提案します。

.. code-block:: python
import cubit
cubit.cmd ("reset" )
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 0.1" )
cubit.cmd ("vol 2 mov x 5 y 5 z 5" )
cubit.cmd ("subtract vol 2 from vol 1" )
surface_id = 13
surface_id, 0.25, 1.0)

for disp, cmd, prev, shrt in zip(*solutions)[:3]: print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# ...and more options
 @n type of surface_id:  int
パラメータ
surface_id 修正するためのサーフェスのID。

small_curve_size の型:float
small_curve_size カーブが小さいと考えられる限界。

mesh_size の型:float
mesh_size コンテキストのためのターゲットメッシュ要素サイズ。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4つのラインベクトル: [0] ディスプレイラベル、 [1] 実行コマンド、 [2] プレビューコマンド、 [3] 短手のライン ML トレーニング。

◆ get_solutions_for_surfaces_with_narrow_regions()

def cubit.get_solutions_for_surfaces_with_narrow_regions (   surface_id,
  small_curve_size,
  mesh_size 
)

操作を推奨し、狭い領域を狭い領域と定義された「サーフェス」で排除する。

狭い地域のサーフェスを分析し、操作を提案します。



surface_id の型:int

パラメータ
surface_id 分析するためのサーフェスのID。

small_curve_size の型:float
small_curve_size 長さの限界は、狭い地域を定義する。

mesh_size の型:float
mesh_size コンテキストのためのターゲットメッシュ要素サイズ。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
3つの文字列vector: [0] 各solutionの表示説明、[1] solutionを実行するCubitコマンド文字列、[2] Cubit previewコマンド文字列。(Pythonではlistのtupleとして返されます。)

◆ get_solutions_for_thin_volume()

def cubit.get_solutions_for_thin_volume (   vol_id,
  near_vols,
  include_weights = False,
  include_type = False 
)

候補者の操作を生成して、薄いボリュームをボディの葉に減らす。

コピーまたは中間表面の操作(オプションの重量/タイプ)をコピーすることをお勧めし、ボリュームをシールに減らす。

.. code-block:: python
cubit.cmd ("brick x 10 y 1 z 10" )
cubit.cmd ("brick x 1 y 10 z 10" )
cubit.cmd ("move volume 2 by x 4.5 y 4.5" )
cubit.cmd ("unite volume all" )
vol_id = 1
near_vols = []
solutions = cubit.get_solutions_for_thin_volume (vol_id, near_vols)

for disp, cmd, prev, shrt in zip(*solutions[:3]): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
print("...and more options available" )
# Expected output for first three options:
# Option: Copy Surfaces 13 15
# Command: reduce volume 1 thin copy surface 13 15 loft factor 0 0 thickness 1 1
# Preview: reduce volume 1 thin copy surface 13 15 loft factor 0 0 thickness 1 1 preview
# Shorthand: 17 1 13 2 13 0 1 15 0 1
# Option: Copy Surfaces 6 17
# Command: reduce volume 1 thin copy surface 6 17 loft factor 0 0 thickness 1 1
# Preview: reduce volume 1 thin copy surface 6 17 loft factor 0 0 thickness 1 1 preview
# Shorthand: 17 1 6 2 6 0 1 17 0 1
# Option: Copy Surface 15
# Command: reduce volume 1 thin copy surface 15 loft factor 0 thickness 1
# Preview: reduce volume 1 thin copy surface 15 loft factor 0 thickness 1 preview
# Shorthand: 17 1 15 1 15 0 1
# ...and more options
 @n type of vol_id:  int
パラメータ
vol_id 薄いボリュームを表に変換するためのID。

near_vols の型:std::vector< int,std::allocator< int > >
near_vols 影響力を制限するために隣接するボリュームIDのリスト; 空はすべてを使用します。

include_weights の型:boolean, optional
include_weights もし真実なら、ヘウリスト重量(1=ベスト)で操作の各列を前進させます。 0=ひどい。

include_type の型:boolean, optional
include_type 正しい場合は、接続タイプコード(long_long=4, continuous=3, midsurface=2, copy=1)を含みます。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの文字列vector: [0] 各候補操作の表示ラベル、[1] 各操作を実行するCubitコマンド、[2] Cubit previewコマンド、[3] type、vol、surface、factorなどを符号化した短縮文字列。(Pythonではlistのtupleとして返されます。)

◆ get_solutions_for_volumes()

def cubit.get_solutions_for_volumes (   vol_id,
  small_curve_size,
  mesh_size 
)

サイズの範囲の下の「フィーチャ」でボリュームのための操作の修正を推奨します。

指定したボリュームを解析し、ユーザー指定しきい値より小さいカーブを検出して、メッシング前にそれらのフィーチャを除去する操作を提案します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 0.1" )
vol = 2
small_curve_size = 0.25
mesh_size = 1.0
solutions = cubit.get_solutions_for_volumes (vol, small_curve_size, mesh_size)

for disp, cmd, prev, shrt in zip(*solutions): print("Option:", disp)

print(" Command:" , cmd)
print(" Preview:" , prev)
print(" Shorthand:" , shrt)
# Expected output:
# Option: Delete Volume 2
# Command: delete volume 2
# Preview: highlight volume 2
# Shorthand: 40 2 0
 @n type of vol_id:  int
パラメータ
vol_id 検証するためのボリュームのID。

small_curve_size の型:float
small_curve_size "small"と判定する最大カーブ長。

mesh_size の型:float
mesh_size ターゲットメッシュの要素のサイズはボリュームのサイズです。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
4つの文字列vector: [0] 各remedyオプションの表示ラベル、[1] 各remedyを実行するCubitコマンド、[2] Cubit previewコマンド、[3] ML学習用の短縮操作文字列。

◆ get_source_surfaces()

def cubit.get_source_surfaces (   volume_id )

指定ボリュームのsweep source surfaceリストを取得します。

ボリュームがSweepのスキームを使用すると、ソースサーフェスは六面体のメッシュが抽出される出発面です。 この機能は、ソースとして指定されたすべてのサーフェスIDを返します。 明確なソースが設定されていない場合は、空っぽのリストを返します。

.. code-block:: python
# 1) Create a brick (Volume ID = 1).
cubit.cmd ("brick x 10" ) # Volume ID = 1
# 2) Specify surface 2 as the source and surface 5 as the target for sweeping.
cubit.cmd ("vol 1 scheme sweep source surf 2 target surf 5" )
# 3) Query the source surfaces for volume 1.
# Expected output: (2,)
print("Source surfaces:" , sources)
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのリスト(ベクトル<int>またはPythonトップル)は、『Sweep』ソースとして指定されています。

◆ get_sphere_count()

def cubit.get_sphere_count ( )

現在のモデルで要素のスペースの数を回収します。

sphere要素とは、element typeが"sphere"に設定されたnodeです。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol all" )
cubit.cmd ("block 1 node all" )
cubit.cmd ("block 1 element type sphere" )
sphere_count = cubit.get_sphere_count ()
print("Sphere count:" , sphere_count)
 @n return type of :  int
戻り値
現在のモデル内のsphere要素数("sphere"としてフラグされたnode数)。

◆ get_sphere_global_element_id()

def cubit.get_sphere_global_element_id (   sphere_id )

特定のノード(SPHEREの要素)のためのグローバル要素IDを取得します。

Cubitはグローバル要素IDを各メッシュのエンティティに割り当て、それをブロックに置く。 ノードはSPHEREの要素としてメッシュに表示されます。 この機能は、そのタイプ特定のID スペース内の特定の地元領域(ノード)IDに合致するグローバル要素IDを返します。

.. code-block:: python
# Create and mesh a brick volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Assign all vertices (nodes) in volume 1 to block 1
cubit.cmd ("block 1 vertex in vol 1" )
# Query the Global Element ID of local node 1
print("Global ID of node 1:" , gid) # prints 1
 @n type of sphere_id:  int
パラメータ
sphere_id 地元のノード(SPHERE)IDは、そのタイプ特定のIDスペース内です。

戻り値の型:int
戻り値
指定されたノードのグローバル要素IDまたはブロックに置かれていない場合、0。

◆ get_string_sculpt_default()

def cubit.get_string_sculpt_default (   variable )

Retrieve default string-valued sculpt パラメーター。

入力変数名のサブストレーションを既知の「sculpt」パラメーターと一致し、デフォルトを返します。

タイトル利用可能なストレージパラメーター

  • ROOT_FILE
  • QUALITY_FILE
  • VOLFRAC_FILE



variable の型:string

パラメータ
variable 「sculpt」のパラメーターサブストリングの名前。

戻り値の型:string
戻り値
指定されたパラメーターのデフォルトシート値。

◆ get_sub_elements()

def cubit.get_sub_elements (   entity_type,
  entity_id,
  dimension 
)

低次元のエンティティを高次元のメッシュの要素から得る。

この機能は、特定のメッシュの要素に指定された次元のすべてのサブエンティティのIDを返します。 たとえば、ヘクサヘドルのすべての顔(次元2)、あるいは三角形のすべてのエッジ(次元1)を得る。

ノート顔とエッジは、それぞれサーフェスとカーブにのみ作成されます。 ボリューム内の内部面やエッジは生成されません。 下の例では、ボリューム1の外側の「表面」に横たわっているため、3つの顔しか現れません。

.. code-block:: python
# Create and mesh a brick volume
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume 1" )
# Query the exterior faces (dimension 2) of hex element 1
faces = cubit.get_sub_elements ("hex" , 1, 2)
print("Hex 1 has faces:" , faces) # e.g. (391, 201, 91)
 @n type of entity_type:  string
パラメータ
entity_type 高次元エンティティのメッシュ要素タイプ(例: "hex"、"tet"、"tri"、"quad")。

entity_id の型:int
entity_id メッシュの要素のID。

dimension の型:int
dimension 得るためのサブエンティティのサイズ: 0 = 頂点、1 = エッジ、2 = 顔、3 = ボリューム。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
要求されたsub-entity IDのリスト(Python APIではPython tuple)。

◆ get_submap_corner_types()

def cubit.get_submap_corner_types (   surface_id )

頂点IDとその角型コードのリストをサーフェスサブマップに取得します。

Vertex タイプはそれぞれの角をメッシュの要素がそこにどれだけ集まるかによって分類します。

  • 1 未知: 分類されていないか、適用されていないか
  • 1 エンド: 内側の角度 ~ 90deg (一要素)
  • 2 サイド: 内部の角度 ~ 180deg (二つの要素)
  • 3 角: 内側の角度 ~ 270deg (三つの要素)
  • 4 逆: 内側の角度 ~ 360deg (四要素)
  • 5 三角形角: 三角形メッシュ要素の角
  • 6 non-‘三角形’: 非三角形のメッシュ要素の角



surface_id の型:int

パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:std::vector< std::pair< int,int >,std::allocator< std:: pair< int,int > > >
戻り値
vertex_idとcorner_typeのカップルのベクトル。

◆ get_surface_area()

def cubit.get_surface_area (   surface_id )

指定された「サーフェス」の面積を取得します。

.. code-block:: python

# Create a 10x10x10 brick centered at the origin; surfaces 1-6 are generated.
cubit.cmd ("brick x 10" )
area = cubit.get_surface_area (1) # top face area = 100
print("Surface 1 area:" , area) # prints 100
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:float
戻り値
指定されたサーフェスの面積

◆ get_surface_cavity_collections()

def cubit.get_surface_cavity_collections (   volume_list,
  area_threshold = -1,
  angle_tolerance = -1,
  combine_cavities = True 
)

指定されたボリュームに穴を形成するサーフェスのコレクションを返します。

cavityは連続するサーフェスの集合で、外角が(180 - angle_tolerance)以上となるカーブによって境界付けられます。cavityはサーフェス総面積でフィルタリングされます。

combine_cavitiesがtrueの場合、最初のcavity検出後に隣接する小さなcavityをmergeします。

area_threshold < 0.0の場合はすべてのcavityを返します。angle_tolerance < 0.0の場合はデフォルトの0.01度を使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
volume_ids = [1]
area_thresh = -1.0 # return all cavities
angle_tol_deg = 0.1
combine = False
cavity_collections = cubit.get_surface_cavity_collections (volume_ids, area_thresh, angle_tol_deg, combine)

for surfaces, area in cavity_collections: print("Cavity surfaces:", tuple(surfaces), "Area:", area)

# Expected output:
# Cavity surfaces: (17, 15, 16, 13, 14), Area: <value>
 @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

area_threshold の型:float, optional
area_threshold 総「サーフェス」の面積がこの値より低い回転穴。 0.0 未満の場合、すべての穴を返します。

angle_tolerance の型:float, optional
angle_tolerance 境界カーブの外角は (180 - angle_tolerance) 以上になります。0.0未満を指定した場合のデフォルトは0.01度です。

combine_cavities の型:boolean, optional
combine_cavities 真実なら、小さな隣接する穴は、最初の穴の検出後に組み合わせられます。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: 各カップルの注文リストには、 (1) 洞窟を定義する相対的なサーフェスIDのリスト、および (2) その洞窟の総サーフェスの面積(最小から最大の面積まで注文)が含まれます。

◆ get_surface_centroid()

def cubit.get_surface_centroid (   surface_id )

グラフィック面積に基づいて指定された「サーフェス」の約セントロイドを得る。

セントロイドはサーフェスの側面的な表現から計算されるので、それは接近です。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create a 10x10x10 brick centered at origin
print(centroid) # expected: (0.0, 0.0, 5.0)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:std:: array< double,3 >
戻り値
サーフェスの概算重心を表す3要素配列 [x, y, z]。

◆ get_surface_cone_collections()

def cubit.get_surface_cone_collections (   volume_list,
  radius_threshold = 0.0 
)

指定されたボリュームで「円錐」を含むサーフェスのコレクションを特定します。

「円錐」は単一のサーフェスまたは隣接する2つのサーフェスによってシンメトリックに分けられる。 結果は最大「円」の半径でフィルタリングできます。

.. code-block:: python
# Create a blind hole with a conical end
cubit.cmd ('brick x 10' )
cubit.cmd ('cylinder rad 1 height 5' )
cubit.cmd ('create frustum height 1 radius 1 top 0' )
cubit.cmd ('vol 3 mov z 3' )
cubit.cmd ('unite vol 2 3' )
cubit.cmd ('vol 2 mov z -3' )
cubit.cmd ('subtract vol 2 from vol 1' )
# Split the cone surface into two mirrored surfaces
cubit.cmd ('split period vol 1' )
cone_collections = cubit.get_surface_cone_collections ([1], 0.0)
print("Cone collections:" )

for surfaces, radius in cone_collections: print("Radius:", radius, "Surfaces:", [int(sid) for sid in surfaces])

# Expected output:
# Radius: <value>, Surfaces: [12, 13]



volume_list の型:std::vector< int,std::allocator< int > >

パラメータ
volume_list 照会するボリュームIDのリスト。

radius_threshold の型:float, optional
radius_threshold オプション最大半径 「円錐」と計算された半径がradius_thresholdより少なく、または同等であることを返します。 0の場合、「円」のすべてのコレクションが返還されます。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
サーフェスIDリスト、半径のカップルのリスト。 それぞれのカップルが一つの「円錐」のコレクションに合致します。 サーフェスは個々の「円」に分類されます。

◆ get_surface_count()

def cubit.get_surface_count ( )

モデルにサーフェスの現在の番号を入力します。

.. code-block:: python

# Create a 10x10x10 brick; this generates six surfaces.
cubit.cmd ("brick x 10" )
surf_count = cubit.get_surface_count () # returns 6
print("Surface count:" , surf_count)
 @n return type of :  int
戻り値
モデルで現在定義されているサーフェスの数。

◆ get_surface_element_count()

def cubit.get_surface_element_count (   surface_id )

指定された「サーフェス」に要素の数を返します。

指定された「サーフェス」に存在する四方的および三角的な要素の総数を、ブロックの割り当てに関係なく返します。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("mesh vol 1" ) # mesh volume 1 (surface faces become quads or tris)
print("Surface 1 elements:" , surf_count)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:int
戻り値
この「サーフェス」に四方的および三角的な要素の数。

◆ get_surface_hole_collections()

def cubit.get_surface_hole_collections (   volume_list,
  radius_threshold 
)

指定されたボリュームに穴を形成するサーフェスのコレクションを返します。

穴とは、シリンドリックまたは約シリンドリックの「フィーチャ」を形成する一貫したサーフェスの集まりである。 穴は計算された半径によってフィルタリングされます。

radius_thresholdが提供された場合、この値より少ないまたは等しい半径の穴のみが返還されます。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 1 height 10" )
cubit.cmd ("vol 2 move z 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
volume_ids = [1]
radius_thresh = 2.0
hole_collections = cubit.get_surface_hole_collections (volume_ids, radius_thresh)

for surfaces, radius in hole_collections: print("Hole surfaces:", tuple(surfaces), "Radius:", radius)

# Expected output:
# Hole surfaces: (10, 11), Radius: 1.0
 @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list 照会するボリュームIDのリスト。

radius_threshold の型:float
radius_threshold 計算された半径がこの値より少なく、または同等である穴を返します。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: 各カップルのカップルのリストには、(1)穴を定義する相対的なサーフェスIDのリスト、および(2)穴の計算された半径が含まれています。

◆ get_surface_loop_curves()

def cubit.get_surface_loop_curves (   surface_id )

サーフェスの各ロップのためのカーブIDを取得します。

この機能は、指定された「表面」の閉鎖ループごとに限界カーブを返します。 各ロップは、閉鎖された境界線を形成するカーブ(RefEdge)IDの注文リストとして表示されます。 穴や内部の境界線を持つサーフェスには、複数の穴があります。

サーフェスIDが無効である場合、エラーが印刷され、空のリストが返されます。

.. code-block:: python
# Create a brick and subtract a cylinder to create an internal loop
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 3 height 12" )
cubit.cmd ("subtract vol 2 from vol 1" )
# Query the loop curves on surface 1
print(f"Surface 11 has {len(loops)} loop(s)." )

for i, loop in enumerate(loops): print(" loop %d curves: %s" % (i, " ".join(str(c) for c in loop)))

@n type of surface_id:  int
パラメータ
surface_id サーフェスのアイデンティティ

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
サーフェスのループのリスト;それぞれのループはカーブIDのリストです。 エラーで空っぽのリストを返します。

◆ get_surface_loop_nodes()

def cubit.get_surface_loop_nodes (   surface_id )

ノードIDの注文リストをサーフェスの端に取得します。

この機能は、指定された「サーフェス」の各ロープのノードIDの注文リストを返します。 リストの最初のループは、外部ループです。 それぞれのループはノードIDの別々のリストとして返します。

ロープは以下のように注文されます。

  • 最初のリスト:外部ロープ(外部境界)
  • 次のリスト:内部の穴(穴、もし存在する場合)
.. code-block:: python
# Create a brick and subtract a cylinder to create an internal loop
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 3 height 10" )
cubit.cmd ("subtract vol 2 from vol 1" )
# Mesh the curves to ensure nodes exist on loops
cubit.cmd ("mesh curve in vol 1" )
# Query the nodes on the loops of surface 1
loop_nodes = cubit.get_surface_loop_nodes (1)
print(f"Surface 1 has {len(loop_nodes)} loop(s)." )

for i, loop in enumerate(loop_nodes): print(f" Loop {i+1} has {len(loop)} node(s):", " ".join(str(node_id) for node_id in loop))

  @n type of surface_id:  int
パラメータ
surface_id サーフェスのアイデンティティ

戻り値の型:std::vector< std::vector< int,std::allocator< int > >,std::allocator< std::vector< int,std:: allocator< int > > > >
戻り値
ノードIDのリスト、ロープごとに1つのリスト(最初のリストは外部ロープです)。

◆ get_surface_nodes()

def cubit.get_surface_nodes (   surface_id )

サーフェスが所有するノードIDのリストを取得します。

この機能は、指定されたサーフェスが所有するノードのIDを返します。 ノードとサーフェスのカーブと頂点のノードは排除されます。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the nodes on surface 5
surface_nodes = cubit.get_surface_nodes (5)
print(f"Surface 5 owns {len(surface_nodes)} node(s)." )

for node_id in surface_nodes: print(f" Node ID: {node_id}")

  @n type of surface_id:  int
パラメータ
surface_id サーフェスのアイデンティティ

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスが所有するノードIDのリスト(ノードを除くカーブと「頂点」を結びつける)。

◆ get_surface_normal()

def cubit.get_surface_normal (   surface_id )

指定されたサーフェスの中心にあるユニット法線ベクトルを取得します。

.. code-block:: python

# Create a 10x10x10 brick; surfaces 1-6 are generated.
cubit.cmd ("brick x 10" )
# Measure the normal for surface 1 (the top face).
print("Normal:" , normal) # Expected output: (0.0, 0.0, 1.0)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:std:: array< double,3 >
戻り値
3 要素の範囲(nx, ny, nz)は、サーフェスの中心にある単位の正常を表す。

◆ get_surface_normal_at_coord()

def cubit.get_surface_normal_at_coord (   surface_id,
  coord 
)

ユニット法線ベクトルをサーフェスの指定点で取得します。

.. code-block:: python

# Create a 10x10x10 brick centered at the origin; surfaces 1-6 are generated.
cubit.cmd ("brick x 10" )
# Pick a point at the center of surface 1: (0, 0, 5).
coord = (0.0, 0.0, 5.0)
normal = cubit.get_surface_normal_at_coord (1, coord)
print("Normal:" , normal) # Expected output: (0.0, 0.0, 1.0)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

coord の型:std::array< double,3 >
coord サーフェス上の点を表す3要素配列 {x, y, z}。

戻り値の型:std:: array< double,3 >
戻り値
3要素 array [nx, ny, nz] は、コルドの正常単位を表す。

◆ get_surface_num_loops()

def cubit.get_surface_num_loops (   surface_id )

サーフェスのスロップ数を取得します。

この機能は、指定されたサーフェスのループ数を返します。 A loop is a closed border on the ‘サーフェス’ はサーフェスに閉じた境界線です。 穴や内部の境界線を持つサーフェスには、複数の穴があります。

.. code-block:: python
# Create a brick and subtract a cylinder to create an internal loop
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 3 height 12" )
cubit.cmd ("subtract vol 2 from vol 1" )
# Query the number of loops on surface 1
num_loops = cubit.get_surface_num_loops (1)
print(f"Surface 1 has {num_loops} loop(s)." )
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのアイデンティティ

戻り値の型:int
戻り値
サーフェスの数を数える。

◆ get_surface_principal_curvatures()

def cubit.get_surface_principal_curvatures (   surface_id )

真ん中のサーフェスの主な曲線を手に入れる。

主な曲線は、一点でサーフェスが2つの正方形の方向でどのように曲がるかを定量します。 サーフェスの真ん中に、この機能は2つのスケール値を返します: k1 と k2. プラナールサーフェスの場合、両方の値は0です。 半径Rの領域の場合、両方の値は 1/R に等しい。

.. code-block:: python
# Create a sphere of radius 2; surface 1 is the spherical face.
cubit.cmd ("sphere rad 2" )
print("Principal curvatures:" , curvatures) # prints (0.5, 0.5)
# Create a planar brick face; surface 1 is planar.
cubit.cmd ("brick x 10" )
print("Principal curvatures:" , curvatures) # prints (0.0, 0.0)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:std::vector< double,std:: allocator< double > >
戻り値
二つのベクトルはサーフェスの真ん中の第一と第二の主要曲線を倍増する。

◆ get_surface_protrusion_collections()

def cubit.get_surface_protrusion_collections (   volume_list,
  area_threshold = -1,
  angle_tolerance = -1,
  combine_protrusions = True 
)

指定されたボリュームにプロトルを形成するサーフェスのコレクションを返します。

protrusionは連続するサーフェスの集合で、外角が(180 + angle_tolerance)以上となるカーブによって境界付けられます。protrusionはサーフェス総面積でフィルタリングされます。

combine_protrusionsが正しい場合は、最初の検出後に小さな付近のプロトゥーションが合併します。

area_threshold < 0.0の場合はすべてのprotrusionを返します。angle_tolerance < 0.0の場合はデフォルトの0.01度を使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("unite volume 1 2" )
volume_ids = [1]
area_thresh = -1.0 # return all protrusions
angle_tol_deg = 0.1
combine = False
protrusion_collections = cubit.get_surface_protrusion_collections (volume_ids, area_thresh, angle_tol_deg, combine)

for surfaces, area in protrusion_collections: print("Protrusion surfaces:", tuple(surfaces), "Area:", area)

# Expected output:
# Protrusion surfaces: (17, 19, 20, 21, 22, 23), Area: <value>



volume_list の型:std::vector< int,std::allocator< int > >

パラメータ
volume_list 照会するボリュームIDのリスト。

area_threshold の型:float, optional
area_threshold 合計「サーフェス」の面積がこの値より低い返還プロトルシウム。 0.0 未満の場合、すべてのプロトリウムを返します。

angle_tolerance の型:float, optional
angle_tolerance 境界カーブの外角は (180 + angle_tolerance) 以上である必要があります。0.0未満を指定した場合のデフォルトは0.01度です。

combine_protrusions の型:boolean, optional
combine_protrusions 真実なら、最初の検出後、小さな隣接するプロトゥーションが組み合わせられます。

戻り値の型:std::vector< std::pair< std::vector< int,std::allocator< int > >,double >,std::allocator< std::pair< std::vector< int,std:: allocator< int > >,double > > >
戻り値
: 各カップルの注文リストには、(1)プロトゥーズを定義する相対的なサーフェスIDのリスト、および(2)そのプロトゥーズの総サーフェスの面積(最小から最大の面積まで注文)が含まれます。

◆ get_surface_quads()

def cubit.get_surface_quads (   surface_id )

四方(四方)の要素IDのリストをサーフェスに取得します。

この機能は、指定されたサーフェスにすべての四方(四方)の要素のIDを返します。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the quads on surface 1
quad_ids = cubit.get_surface_quads (1)
print(f"Surface 1 contains {len(quad_ids)} quad(s)." )

for quad_id in quad_ids: print(f" Quad ID: {quad_id}")

  @n type of surface_id:  int
パラメータ
surface_id サーフェスのアイデンティティ

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
四角形(四角形)の要素IDのリストはサーフェスにあります。

◆ get_surface_sense()

def cubit.get_surface_sense (   surface_id )

指定サーフェスの向き("sense")を取得します。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create a 10x10x10 brick
sense = cubit.get_surface_sense (1) # e.g., "Forward"
print("Surface 1 sense:" , sense)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:string
戻り値
: サーフェスの向き。"Reversed"、"Forward"、または"Both"。

◆ get_surface_tris()

def cubit.get_surface_tris (   surface_id )

三角形(三)の要素IDのリストをサーフェスで取得します。

この機能は、指定されたサーフェスに「三角形(三)要素」のすべてのIDを返します。

.. code-block:: python
# Create a brick, apply tetmesh scheme, and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Query the tris on surface 1
tri_ids = cubit.get_surface_tris (1)
print(f"Surface 1 contains {len(tri_ids)} tri(s)." )

for tri_id in tri_ids: print(f" Tri ID: {tri_id}")

  @n type of surface_id:  int
パラメータ
surface_id サーフェスのアイデンティティ

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
三角形(三)要素IDのリストはサーフェスにあります。

◆ get_surface_type()

def cubit.get_surface_type (   surface_id )

指定されたサーフェスのためのサーフェスタイプを取得します。

タイトル利用可能なサーフェスタイプ

  • 円錐サーフェス
  • 平面サーフェス
  • スペースサーフェス
  • トップ > サーフェス
  • トーロスサーフェス
  • 最適サーフェス
  • サーフェスの面
  • 未定のサーフェスタイプ
.. code-block:: python
# Assume surface ID 5 corresponds to a plane.
surf_type = cubit.get_surface_type (5)
print("Surface 5 is a:" , surf_type) # Output: Surface 5 is a: plane surface
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:string
戻り値
サーフェスのジオメトリタイプを示す説明シリーズ。

◆ get_surfs_with_narrow_regions()

def cubit.get_surfs_with_narrow_regions (   target_ids,
  narrow_size 
)

エッジカップルの指向と近所に基づいて狭い地域を含むサーフェスを見つける。

target_ids内の各ボリュームの各面について、隣接していないすべてのエッジペアを走査します。各ペアについて:

  • エッジの間で最も短い距離を計算します。
  • distance <= narrow_sizeの場合、局所エッジ接線とサーフェス法線を計算して外積ベクトルを作成します。
  • ベクトルの交差製品のポイント製品が < -cos(15deg)である場合、顔が含まれます。 エッジカップルが存在する顔のIDを返します。

この機能は、すべての面をチェックすることによってget_closed_narrow_surfacesと異なります(閉じた2つの面だけではなく)、そしてget_narrow_regionsは、ロープ分割またはロープ近距離テストの代わりにエッジカップルテストを要求することによって異なります。

.. code-block:: python
cubit.cmd ("cylinder radius 3 height 10" )
cubit.cmd ("modify curve 1 blend radius 0.5" )
cubit.cmd ("cylinder radius 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
narrow_thresh = 1.0
oriented_narrow = cubit.get_surfs_with_narrow_regions ([1], narrow_thresh)
print(oriented_narrow)
 @n type of target_ids:  std::vector< int,std::allocator< int > >
パラメータ
target_ids 調査対象のボリュームIDのベクトル。

narrow_size の型:float
narrow_size 距離の範囲は、指向チェックで狭いエッジのカップルを検出するためです。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのベクトルは、少なくとも1つの狭いエッジカップル地域を含む。

◆ get_tangential_intersections()

def cubit.get_tangential_intersections (   target_volume_ids,
  upper_bound,
  lower_bound 
)

指定された範囲外のタンジンティックな交差角を含むサーフェスを見つける。

ボリュームのあらゆる面をtarget_volume_idsに表示します。 それぞれの顔では、隣接する顔の間のあらゆるタンジンな交差角を計算します。 サーフェスは、いずれかの角度がlower_boundまたはupper_boundである場合に含まれます。



target_volume_ids の型:std::vector< int,std::allocator< int > >

パラメータ
target_volume_ids 調査対象のボリュームIDのベクトル。

upper_bound の型:float
upper_bound 容認可能なタンジン角度の上限。

lower_bound の型:float
lower_bound 容認可能なタンジン角度の低い限界。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのベクトルは、いかなるタンジンな交差点の角度がlower_boundまたはupper_boundである。

◆ get_target_surfaces()

def cubit.get_target_surfaces (   volume_id )

指定ボリュームのsweep target surfaceリストを取得します。

ボリュームがSweepのスキームを使用すると、ターゲットサーフェスは六面体のメッシュが抽出される最後の顔です。 この機能は、ターゲットとして指定されたすべてのサーフェスIDを返します。 明確なターゲットが設定されていない場合は、空っぽのリストを返します。

.. code-block:: python
# 1) Create a brick (Volume ID = 1).
cubit.cmd ("brick x 10" ) # Volume ID = 1
# 2) Specify surface 2 as the source and surface 5 as the target for sweeping.
cubit.cmd ("vol 1 scheme sweep source surf 2 target surf 5" )
# 3) Query the target surfaces for volume 1.
# Expected output: (5,)
print("Target surfaces:" , targets)
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
サーフェスIDのリスト(ベクトル<int>またはPythonトップル)は、sweepターゲットとして指定されています。

◆ get_target_timestep()

def cubit.get_target_timestep ( )

現在のターゲットタイムステップ範囲は、密度複数メトリックに使用されます。

この限界は要素に基づく推定を倍増することによって適応時間の段階化に影響を与える。

.. code-block:: python
# Set the target time step via Cubit command and query it.
cubit.cmd ("set target timestep 0.005" )
print("Target time step:" , target) # prints 0.005
 @n return type of :  float
戻り値
現在設定されているターゲットタイムステップ範囲。

◆ get_tet_count()

def cubit.get_tet_count ( )

現在のモデルで四面体要素の数を回収します。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
tet_count = cubit.get_tet_count ()
print("Tet count:" , tet_count)
 @n return type of :  int
戻り値
現在のモデルにおける四面体要素の数。

◆ get_tet_global_element_id()

def cubit.get_tet_global_element_id (   tet_id )

特定の四面体の要素のためのグローバル要素IDを取得します。

この機能は、要素がブロックに置かれたときに、その地元の四面体要素IDに割り当てられたグローバル要素IDを返します。

.. code-block:: python
# Create a brick, set up tetmesh, and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Assign all tets in volume 1 to block 1 (establishes global IDs)
cubit.cmd ("block 1 tet all" )
# Query the Global Element ID of local tet 22
print("Global Element ID of tet 22:" , gid)
 @n type of tet_id:  int
パラメータ
tet_id 四面体の要素ID。

戻り値の型:int
戻り値
グローバル要素IDは、指定されたテトラヘドロン、または四面体要素がブロックにない場合、0です。

◆ get_tetmesh_growth_factor()

def cubit.get_tetmesh_growth_factor (   volume_id )

四面体要素の成長因子をボリュームでメッシングする。

成長因子は四面体のサイズがボリューム内で小さな要素から大きい要素に移行する際にどれだけ速く変化するかを制御する。 有効値は 1.0 (統一サイズ) から 10.0 (速い成長) まで範囲です。

.. code-block:: python
# 1) Set growth factor to 1.3 on volume 5.
cubit.cmd ("volume 5 scheme tetmesh growth_factor 1.3" )
# 2) Query the growth factor.
print(f"Volume 5 tetmesh growth factor: {gf}" ) # Expected: 1.3
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:float
戻り値
成長因子(ダブル)は現在ボリュームに設定されています。

◆ get_tetmesh_insert_mid_nodes()

def cubit.get_tetmesh_insert_mid_nodes ( )

四面体要素メッシングの間に中間エッジ(平方)のノードの入力を示すグローバルフラッグを取得します。

tet mesherがtet生成時にmid-edge nodeを作成する設定ならtrueを返します(2次要素品質の改善)。midnodeをメッシング後に挿入する場合はfalseです。

.. code-block:: python
# 1) Enable automatic insertion of mid-edge nodes.
cubit.cmd ("set tetmesher add mid_edge_nodes on" )
# 2) Query the mid-edge node insertion flag.
print(f"Insert mid-edge nodes during tet meshing? {mid_node_on}" )
 @n return type of :  boolean
戻り値
メッシングの間にノードが中間のエッジに入力される場合が正しいが、偽りとは違う。

◆ get_tetmesh_minimize_interior_points()

def cubit.get_tetmesh_minimize_interior_points ( )

四面体要素のメッシングにおける内部点の最小化を示すグローバルフラッグを取得します。

四面体要素のマッシャーが内側のノードの数を減らそうとする場合、内側のポイントの入力が無制限である場合、間違っています。 インテリアポイントの挿入を妨げることは、より少ないノードを持つメッシュを生成する可能性がありますが、複雑な地質学では失敗する可能性があります。

.. code-block:: python
# 1) Disable interior point insertion.
cubit.cmd ("set tetmesher interior points off" )
# 2) Query the interior point minimization flag.
print(f"Minimize interior points? {min_interior}" )
 @n return type of :  boolean
戻り値
内面点を最小限にすることは真実であり、偽りである。

◆ get_tetmesh_minimize_slivers()

def cubit.get_tetmesh_minimize_slivers ( )

スライバーテトラヘドラの最小化を示すグローバルフラッグを取得します。

四面体要素メッシャーがスライバー形のテトラヘドラ(スライバー最小化)を特定および除去するための追加処理を適用する場合に真実を返します;スライバー除去が明示的に要求されていない場合に偽物です。

.. code-block:: python
# 1) Enable sliver minimization.
cubit.cmd ("set tetmesher optimize sliver on" )
# 2) Query the sliver minimization flag.
print(f"Minimize sliver tetrahedra? {min_sliver}" )
 @n return type of :  boolean
戻り値
真実は、スライバーの最小化がOKであるならば、偽りとは違う。

◆ get_tetmesh_num_anisotropic_layers()

def cubit.get_tetmesh_num_anisotropic_layers ( )

異方性の四面体要素層のグローバル数を設定します。

異方性の層がどれだけあるかを繰り返し、四面体要素のメッシャーが薄い地域に置き去りにしようとする。 このグローバル設定がゼロである場合、異方性層が無効になります。

.. code-block:: python
# 1) Enable 2 anisotropic layers globally.
cubit.cmd ("set tetmesher anisotropic layers 2" )
# 2) Query the number of anisotropic layers.
print(f"Global anisotropic tet layers: {num_aniso}" ) # Expected: 2
 @n return type of :  int
戻り値
異方性層の数(統合);障害者の場合 0 です。

◆ get_tetmesh_optimization_level()

def cubit.get_tetmesh_optimization_level ( )

グローバルな四面体要素のメッシングの最適化レベルを取得します。

四面体要素メッシャーの使用中の完全な最適化レベルを、0(いずれ)から6(極端)まで返します。 より高いレベルは、実行時間の代償でより良い要素品質をもたらします。

.. code-block:: python
# 1) Set tet mesher optimization level to 4 (strong).
cubit.cmd ("set tetmesher optimize level 4" )
# 2) Query the optimization level.
print(f"Tet mesher optimization level: {opt_level}" ) # Expected: 4
 @n return type of :  int
戻り値
最適化レベル(int in [0..6])

◆ get_tetmesh_optimize_mid_nodes()

def cubit.get_tetmesh_optimize_mid_nodes ( )

四面体要素メッシングの間にエッジのノードの最適化を示すグローバルフラッグを取得します。

tet mesherが要素品質改善のためメッシング中にmid-edge node位置を最適化(調整)する設定ならtrueを返します。midnode最適化を行わない場合はfalseです。

.. code-block:: python
# 1) Enable mid-edge node optimization.
cubit.cmd ("set tetmesher optimize surface mid_edge_nodes on" )
# 2) Query the mid-edge node optimization flag.
print(f"Optimize mid-edge nodes during tet meshing? {opt_mid_on}" )
 @n return type of :  boolean
戻り値
真実なのは、中間のエッジのノードの最適化が ON である場合、偽りとは異なります。

◆ get_tetmesh_optimize_overconstrained_edges()

def cubit.get_tetmesh_optimize_overconstrained_edges ( )

過剰に制限されたエッジの最適化を示すグローバルフラッグを取得します。

四面体要素のメッシャーが二つのサーフェスのノードを結びつけるエッジを分割する場合に真実に戻りますが、サーフェス(「過剰に制限されたエッジ)に嘘をつかない場合、偽りです。

.. code-block:: python
# 1) Enable optimization of overconstrained edges.
cubit.cmd ("set tetmesher optimize overconstrained edges on" )
# 2) Query the overconstrained edges optimization flag.
print(f"Optimize overconstrained edges? {opt_over_edge}" )
 @n return type of :  boolean
戻り値
過剰に制限されたエッジの最適化がOKである場合、真実です。

◆ get_tetmesh_optimize_overconstrained_tets()

def cubit.get_tetmesh_optimize_overconstrained_tets ( )

過剰に制限されたテトラヘドラの最適化を示すグローバルフラッグを取得します。

同じジオメトリサーフェス上に複数の三角形faceを持つ四面体をtet mesherが最適化する設定ならtrueを返します("overconstrained" tetの除去)。それ以外はfalseです。

.. code-block:: python
# 1) Enable optimization of overconstrained tetrahedra.
cubit.cmd ("set tetmesher optimize overconstrained tetrahedra on" )
# 2) Query the overconstrained tetrahedra optimization flag.
print(f"Optimize overconstrained tets? {opt_over_tet}" )
 @n return type of :  boolean
戻り値
過剰に制限されたテトラヘドラの最適化がOKである場合、真実です。

◆ get_tetmesh_parallel()

def cubit.get_tetmesh_parallel ( )

グローバル・パラレル・テトメッシャー・フラッグ(‘HPC)の設定を取得します。

MeshGems-Tetra HPC (パラレル) 四面体要素メッシャーがグローバルに有効である場合、真実に戻ります; 古いシリアル四面体要素メッシャーを使用する場合、偽物です。 この設定は、変更されるまで、すべての次の四面体要素メッシュに適用されます。

.. code-block:: python
# 1) Enable parallel tet mesher globally.
cubit.cmd ("set tetmesher hpc on threads 4" )
# 2) Query the parallel flag.
parallel_on = cubit.get_tetmesh_parallel ()
print(f"Parallel tet mesher enabled? {parallel_on}" )
 @n return type of :  boolean
戻り値
平行(HPC)の四面体要素のメッシャーが ON である場合、偽りがOFFである場合。

◆ get_tetmesh_proximity_flag()

def cubit.get_tetmesh_proximity_flag (   volume_id )

四面体要素のメッシングのボリュームの近く層旗を取得します。

接近層が指定されたボリュームのために有効であるかどうかを返します。 四面体要素メッシャーが有効になると、薄い地域に四面体層の最小数を入れて物理的な「フィーチャ」を捕獲します。

.. code-block:: python
# 1) Enable proximity layers (e.g., 3 layers) on volume 5.
cubit.cmd ("volume 5 scheme tetmesh proximity layers 3" )
# 2) Query the proximity flag.
print(f"Proximity layers enabled for volume 5? {prox_on}" )
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:boolean
戻り値
近隣層が ON である場合の真実; OFF の場合の偽物。

◆ get_tetmesh_proximity_layers()

def cubit.get_tetmesh_proximity_layers (   volume_id )

四面体要素のメッシングの近く層の数をボリュームに取得します。

薄い地域に設定された四面体層の総数を返します。 接近が有効である場合にのみ有効です; そうでなければ、ゼロが返します。

.. code-block:: python
# 1) Enable 4 proximity layers on volume 5.
cubit.cmd ("volume 5 scheme tetmesh proximity layers 4" )
# 2) Query the number of proximity layers.
print(f"Volume 5 proximity layers: {num_layers}" ) # Expected: 4
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:int
戻り値
接近層の数(統合); 0 接近がOFFである場合。

◆ get_tetmesh_relax_surface_constraints()

def cubit.get_tetmesh_relax_surface_constraints ( )

四面体要素メッシングにおけるサーフェスメッシュ制限のリラックスを示すグローバルフラッグを取得します。

四面体要素のメッシャーがサーフェスのメッシュの適合制限を緩和するために構成され、正確なサーフェスのメッシュから少し離れる可能性のあるテトラヘドラの挿入を可能にします。

.. code-block:: python
# 1) Enable relaxing of surface constraints.
cubit.cmd ("set tetmesher boundary recovery on" )
# 2) Query the relax surface constraints flag.
print(f"Relax surface constraints? {relax_surf}" )
 @n return type of :  boolean
戻り値
リラックスするサーフェスの制限が真実であるならば、それ以外は偽りである。

◆ get_tight_bounding_box()

def cubit.get_tight_bounding_box (   geometry_type,
  entity_list 
)

エンティティのリストのための緊密なブランドボックスを取得します。

指定されたエンティティのための指向(硬い)結合ボックスを計算します。 ボックスはジオメトリの主な軸と一致し、グローバルな軸ではない。 これは、ジオメトリの指向に従う最低限のボリュームの制限ボックスを提供します。

タイトル Array コンテンツ

  • [0-2] センター座標 (x, y, z)
  • [3−5] U 軸(正常化) ベクトル (x, y, z)
  • [6-8] V 軸 (正常化) ベクトル (x, y, z)
  • [9-11] W 軸(正常化) ベクトル (x, y, z)
  • [12-14] 長さ沿い U, V, W 軸
.. code-block:: python
cubit.cmd ("brick x 10" ); cubit.cmd ("rotate volume 1 angle 45 about z" )
bbox = cubit.get_tight_bounding_box ("volume" , [1])
print("Center:" , bbox[0:3], "U-axis:" , bbox[3:6], "V-axis:" , bbox[6:9],
"W-axis:" , bbox[9:12], "Lengths:" , bbox[12:15])
# Expected output: Center: (0.0, 0.0, 0.0) ... Lengths: (5.0, 5.0, 5.0)
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("body"、"volume"、"surface"、"curve"、または"vertex")。

entity_list の型:std::vector< int,std::allocator< int > >
entity_list エンティティIDのリスト

戻り値の型:std:: array< double,15 >
戻り値
15要素アレージは、緊密な結合ボックスを表しています。

◆ get_top_level_assembly_items()

def cubit.get_top_level_assembly_items ( )

◆ get_total_bounding_box()

def cubit.get_total_bounding_box (   geometry_type,
  entity_list 
)

エンティティのリストのための組み合わせボックスを取得します。

.. code-block:: python

# Prepare a list of surface IDs.
entity_list = [22, 23, 24]
# Query the total bounding box for those surfaces.
bbox = cubit.get_total_bounding_box ("surface" , entity_list)
print(bbox) # Prints 10 values: x-min, x-max, x-range, y-min, y-max, y-range, z-min, z-max, z-range, diagonal
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("body"、"volume"、"surface"、"curve"、"vertex")を指定します。

entity_list の型:std::vector< int,std::allocator< int > >
entity_list geometry_typeに関連するIDのリスト。

戻り値の型:std:: array< double,10 >
戻り値
組み合わせた限界ボックスパラメーターを含む10要素の範囲。
タイトル Array コンテンツ
  • ☆ ☆ ☆ ☆ ☆ ☆
  • (1) x マックス
  • x 範囲(x マックス) ☆☆☆☆☆
  • ☆☆☆☆☆☆☆☆☆
  • ☆ ☆ ☆ ☆ ☆
  • (5) y 範囲(y マックス? ☆☆☆☆☆
  • ☆☆☆☆☆☆☆☆☆
  • ☆ ☆ ☆ ☆ ☆ ☆
  • 8 z 範囲(z マックス? ☆☆☆☆☆
  • [9] 結合ボックスのダイアゴナル長さ

◆ get_total_volume()

def cubit.get_total_volume (   volume_list )

ボリュームリストのための総ボリュームを取得します。

.. code-block:: python

# Assume volumes 1, 2, and 3 exist.
volume_list = [1, 2, 3]
total = cubit.get_total_volume (volume_list)
print("Total volume:" , total)
 @n type of volume_list:  std::vector< int,std::allocator< int > >
パラメータ
volume_list ボリュームIDのリストが含まれます。

戻り値の型:float
戻り値
すべての指定IDのボリュームの合計。

◆ get_tri_count()

def cubit.get_tri_count ( )

現在のモデルにおける三角的な要素の数を回収します。

四面体ボリュームメッシュの場合、サーフェス三角形の番号が返されます。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" ) # mesh as tets (surface faces are tris)
tri_count = cubit.get_tri_count ()
print("Tri count:" , tri_count)
 @n return type of :  int
戻り値
四面体要素のメッシュの三角形要素の数(現在のモデルのメッシュのサーフェスの顔)。

◆ get_tri_global_element_id()

def cubit.get_tri_global_element_id (   tri_id )

グローバル要素IDを特定の三角形要素のために取得します。

Cubitは、それぞれの要素にグローバル要素IDを割り当てるときにブロックに置かれます。 この機能は、そのタイプ特定のID スペース内の特定のローカルトリ ID に合致する「グローバル要素 ID」を返します。

.. code-block:: python
# Create a brick and mesh its surfaces with triangles
cubit.cmd ("brick x 10" )
cubit.cmd ("surface 1 scheme trimesh" )
cubit.cmd ("mesh surface 1" )
# Assign all tri elements on surface 1 to block 1
cubit.cmd ("block 1 tri all" )
# Query the Global Element ID of local tri 22
print("Global Element ID of tri 22:" , gid)
 @n type of tri_id:  int
パラメータ
tri_id 地元の三角形要素IDはそのタイプの範囲内です。

戻り値の型:int
戻り値
グローバル要素IDは、指定された三角形のグローバル要素ID、またはブロックに置かれていない場合、0です。

◆ get_trimesh_geometry_sizing()

def cubit.get_trimesh_geometry_sizing ( )

グローバルジオメトリサイズの国旗をトリメシュスキームに取り戻す。

ONの場合、TriMeshは要素のサイズを計算する際にジオメトリの接近角度を組み込む。 OFFの場合、ジオメトリの接近は無視されます。

.. code-block:: python
# 1) Enable geometry-based sizing globally.
cubit.cmd ("set trimesher geometry sizing on" )
# 2) Query the geometry sizing flag.
print("TriMesh geometry sizing enabled?" , geom_size_on) # Expected: True
 @n return type of :  boolean
戻り値
TriMeshのジオメトリサイズが ON であれば真実です。

◆ get_trimesh_num_anisotropic_layers()

def cubit.get_trimesh_num_anisotropic_layers ( )

異方性の三角形層のグローバル数をTriMeshのスキームに取り戻す。

ONで、Trimeshは、薄いサーフェス地域に三角形の特定の層を配置しようとします。 層の数を返す; 異方性の層が無効である場合、ゼロ。

.. code-block:: python
# 1) Enable TriMesh anisotropic layers with 3 layers globally.
cubit.cmd ("set trimesher anisotropic layers on 3" )
# 2) Query the number of anisotropic layers.
print("Global TriMesh anisotropic layers:" , layers) # Expected: 3
 @n return type of :  int
戻り値
異方性の層(int)の数; 障害がある場合は 0 です。

◆ get_trimesh_ridge_angle()

def cubit.get_trimesh_ridge_angle ( )

トリメシュスキームのグローバルリッジの角度を取り戻す。

リッジの角度は、差別的なサーフェスのどの角度がメッシング時にリッジとして保存されているかを決定します。 三角形は、この限界を超えるダイドラル角を持つ差別的なサーフェスに残ります。

.. code-block:: python
# 1) Set TriMesh ridge angle to 30 degrees.
cubit.cmd ("set trimesher ridge angle 30" )
# 2) Query the current ridge angle.
print("TriMesh ridge angle:" , ridge, "degrees" ) # Expected: 30
 @n return type of :  float
戻り値
リッジの角度は2度(ダブル)です。

◆ get_trimesh_split_overconstrained_edges()

def cubit.get_trimesh_split_overconstrained_edges ( )

トリメシュのスキームで過剰なエッジを分割するためのグローバルフラッグを取り戻す。

ONなら、Trimeshはサーフェスが所有するエッジを分割するが、そのノードはカーブに横たわり、その地域の厚さを通じて2つの要素を確保する。

.. code-block:: python
# 1) Enable splitting overconstrained edges globally.
cubit.cmd ("set trimesher split overconstrained edges on" )
# 2) Query the split overconstrained edges flag.
print("TriMesh split overconstrained edges?" , split_on) # Expected: True
 @n return type of :  boolean
戻り値
真実であるならば、過剰なエッジを分割することは、OKであるが、偽りとは違う。

◆ get_trimesh_surface_gradation()

def cubit.get_trimesh_surface_gradation ( )

トリメシュスキームのためのグローバルサーフェスのメッシュの学位を取得します。

サーフェスグラダーションは、MeshGemsを使用する際にサーフェスに三角形のサイズがどれだけ速く変化するかを制御します。 値 > 1.0 は隣接する三角形のサイズ比率を制限し、より大きい値はより速い成長をもたらします。

.. code-block:: python
# 1) Set global TriMesh surface gradation to 1.2.
cubit.cmd ("set trimesher surface gradation 1.2" )
# 2) Query the current surface gradation.
print("Global TriMesh surface gradation:" , grad) # Expected: 1.2
 @n return type of :  float
戻り値
グローバルサーフェスグラダーション値(ダブル)

◆ get_trimesh_surface_proximity_ratio()

def cubit.get_trimesh_surface_proximity_ratio ( )

グローバルサーフェスの近距離比率をトリメシュスキームに戻す。

接近比率はサーフェスの接近が ON である場合に使用され、薄い地域で「フィーチャ」ベースのサイズをスケールします。

.. code-block:: python
# 1) Enable surface proximity with a ratio of 2.0 globally.
cubit.cmd ("set trimesher surface proximity on ratio 2.0" )
# 2) Query the surface proximity ratio.
print("TriMesh surface proximity ratio:" , ratio) # Expected: 2.0
 @n return type of :  float
戻り値
グローバルサーフェスの接近比率(ダブル)

◆ get_trimesh_target_min_size()

def cubit.get_trimesh_target_min_size (   geometry_type,
  entity_id 
)

ターゲットの最小サイズ三角形を特定のジオメトリのエンティティに設定し、TriMeshのスキームに設定します。

現地の「最小サイズ」制限は、TriMeshを使用する際にエンティティ(カーブ、サーフェス、またはボリューム)に返します。 そのエンティティに最低限が設定されていない場合は、0を返します。

.. code-block:: python
# 1) Create a surface (Surface ID = 12) and set its local TriMesh minimum size to 0.05.
cubit.cmd ("surface 12 scheme trimesh minimum size 0.05" )
# 2) Query the target minimum size for surface 12.
min_size = cubit.get_trimesh_target_min_size ("surface" , 12)
print("Surface 12 TriMesh minimum size:" , min_size) # Expected: 0.05
パラメータ
geom_type エンティティのジオメトリタイプ("curve"、"surface"、または"volume")。

entity_id の型:int
entity_id TriMeshの最小サイズが要求されるエンティティのID。

戻り値の型:float
戻り値
ターゲット最小サイズ三角形 (ダブル) がそのエンティティに設定され、 0 が設定されていない場合。

◆ get_trimesh_tiny_edge_length()

def cubit.get_trimesh_tiny_edge_length ( )

グローバルな小さなエッジ長さをトリメシュスキームに取り戻す。

tiny edge length設定は、要素を"tiny"と判定する最小edge長を定義します。TriMeshはcleanupまたはfacet生成時にこの値を使用することがあります。

.. code-block:: python
# 1) Set TriMesh tiny edge length to 0.01.
cubit.cmd ("set trimesher tiny edge length 0.01" )
# 2) Query the current tiny edge length.
print("TriMesh tiny edge length:" , tiny) # Expected: 0.01
 @n return type of :  float
戻り値
グローバルな小さなエッジの長さ値(ダブル)

◆ get_trimesh_use_surface_proximity()

def cubit.get_trimesh_use_surface_proximity ( )

トリメシュのスキームのためのグローバルサーフェスの近隣の旗を取り戻す。

サーフェスの接近が有効になった場合、細分化をサーフェスの薄い地域で接近比率に基づいて追加します。

.. code-block:: python
# 1) Enable surface proximity globally with default ratio of 1.0.
cubit.cmd ("set trimesher surface proximity on" )
# 2) Query whether surface proximity is on.
print("TriMesh surface proximity enabled?" , prox) # Expected: True
 @n return type of :  boolean
戻り値
グローバルサーフェスの近さが ON なら真実、偽りならOFFです。

◆ get_trimesh_volume_gradation()

def cubit.get_trimesh_volume_gradation ( )

TriMeshスキームのためのグローバルボリュームのメッシュの学位を取得します。

ボリュームグラダーションは、隣接するサーフェスの三角形サイズが近隣の「フィーチャ」にどのように反応するかをコントロールします。 これは、小さなサーフェス三角形が近隣地域にどのように広がるかに影響を与えます。

.. code-block:: python
# 1) Set global TriMesh volume gradation to 1.5.
cubit.cmd ("set trimesher volume gradation 1.5" )
# 2) Query the current volume gradation.
print("Global TriMesh volume gradation:" , vgrad) # Expected: 1.5
 @n return type of :  float
戻り値
グローバルボリュームグラダーション値(ダブル)

◆ get_undo_enabled()

def cubit.get_undo_enabled ( )

undo が現在有効であるかどうかを問う。

.. code-block:: python

# Enable undo.
cubit.cmd ("set undo on" )
enabled = cubit.get_undo_enabled () # returns True
print("Undo enabled:" , enabled)
# Disable undo.
cubit.cmd ("set undo off" )
enabled = cubit.get_undo_enabled () # returns False
print("Undo enabled:" , enabled)
 @n return type of :  boolean
戻り値
真実であるならば、ウントが有効であるならば、そうでなければ偽りである。

◆ get_unmerged_curves_on_shells()

def cubit.get_unmerged_curves_on_shells (   shell_vols,
  thickness 
)

シェル(シェル)の間で、シェル建設作業の流れで使用するためのボリュームの間で不溶なカーブを特定します。

この機能は通常、薄いボリュームからシールの表現の構築に使用されます。 指定されたshell_volsに含まれないカーブIDを特定し、そのリストの他のボリュームに含まれる顔の相応の厚さの距離にあります。 これらのカーブは、通常、ボディの葉を伸ばすか、または完全にオリジナルの薄いボリュームのジオメトリと一致させるためにカットする必要がある場所を表しています。

表(シェル)のボリュームのみが処理され、固体のボリュームが無視されます。

厚さリストは、近くの距離(通常、オリジナルの薄いボリュームの厚さ)を指定し、近くのカーブを検出するために使用します。 リストはshell_volsの長さと一致する必要があります。

.. code-block:: python
cubit.cmd ('brick x 10 y 10 z 1' ) # Thin volume 1
cubit.cmd ('brick x 10 y 1 z 10' ) # Thin volume 2
cubit.cmd ('vol 2 mov x y 4.5 z 5.5' ) # Position thin volume 2 to create L shape
cubit.cmd ('surface 2 copy' ) # Generates sheet body 3
cubit.cmd ('surface 11 copy' ) # Generates sheet body 4
shell_vols = [3, 4] # The sheet body volume IDs
thickness = [1.0, 1.0] # Thickness of original thin volumes
unmerged_curves = cubit.get_unmerged_curves_on_shells (shell_vols, thickness)
print("Unmerged curves between sheet bodies:" )

for c_id in unmerged_curves: print(c_id)

# Expected output:
# 28
# 30
# Example use: Extend curve 30 to fill the gap between the two sheet bodies:
cubit.cmd ('tweak curve 30 target surface 2' )
 @n type of shell_vols:  std::vector< int,std::allocator< int > >
パラメータ
shell_vols チェックするためのボリュームIDのリスト表(シェル)ボリュームのみが処理されます。

thickness の型:std::vector< double,std::allocator< double > >
thickness 密度値のリスト(近距離)は、shell_vols に相当します。 長さはshell_volsと一致する必要があります。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
指定されたシェルのボリュームに記載されていないカーブIDのリストは、他のシェルのボリュームの顔の近くにあります。

◆ get_valence()

def cubit.get_valence (   vertex_id )

特定の頂点のためのバレンタイン(事件番号エッジ)を取得します。

頂点のバレンタインは、その頂点に出会うカーブ(エッジ)の数です。

.. code-block:: python
# Create a 10x10x10 brick centered at the origin; vertex 1 is a corner with three incident edges.
cubit.cmd ("brick x 10" )
val = cubit.get_valence (1)
print("Valence of vertex 1:" , val) # prints 3
 @n type of vertex_id:  int
パラメータ
vertex_id 頂点のアイデンティティを検索

戻り値の型:int
戻り値
エッジ(カーブ)の会合の数は、指定された頂点にあります。

◆ get_valid_block_element_types()

def cubit.get_valid_block_element_types (   block_id )

指定されたブロックの有効な要素タイプのリストを取得します。

サポートされている要素タイプ(例えばhex8、hex20、tet10)のリストは、関連するジオメトリまたはメッシュ構成に基づいて、特定のブロックに割り当てられる。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("block 1 vol 1" )

for t in valid_types: print(t)

  @n type of block_id:  int
パラメータ
block_id ブロックのアイドル

戻り値の型:std::vector< std::string,std::allocator< std:: string > >
戻り値
ベクトルのサポートされた要素タイプの線。

◆ get_velocity_combine_type()

def cubit.get_velocity_combine_type (   entity_id )

スピードの組み合わせタイプを取得します。

複数の速度制限条件がどのように組み合わせられているかを繰り返します。 可能な値にはOverwrite、Average、SmallestCombine、またはLargestCombineが含まれます。



entity_id の型:int

パラメータ
entity_id スピード制限条件のID

戻り値の型:string
戻り値
特定のスピード BC に組み合わせるタイプのストレッチ。

◆ get_version()

def cubit.get_version ( )

現在のCubitバージョンのストリップを復元します。

アクティブなCubitエンジンのバージョンIDを返す、通常はmajor.minor.patchの形式です。

.. code-block:: python
import cubit
version = cubit.get_version ()
print("Cubit version:" , version)
 @n return type of :  string
戻り値
現在のCubitバージョンを含むシート。

◆ get_vertex_coordinates()

def cubit.get_vertex_coordinates (   entityID )

「頂点」の3D座標を取得します。

正確な3D座標を頂点に戻します。

.. code-block:: python
v_id = 12 # vertex 12
print(f"Vertex {v_id} coords: {vcoord}" )
パラメータ
entity_id 頂点のアイデンティティを検索

戻り値の型:std:: array< double,3 >
戻り値
3 要素の範囲(x、y、z)は頂点の座標を表す。

◆ get_vertex_count()

def cubit.get_vertex_count ( )

モデルに「頂点」の現在の番号を入力します。

.. code-block:: python

# Create a 10x10x10 brick; this generates eight corner vertices.
cubit.cmd ("brick x 10" )
vert_count = cubit.get_vertex_count () # returns 8
print("Vertex count:" , vert_count)
 @n return type of :  int
戻り値
モデルで現在定義されている頂点の数。

◆ get_vertex_node()

def cubit.get_vertex_node (   vertex_id )

ノードIDを頂点が所有するものとします。

この機能は、指定された頂点と関連付けられたノードのIDを返します。 頂点が関連するノードを持っていない場合、機能は -1. を返します。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the node owned by vertex 1
node_id = cubit.get_vertex_node (1)
print(f"Vertex 1 owns node ID: {node_id}" )
 @n type of vertex_id:  int
パラメータ
vertex_id 頂点のアイデンティティ

戻り値の型:int
戻り値
ノードのIDは頂点が所有する。 ノードが存在しない場合に1を返します。

◆ get_vertex_type()

def cubit.get_vertex_type (   surface_id,
  vertex_id 
)

指定された頂点のサーフェスの頂点のタイプを返します。

Vertex タイプはそれぞれの角をメッシュの要素がそこにどれだけ集まるかによって分類します。

  • "end": 内角約90度(1要素)
  • "side": 内角約180度(2要素)
  • "corner": 内角約270度(3要素)
  • "reverse": 内角約360度(4要素)
  • "unknown": 未分類、または該当なし
.. code-block:: python
# Create a brick; surface 1 has four "end" vertices.
cubit.cmd ("brick x 10" )
# Query the type of vertex 1 on surface 1.
vtype = cubit.get_vertex_type (1, 1)
print("Vertex 1 on surface 1 type:" , vtype)
 @n type of surface_id:  int
パラメータ
surface_id 頂点を含むサーフェスのID。

vertex_id の型:int
vertex_id 頂点のアイデンティティを検索

戻り値の型:string
戻り値
: 頂点タイプ。"end"、"side"、"corner"、"reverse"、または"unknown"。

◆ get_view_at()

def cubit.get_view_at ( )

カメラの現在のat(ターゲット)ポイントを取得します。

カメラが見ている点のxyz 座標を返します。 アクティブなグラフィックウィンドウが必要です; グラフィックが無効になった場合、この通話が失敗する可能性があります。

.. code-block:: python
import cubit
# Display current view (outputs from/at/up vectors)
cubit.cmd ("journal view" )
# Get the "at" coordinates
print("Camera at:" , at) # e.g., [0.0, 0.0, 0.0]
# Set a new "at" point via Cubit command
cubit.cmd ("at 5 5 5" )
print("Camera at after setting:" , at)
 @n return type of : std:: array< double,3 >
戻り値
カメラのターゲットポイントを表す3つのダブル {x, y, z} の連続。

◆ get_view_distance()

def cubit.get_view_distance ( )

カメラの位置と焦点の間の距離を得る。

カメラの"from"点から"at"点までの直線距離を返します。アクティブなgraphics windowが必要で、graphicsが無効な場合は失敗することがあります。

.. code-block:: python
import cubit
# Display current view parameters (prints from/at/up vectors)
cubit.cmd ("journal view" )
# Explicitly set the camera 'from' point to (10, 5, 15)
cubit.cmd ("from 10 5 15" )
# Now get the updated camera distance
print("Camera distance after setting 'from':" , dist)
 @n return type of :  float
戻り値
カメラ位置("from")と注視点("at")の距離(double)。

◆ get_view_from()

def cubit.get_view_from ( )

カメラの現在の'from'(位置)点を取得します。

宇宙にカメラの位置のXYZ座標を返します。 アクティブなグラフィックウィンドウが必要です; グラフィックが無効になった場合、この通話が失敗する可能性があります。

.. code-block:: python
import cubit
# Display current view (outputs from/at/up vectors)
cubit.cmd ("journal view" )
# Get the "from" coordinates
print("Camera from:" , frm) # e.g., [10.0, 5.0, 15.0]
# Move the camera to a new "from" point
cubit.cmd ("from 20 10 30" )
print("Camera from after setting:" , frm)
 @n return type of : std:: array< double,3 >
戻り値
カメラの位置を表す3つのダブル {x, y, z} の範囲。

◆ get_view_up()

def cubit.get_view_up ( )

カメラの'up'方向ベクトルを取得します。

標準化されたxyzベクトルを戻し、カメラの向上方向を定義します。 アクティブなグラフィックウィンドウが必要です; グラフィックが無効になった場合、この通話が失敗する可能性があります。

.. code-block:: python
import cubit
# Display current view (outputs from/at/up vectors)
cubit.cmd ("journal view" )
# Get the "up" coordinates
print("Camera up vector:" , up) # e.g., [0.0, 1.0, 0.0]
# Change the camera up direction (example command)
cubit.cmd ("up 0 1 0" )
print("Camera up vector after setting:" , up)
 @n return type of : std:: array< double,3 >
戻り値
3つのダブル {x, y, z} がカメラの向上方向を表すベクトル。

◆ get_volume_area()

def cubit.get_volume_area (   volume_id )

指定されたボリュームの「サーフェス」の総面積を取得します。

これがボリュームを結びつけるすべての面面積の合計を返します。

.. code-block:: python
# Create a 10x10x10 brick centered at the origin; volume 1 is generated.
cubit.cmd ("brick x 10" )
area = cubit.get_volume_area (1) # 6 faces x (10x10) = 600
print("Volume 1 surface area:" , area) # prints 600
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:float
戻り値
指定されたボリュームの「サーフェス」の総面積。

◆ get_volume_cad_material()

def cubit.get_volume_cad_material (   volume_id )

◆ get_volume_count()

def cubit.get_volume_count ( )

モデルにボリュームの現在の番号を入力します。

.. code-block:: python

# Create a 10x10x10 brick; this generates one volume (ID 1).
cubit.cmd ("brick x 10" )
vol_count = cubit.get_volume_count () # returns 1
print("Volume count:" , vol_count)
 @n return type of :  int
戻り値
モデルで現在定義されているボリュームの数。

◆ get_volume_element_count()

def cubit.get_volume_element_count (   volume_id )

3D要素の数を指定されたボリュームで回収します。

ヘクサヘドラ、テトラヘドラ、ピラミッド、およびの総数をボリューム(ブロックの割り当てに関係なく)の範囲内で返します。

.. code-block:: python
cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" ) # mesh as tets
print("3D elements in volume 1:" , count3D)
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:int
戻り値
六面体要素、四面体要素、ピラミッド、および指定されたボリュームにおけるスケジュールの数。

◆ get_volume_gap_solutions()

def cubit.get_volume_gap_solutions (   surface_id_1,
  surface_id_2 
)

異なるボリュームで2つのサーフェスの間の格差を解決する方法を提案します。

異なるボリュームから2つのサーフェスIDが近いが差によって分離されているため、この機能はオプションを提供し、差を閉じたり調和させたりします。

サーフェスの格差を特定するには、get_gaps_between_volumesまたはget_volume_gapsを使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 10" )
cubit.cmd ("volume 2 move x 10.1" ) # small gap between face 6 and face 10
solutions = cubit.get_volume_gap_solutions (6, 10)

for i in range(len(solutions[0])): print("Option:", solutions[0][i])

print(" Command:" , solutions[1][i])
print(" Preview:" , solutions[2][i])
print(" Shorthand:" , solutions[3][i])
# Expected output (first two results):
# Option: Replace Surface 6 with Surface 10
# Command: tweak surface 6 replace with surface 10
# Preview: tweak surface 6 replace with surface 10 preview
# Shorthand: 6 6 10
# Option: Replace Surface 10 with Surface 6
# Command: tweak surface 10 replace with surface 6
# Preview: tweak surface 10 replace with surface 6 preview
# Shorthand: 6 10 6
 @n type of surface_id_1:  int
パラメータ
surface_id_1 gapを形成する最初のサーフェスID(surface_id_2とは異なるボリューム上にある必要があります)。

surface_id_2 の型:int
surface_id_2 gapを形成する2番目のサーフェスID(surface_id_1とは異なるボリューム上にある必要があります)。

戻り値の型:std::vector< std::vector< std::string,std::allocator< std::string > >,std::allocator< std::vector< std::string,std::allocator< std:: string > > > >
戻り値
ベクトルの4つの連合線ベクトルのベクトル: [0] 各推奨療法のためのラインを表示する, [1] Cubit コマンドラインは各治療法に適用する, [2] Cubit プレビューコマンドラインは各治療法に適用する, [3] Shorthand の説明(操作 ID とサーフェス / ボリューム ID)。

◆ get_volume_hexes()

def cubit.get_volume_hexes (   volume_id )

ヘクサヘドロン(六面体要素)IDのリストをボリュームに含む。

この機能は、指定されたボリュームの一部であるすべての六面体要素(六面体要素)の要素のIDを返します。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the hexes in volume 1
hex_ids = cubit.get_volume_hexes (1)
print(f"Volume 1 contains {len(hex_ids)} hex(s)." )

for hex_id in hex_ids: print(f" Hex ID: {hex_id}")

  @n type of volume_id:  int
パラメータ
volume_id 検証するためのボリュームのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ヘクサヘドロン(六面体要素)IDのリストは、ボリュームに含まれています。

◆ get_volume_nodes()

def cubit.get_volume_nodes (   volume_id )

ボリュームが所有するノードIDのリストを取得します。

この機能は、指定されたボリュームが所有するノードのIDを返します。 サーフェス、カーブ、および「頂点」を結びつけるノードは除外されます。 内部(ボリューム所有)のノードのみが返還されます。

.. code-block:: python
# Create a brick and mesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh vol 1" )
# Query the nodes owned by volume 1
volume_nodes = cubit.get_volume_nodes (1)
print(f"Volume 1 owns {len(volume_nodes)} node(s)." )

for node_id in volume_nodes: print(f" Node ID: {node_id}")

  @n type of volume_id:  int
パラメータ
volume_id ボリュームのアイドル

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームが所有するノードIDのリスト(サーフェス、カーブ、および「頂点」にノードを除く)。

◆ get_volume_pyramids()

def cubit.get_volume_pyramids (   volume_id )

ボリュームに含まれるピラミッドIDのリストを取得します。

この機能は、指定されたボリュームの一部であるすべてのピラミッド要素のIDを返します。

.. code-block:: python
# Create two bricks and mesh them with different schemes
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10" )
cubit.cmd ("merge all" )
cubit.cmd ("vol 1 scheme map" )
cubit.cmd ("mesh vol 1" )
cubit.cmd ("vol 2 scheme tetmesh" )
cubit.cmd ("mesh vol 2" )
# Query the pyramids in volume 2
pyramid_ids = cubit.get_volume_pyramids (2)
print(f"Volume 2 contains {len(pyramid_ids)} pyramid(s)." )

for pyr_id in pyramid_ids: print(f" Pyramid ID: {pyr_id}")

  @n type of volume_id:  int
パラメータ
volume_id 検証するためのボリュームのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームに含まれるピラミッドIDのリスト。

◆ get_volume_tets()

def cubit.get_volume_tets (   volume_id )

ボリュームに含まれるテトラヘドロン(四面体要素)IDのリストを取得します。

この機能は、指定されたボリュームの一部であるすべてのテトラヘドロン(四面体要素)の要素のIDを返します。

.. code-block:: python
# Create a brick and tetmesh volume 1
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" )
# Query the tets in volume 1
tet_ids = cubit.get_volume_tets (1)
print(f"Volume 1 contains {len(tet_ids)} tet(s)." )

for tet_id in tet_ids: print(f" Tet ID: {tet_id}")

  @n type of volume_id:  int
パラメータ
volume_id 検証するためのボリュームのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
テトラヘドロン(四面体要素)IDのリストは、ボリュームに含まれています。

◆ get_volume_volume()

def cubit.get_volume_volume (   vol_id )

指定されたボリュームの閉じたボリュームを取得します。

.. code-block:: python

# Create a 10x10x10 brick centered at the origin; volume 1 is generated.
cubit.cmd ("brick x 10" )
vol = cubit.get_volume_volume (1) # returns 1000
print("Volume 1 volume:" , vol) # prints 1000
 @n type of vol_id:  int
パラメータ
vol_id 照会するボリュームのID。

戻り値の型:float
戻り値
指定されたボリュームの閉鎖されたボリューム

◆ get_volume_wedges()

def cubit.get_volume_wedges (   volume_id )

ボリュームに含まれるゲームIDのリストを取得します。

この機能は、指定されたボリュームの一部であるすべての要素のIDを返します。

.. code-block:: python
# Create a brick and mesh surface 1 with triangles
cubit.cmd ("brick x 10" )
cubit.cmd ("surface 1 scheme trimesh" )
cubit.cmd ("mesh surf 1" )
# Sweep the surface mesh to create wedges in volume 1
cubit.cmd ("vol 1 scheme sweep" )
cubit.cmd ("mesh vol 1" )
# Query the wedges in volume 1
wedge_ids = cubit.get_volume_wedges (1)
print(f"Volume 1 contains {len(wedge_ids)} wedge(s)." )

for wedge_id in wedge_ids: print(f" Wedge ID: {wedge_id}")

  @n type of volume_id:  int
パラメータ
volume_id 検証するためのボリュームのID。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ボリュームに含まれるゲームIDのリスト。

◆ get_volumes_for_node()

def cubit.get_volumes_for_node (   node_name,
  node_instance 
)

◆ get_wedge_count()

def cubit.get_wedge_count ( )

現在のモデルで要素の数を回収します。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("surface 1 scheme trimesh" ) # set triangular scheme on surface 1
cubit.cmd ("mesh surface 1" ) # mesh surface 1 with triangles
cubit.cmd ("mesh vol 1" ) # sweep triangles, generating wedges
wedge_count = cubit.get_wedge_count ()
print("Wedge count:" , wedge_count)
 @n return type of :  int
戻り値
現在のモデルにおける要素の数(例えば三角形を振り回すことによって生成される)

◆ get_wedge_global_element_id()

def cubit.get_wedge_global_element_id (   wedge_id )

グローバル要素IDを特定の要素のスケジュールで取得します。

この機能は、要素がブロックに置かれたときに、その地元の賭けIDに割り当てられたグローバル要素IDを返します。

.. code-block:: python
# Create a brick and mesh its top surface with triangles
cubit.cmd ("brick x 10" )
cubit.cmd ("surface 1 scheme trimesh" )
cubit.cmd ("mesh surface 1" )
# Sweep the triangular surface to generate wedges in volume 1
cubit.cmd ("vol 1 scheme sweep" )
cubit.cmd ("mesh vol 1" )
# Assign all wedges in volume 1 to block 1 (establishes global IDs)
cubit.cmd ("block 1 wedge all" )
# Query the Global Element ID of local wedge 22
print("Global Element ID of wedge 22:" , gid)
 @n type of wedge_id:  int
パラメータ
wedge_id 地元の要素IDはそのタイプの範囲内です。

戻り値の型:int
戻り値
グローバル要素IDは、指定されたスケジュールの場合、またはブロックに置かれていない場合、0です。

◆ get_wrt_entity()

def cubit.get_wrt_entity (   source_type,
  source_id,
  sideset_id 
)

サイドセットに項目のwith-respect-toエンティティを取得します。

この関数は、指定sideset内の指定エンティティ(face、quad、tri)に関連付けられた"with-respect-to"(WRT)エンティティを返します。WRTエンティティは、sidesetがそのエンティティをどのように参照するか、またはどの向きで関連するかという文脈を提供します。

.. code-block:: python
# Query the with-respect-to entity of face 332 in sideset 2
wrt_entity = cubit.get_wrt_entity ("face" , 332, 2)
print(f"WRT entity for face 332 in sideset 2: {wrt_entity}" )
 @n type of source_type:  string
パラメータ
source_type itemタイプ: "face"、"quad"、または"tri"。

source_id の型:int
source_id エンティティのID。

sideset_id の型:int
sideset_id サイドセットのID

戻り値の型:string
戻り値
sideset内の指定エンティティに対する'With-respect-to'エンティティ。

◆ group_names_ids()

def cubit.group_names_ids ( )

すべての定義されたグループの名前とIDを返す(選択したグループを除く)。

現在のセッションにおいて、それぞれのアクティブなグループのための(名前、ID)カップルのベクトルを返します。

.. code-block:: python
# Create and name two groups.
cubit.cmd ("brick x 10" )
cubit.cmd ("group \"g1\" add vertex in vol 1" )
cubit.cmd ("group \"g2\" add volume in vol 1" )
# Fetch group names and IDs.
groups = cubit.group_names_ids ()

for name, gid in groups: print(f"Group '{name}' has ID {gid}")

  @n return type of : std::vector< std::pair< std::string,int >,std::allocator< std::pair< std:: string,int > > >
戻り値
ベクトル(グループ名、グループID)のカップル。

◆ has_valid_size()

def cubit.has_valid_size (   geometry_type,
  entity_id 
)

ジオメトリのエンティティが有効なサイズであるかどうかを確認します。

タイトルこの機能は、指定されたジオメトリのエンティティが現在有効なサイズを持っているかどうかを返します。

  • すべてのエンティティがサイズがある場合 自動車サイズ 許可されている。
  • もし 自動車サイズ エンティティは、明示的に設定された場合にのみ「サイズ」があります(「例」)。 Aを通して size コマンド)。

タイトル返品価値:

  • 1 エンティティが有効なサイズを持っている場合
  • 0 エンティティが有効なサイズを持っていない場合
.. code-block:: python
# Create a brick
cubit.cmd ("brick x 10" )
# Check whether surface 1 has a valid size
has_size = cubit.has_valid_size ("surface" , 1)
print(f"Surface 1 has valid size? {'Yes' if has_size else 'No'}" )
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリエンティティタイプ(例: "surface"、"curve"、"volume"など)。

entity_id の型:int
entity_id ジオメトリのエンティティのID。

戻り値の型:int
戻り値
1 エンティティが有効なサイズを持っている場合、 0 もしそうでないなら。

◆ heatflux_is_on_shell_area()

def cubit.heatflux_is_on_shell_area (   bc_area_enum,
  entity_id 
)

BCの熱流が面積のシールにあったかどうかを確認します。



bc_area_enum の型:int

パラメータ
bc_area_enum CI_BCEntityTypes: 7(トップ)、8(下)

entity_id の型:int
entity_id 熱流量BCのID。

戻り値の型:boolean
戻り値
BCが指定されたシェル面積に適用される場合が正しい。

◆ highlight()

def cubit.highlight (   entity_type,
  entity_id 
)

グラフィックウィンドウで指定されたエンティティを選択せずに表示します。

表示されたエンティティに視覚的な強調(たとえば、オレンジ色の表面)を追加します。 選択とは異なり、強調は選択リストにエンティティを追加したり、選択状態を変更したりしない。 エンティティを選択する(例えば、「ボリューム5を選択する」を介して)も強調を生み出しますが、この機能を呼ぶことは、外観にしか影響を与えません。

.. code-block:: python
import cubit
# Select volume 5 (adds to pick list and highlights it)
cubit.cmd ("select volume 5" )
# Highlight volume 6 without selecting it
cubit.highlight ("volume" , 6)
# Retrieve the list of selected IDs (only volume 5 is selected)
print("Selected IDs:" , ids)
 @n type of entity_type:  string
パラメータ
entity_type Entity 注目するにはvertex、curve、surface、またはvolumeをタップします。

entity_id の型:int
entity_id エンティティのアイデンティティを強調する。

◆ init()

def cubit.init (   argv )

Cubitエンジンをオプションスタートアップの論点でスタートアップします。

他のCubitのAPI機能の前に呼び出す必要があります。 論文リストの単一の空の列を通過すると、デフォルト設定でCubitを開始します。

.. code-block:: python
import cubit
cubit.init (["" ])



argv の型:std::vector< std::string,std::allocator< std::string > >

パラメータ
argv Cubitのスタートアップガイドラインのリスト(例えば、コマンドラインのフラッグ)。 デフォルトに使用する。

◆ is_acis_engine_available()

def cubit.is_acis_engine_available ( )

ACISのジオメトリエンジンが利用可能であるかどうかを決定する。

ノート ACIS は標準 Cubit ディストリビューションのデフォルトエンジンであり、常に利用可能でなければなりません。

.. code-block:: python
print("ACIS engine available:" , has_acis)
 @n return type of :  boolean
戻り値
ACISのサポートが存在する場合、そうでなければ偽りです。

◆ is_assembly_metadata_attached()

def cubit.is_assembly_metadata_attached (   volume_id )

メタデータがボリュームに付属しているかどうかを確認します。

部分協会を認証するか、非関連するジオメトリを特定するために使用される。

volume_id の型:int

パラメータ
volume_id ボリュームのアイドル

戻り値の型:boolean
戻り値
メタデータが存在する場合、偽物はそうでない。

◆ is_blend_surface()

def cubit.is_blend_surface (   surface_id )

顔のサーフェスが混合物(フィレット)であるかどうかを決定する。

surface_idIDを含むサーフェスがフィレット操作によって作成された混合物であるかどうかを確認します。

.. code-block:: python
# Create a 2x2x2 brick and fillet edge 1 with radius 0.5.
cubit.cmd ("brick x 2 y 2 z 2" )
cubit.cmd ("modify curve 1 blend radius 0.5" )
# Surface 7 should now be a blend.
is_blend = cubit.is_blend_surface (7)
print("Surface 7 is blend:" , is_blend)
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをチェックする

戻り値の型:boolean
戻り値
真実であるならばサーフェスは混合物(フィレット)であり、そうでなければ偽りである。

◆ is_boundary_layer_id_available()

def cubit.is_boundary_layer_id_available (   boundary_layer_id )

境界層IDが現在利用可能であるかどうかを確認します。

任命前にユニーク性を確認するのに役立ちます。

boundary_layer_id の型:int

パラメータ
boundary_layer_id 境界層IDをチェックする。

戻り値の型:boolean
戻り値
IDが利用可能であれば真実、既に使用されている場合は偽です。

◆ is_catia_engine_available()

def cubit.is_catia_engine_available ( )

CATIAのジオメトリエンジンが利用可能であるかどうかを決定する。

CATIAのノートは、標準的なCubit配布に含まれていません。 CATIAのサポートを備えた特別構造のみが実現する。

.. code-block:: python
print("CATIA engine available:" , has_catia)
 @n return type of :  boolean
戻り値
CATIAのサポートが作成された場合、真実です;そうでなければ偽りです。

◆ is_cavity_surface()

def cubit.is_cavity_surface (   surface_id )

指定された「サーフェス」が穴の一部であるかどうかを確認します。

穴のサーフェスは、モデルのジオメトリの中に閉じた空白を結びつけるサーフェスです。

サーフェスが洞窟の一部である場合(例えば、中断されたボリュームの内壁など)、この機能は真実に戻り、そうでなければ偽りである。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 5 move x 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
surf_id = 17
is_cavity = cubit.is_cavity_surface (surf_id)
print(f"Surface {surf_id} is {'a cavity surface' if is_cavity else 'not a cavity surface'}" )
# Expected output (example):
# Surface 17 is a cavity surface.
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:boolean
戻り値
サーフェスが洞窟の一部である場合、偽りはそうでない。

◆ is_chamfer_surface()

def cubit.is_chamfer_surface (   surface_id,
  thickness_threshold 
)

顔のサーフェスがシャンファーであるかどうかを判断する。

IDがsurface_idのサーフェスについて、最大厚さをthickness_thresholdと比較し、chamferを表すかどうかを判定します。

.. code-block:: python
# Create a 2x2x2 brick and chamfer edge 1 with radius 0.5.
cubit.cmd ("brick x 2 y 2 z 2" )
cubit.cmd ("modify curve 1 chamfer radius 0.5" )
# Surface 7 should now be a chamfer.
is_chamfer = cubit.is_chamfer_surface (7, 1.0)
print("Surface 7 is chamfer:" , is_chamfer)
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをチェックする

thickness_threshold の型:float
thickness_threshold マックスの厚さはシャンファーとして定義される。

戻り値の型:boolean
戻り値
surface thickness <= thickness_thresholdでchamferと判定される場合true。

◆ is_clipping_plane_manipulation_on()

def cubit.is_clipping_plane_manipulation_on ( )

現在のクリップ平面操作の状態を取得する:rtype: boolean.

戻り値
クリップマニュアルが続く場合、そうでなければ偽りです。

◆ is_clipping_plane_on()

def cubit.is_clipping_plane_on ( )

現在のクリップ平面の状態を取得する:rtype: boolean.

戻り値
クリップが終わったら真実、そうでないと偽り。

◆ is_close_loop_surface()

def cubit.is_close_loop_surface (   surface_id,
  mesh_size 
)

サーフェスが特定の限界に近い複数のロップを持っているかどうかを確認します。

faceに2つ以上のboundary loopがあり、異なるloopに属する任意の2edge間距離がmesh_size以内ならtrueを返します。それ以外はfalseです。

.. code-block:: python
# Create two concentric cylinders and subtract inner from outer.
cubit.cmd ("cylinder x 3 height 10" )
cubit.cmd ("cylinder x 2 height 10" )
cubit.cmd ("subtract volume 2 from volume 1" )
# Surface 9 (annulus-like face) has two loops separated by distance 1.
has_close = cubit.is_close_loop_surface (9, 1.0)
print("Surface 9 has close loops:" , has_close) # True
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをチェックする

mesh_size の型:float
mesh_size 距離のループ分離の限界。

戻り値の型:boolean
戻り値
サーフェスに2つ以上のloopがあり、異なるloop間に距離mesh_size以内のedge pairが1組以上あればtrue。

◆ is_command_echoed()

def cubit.is_command_echoed ( )

Cubitがコンソールにコマンドを表示するかどうかを確認します。

それぞれのコマンドが実行時に印刷されている場合に真実に戻ります。

.. code-block:: python
import cubit
print(cubit.is_command_echoed ()) # True or False
 @n return type of :  boolean
戻り値
コマンドエコングが有効である場合、真実です。

◆ is_command_journaled()

def cubit.is_command_journaled ( )

Cubitがコマンドを記録しているかどうかを問う。

コマンドの記録が現在有効である場合に返信します。 ジャーナリズムはデフォルトで実行されますが、コマンドまたはAPIの呼び出しを使用して明示的にオフになる可能性があります。

.. code-block:: python
import cubit
# Disable journaling
# Check journaling state

もしないなら cubit.is_command_journaled() : print("Journaling is disabled.")

# Re-enable journaling
 @n return type of :  boolean
戻り値
コマンドの記録が有効である場合、真実です。

◆ is_cone_surface()

def cubit.is_cone_surface (   surface_id )

サーフェスが「円錐」であるかどうかを決定する。

指定されたサーフェスがコニックサーフェスであるかどうかを返します。

注:このテストは単一の完全な「円錐」にのみ有効に戻り、アペックス(ハードポイント)が含まれます。 定期的な分裂の後に「円」のサーフェスを特定するつもりはない。

.. code-block:: python
# Create a cylinder volume with a cone on top.
cubit.cmd ('cylinder rad 1 height 5' ) # Create cylinder (vol 1)
cubit.cmd ('create frustum height 1 radius 1 top 0' ) # Create cone (vol 2)
cubit.cmd ('vol 2 mov z 3' ) # Move cone on top of cylinder
cubit.cmd ('unite vol all' ) # Unite into a single volume (vol 1)
# BEFORE splitting: the cone's lateral surface is surface 4
cone_whole = cubit.is_cone_surface (4)
print("Surface 4 is cone (before split):" , cone_whole)
# Now split the periodic cone surface; this creates two periodic pieces, e.g., surfaces 7 and 8
cubit.cmd ('split period vol 1' )
cone_split_7 = cubit.is_cone_surface (7)
cone_split_8 = cubit.is_cone_surface (8)
print("Surface 7 is cone (after split):" , cone_split_7)
print("Surface 8 is cone (after split):" , cone_split_8)
# Expected output:
# Surface 4 is cone (before split): True
# Surface 7 is cone (after split): False
# Surface 8 is cone (after split): False



surface_id の型:int

パラメータ
surface_id サーフェスのIDをテストします。

戻り値の型:boolean
戻り値
もしサーフェスが完全な「円錐」であるならば(アペックスと共に)、偽りであるならば。

◆ is_continuous_surface()

def cubit.is_continuous_surface (   surface_id,
  angle_tol 
)

サーフェスに隣接する継続的なサーフェスがあるかどうかを確認する。

2つのサーフェスが共有curveで成す外角が180度±angle_tolならcontinuousとみなします。

.. code-block:: python
cubit.cmd ("cylinder rad 1 height 5" )
cubit.cmd ("vol 1 split periodic" ) # Splits cylinder surface into surfaces 4 and 5
result = cubit.is_continuous_surface (4, 0.1)
print("Surface 4 has adjacent continuous surfaces:" , result)
# Expected output:
# True
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのアイドルを尋ねる。

angle_tol の型:float
angle_tol 継続性のための許容差の角度(グレード)

戻り値の型:boolean
戻り値
もしサーフェスが少なくとも一つの隣接する継続的なサーフェスを持っているなら、偽りである。

◆ is_cylinder_surface()

def cubit.is_cylinder_surface (   surface_id )

特定の顔のサーフェスが円形のシリンダーであるかどうかを決定する。

指定された顔IDと関連するサーフェスが真のサイリンドリックサーフェスであるかどうかを確認します。

.. code-block:: python
# Create a cylinder of radius 2 and height 5.
cubit.cmd ("cylinder radius 2 height 5" )
# Surface 1 (the lateral face) should be a cylinder.
print("Surface 1 is cylinder:" , is_cyl) # True
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをチェックする

戻り値の型:boolean
戻り値
サーフェスがシリンドリックなサーフェスである場合、それは真実です。

◆ is_file_hdf5()

def cubit.is_file_hdf5 (   filename )

ファイルがHDF5ファイルであるかどうかを確認します。

.. code-block:: python

path = "model.h5m"
is_h5 = cubit.is_file_hdf5 (path)
print(path, "is HDF5?" , is_h5)



filename の型:string

パラメータ
filename パスをテストするファイルに。

戻り値の型:boolean
戻り値
ファイルが存在し、HDF5のサインを持っている場合の真実; 偽りとは異なり。

◆ is_geometry_visibility_on()

def cubit.is_geometry_visibility_on ( )

ジオメトリグラフィックがグラフィックウィンドウで見られるかどうかを確認します。

ジオメトリディスプレイは、CADエンティティを表示または隠すために、上または外に表示することができます。 これはジオメトリに基づくことなくメッシュのみを見たいときに役立ちます。

.. code-block:: python
import cubit
# Enable geometry visibility and verify
cubit.cmd ("geometry vis off" )
print("Geometry visible?" , geomVis)
 @n return type of :  boolean
戻り値
ジオメトリのグラフィックが現時点で目に見えるかどうかは真実です。

◆ is_hole_surface()

def cubit.is_hole_surface (   surface_id,
  radius_threshold 
)

指定された「サーフェス」が穴の一部であるかどうかを確認します。

サーフェスという穴は、小さな「フィーチャ」を結びつける穴、例えば、掘り下げまたは機械化された穴、その最大半径が与えられた範囲を超えない。

radius_threshold < 0 の場合、デフォルトは 3 x mesh_size を使用します。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 1 height 10" )
cubit.cmd ("vol 2 move z 5" )
cubit.cmd ("subtract volume 2 from volume 1" )
surf_id = 10
radius_thresh = 2.0
is_hole = cubit.is_hole_surface (surf_id, radius_thresh)
print(f"Surface {surf_id} is {'a hole surface' if is_hole else 'not a hole surface'}" )
# Expected output (example):
# Surface 10 is a hole surface.
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

radius_threshold の型:float
radius_threshold 穴検出のための最大半径基準。 もし < 0 の場合、デフォルトは 3 x mesh_size に表示されます。

戻り値の型:boolean
戻り値
もしサーフェスが穴の一部であるなら、偽りである。

◆ is_interval_count_odd()

def cubit.is_interval_count_odd (   surface_id )

サーフェスのいずれかのループがメッシュのインターバルの異常な数を持っているかどうかを確認します。

「Pave」のメッシングのスキームは、それぞれのサーフェスのループがインターバルの数と同じで、クアドが生成されるようにする必要があります。 この機能を使用して、サーフェスが異常なインターバル数を含むループが含まれているかどうかを検出し、「パブ」のメッシングを防ぐ。

.. code-block:: python
# Assume surface 5 has been meshed with interval counts.

if has_odd: print("Surface 5 contains an odd loop; cannot apply pave mesh.") else:

print("Surface 5 can be paved with all quads." )
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをチェックする

戻り値の型:boolean
戻り値
サーフェスのいずれかのループがインターバルの異常な数を持っている場合、それは真実です。

◆ is_merged()

def cubit.is_merged (   geometry_type,
  entity_id 
)

特定のジオメトリのエンティティが別のエンティティに合併したかどうかを確認します。

指定エンティティ(ジオメトリタイプ"curve"、"surface"、"volume"と整数IDで識別)が別エンティティへmergeされている場合true、それ以外はfalseを返します。

合併操作(例えば、合併全員)を実行した後、共有または回復するエンティティは、単一のオブジェクトとして存在しない可能性があります。 利用 is_merged() 特定のエンティティがそのような操作の間に別のエンティティに吸収されたかどうかを確認する。

.. code-block:: python
# 1) Create two unit cubes (Volume IDs = 1 and 2).
cubit.cmd ("brick x 10" ); # Volume ID = 1
cubit.cmd ("brick x 10" ); # Volume ID = 2
# 2) Move volume 2 ten units in the x-direction so they share a face.
cubit.cmd ("vol 2 mov x 10" );
# 3) Merge all volumes into a single volume.
cubit.cmd ("merge all" );
# 4) Check if surface 6 (the original shared face) has been merged.

もし(cubit.is_merged ("surface", 6)) { std::cout << "Surface 6 has been merged." << std::endl; } else { std::cout << "Surface 6 is not merged." << std::endl; }

  @n type of geometry_type:  string
パラメータ
geometry_type チェック対象のジオメトリタイプ。有効値は"curve"、"surface"、"volume"です。

entity_id の型:int
entity_id 質問するためのエンティティの完全なID。

戻り値の型:boolean
戻り値
あるエンティティが別のエンティティに合併した場合の真実;偽りとは異なり。

◆ is_mesh_element_in_group()

def cubit.is_mesh_element_in_group (   element_type,
  element_id 
)

特定のメッシュの要素がどのグループに属しているかを確認します。

.. code-block:: python

# Determine if tetrahedron with ID 445 is in a group.

もし cubit.is_mesh_element_in_group (『tet、445):印刷(『四面体要素445はグループにあります』) 別の:

print("Tet 445 is not in any group" )
 @n type of element_type:  string
パラメータ
element_type メッシュ要素タイプ(例: "node"、"edge"、"tri"、"quad"、"tet"、"hex")。

element_id の型:int
element_id メッシュの要素のIDをテストします。

戻り値の型:boolean
戻り値
要素が少なくとも1つのグループに含まれている場合、偽りは違います。

◆ is_mesh_visibility_on()

def cubit.is_mesh_visibility_on ( )

メッシュグラフィックがグラフィックウィンドウで表示されているかどうかを確認します。

メッシュディスプレイは、表示または隠すためにメッシュ要素を表示または削除することができます。 メッシュを隠すことはジオメトリを表示する際のパフォーマンスを向上させることができます。

.. code-block:: python
import cubit
# Enable mesh visibility and verify
cubit.cmd ("mesh vis off" )
print("Mesh visible?" , meshVis)
 @n return type of :  boolean
戻り値
メッシュのグラフィックが現時点で目に見えるかどうかは真実です。

◆ is_meshed()

def cubit.is_meshed (   geometry_type,
  entity_id 
)

指定されたジオメトリのエンティティがマッサージされたかどうかを決定する。

あるエンティティ(カーブ、サーフェス、またはボリューム)がすでに有効なメッシュを持っている場合、真実に戻ります。

.. code-block:: python
# 1) Mesh surface 137.
cubit.cmd ("mesh surface 137" )
# 2) Check if surface 137 is now meshed.

もし cubit.is_meshed ("surface", 137): print("Surface 137 is meshed.") else:

print("Surface 137 is not meshed." )
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、または"volume")。

entity_id の型:int
entity_id チェックするためのエンティティのID。

戻り値の型:boolean
戻り値
確かに、指定されたエンティティがすでにマッサージされている場合、偽りである場合。

◆ is_modified()

def cubit.is_modified ( )

モデルが輸入または最後の保存以来変更されたかどうかを確認します。

CADの操作が現在のモデル状態を変更した場合(例えば、 remove surface 10 輸入後)、モデルがまだオリジナル、未変更の状態にある場合、偽物。

.. code-block:: python
import cubit
# Import and modify
cubit.cmd ('import "part.sat"' )
cubit.cmd ("remove surface 10" )
modified = cubit.is_modified ()
print("Model modified?" , modified)
 @n return type of :  boolean
戻り値
モデルが操作によって変更された場合の真実; 偽りとは違う。

◆ is_multi_volume()

def cubit.is_multi_volume (   body_id )

ボディが複数のボリュームを含んでいるかどうかを確認します。

Cubitのボディは通常1つのボリュームで構成されます。複数ボリュームを持つボディはまれで、一般にはACISモデルのインポート時に生じます。複数ボリュームのボディを個別のボリュームへ分割するには、次を使用します: cubit.cmd ('split body <id>')

.. code-block:: python
# Assume body 10 may contain multiple volumes.
multi = cubit.is_multi_volume (10)

if multi: print("Body 10 has multiple volumes. Splitting...")

cubit.cmd ("split body 10" )
 @n type of body_id:  int
パラメータ
body_id ボディのアイデンティティを尋ねる

戻り値の型:boolean
戻り値
ボディが1つ以上のボリュームを含む場合、それは真実です。

◆ is_narrow_surface()

def cubit.is_narrow_surface (   surface_id,
  mesh_size 
)

サーフェスに2つの非寄付のエッジが狭い地域を形成するかどうかを決定する。

共通vertexを持たないすべてのedge pairを走査します。各ペアについて最短距離 <= mesh_size、かつサーフェス法線に対する局所エッジ方向の差が15度超なら、そのサーフェスをnarrowと判定します。

.. code-block:: python
# Check if surface 5 contains any narrow region smaller than 0.1 units.
narrow = cubit.is_narrow_surface (5, 0.1)
print("Surface 5 is narrow:" , narrow)
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをチェックする

mesh_size の型:float
mesh_size 距離の限界は、狭いエッジのカップルを特定するためです。

戻り値の型:boolean
戻り値
エッジのカップルが発見された場合、それは真実です。

◆ is_occlusion_on()

def cubit.is_occlusion_on ( )

閉鎖が有効であるかどうかを確認します。

オクルクションが現時点でアクティブである場合に戻ります。

.. code-block:: python
 @n return type of :  boolean
戻り値
真実(隠し線の除去)が有効である場合、偽物は別に有効である。

◆ is_on_thin_shell()

def cubit.is_on_thin_shell (   bc_type_enum,
  entity_id 
)

薄いシールに限界条件が適用されているかどうかを確認します。

温度、コンベクション、および熱流 BCs に適用されます。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型(温度=4、接続=7、熱流=8)

entity_id の型:int
entity_id 境界条件の識別

戻り値の型:boolean
戻り値
BCが薄いシェル要素にあった場合が正しい。

◆ is_opencascade_engine_available()

def cubit.is_opencascade_engine_available ( )

OpenCASCADEのジオメトリエンジンが利用可能であるかどうかを決定する。

ノート OpenCASCADE は標準 Cubit ディストリビューションには含まれていません。 OpenCASCADEのサポートを備えた特別な構造のみが現実に戻ります。

.. code-block:: python
print("OpenCASCADE engine available:" , has_occ)
 @n return type of :  boolean
戻り値
OpenCASCADEのサポートが作成された場合、真実です;そうでなければ偽物です。

◆ is_part_of_list()

def cubit.is_part_of_list (   target_id,
  id_list 
)

ID リストに ID が存在するかどうかを確認します。

この機能は、指定されたターゲットIDが特定のIDリストに存在しているかどうかを確認します。 復帰 true ターゲットIDがリストに表示されている場合、そうでなければ返信 false .

.. code-block:: python
# Example ID list
id_list = [1, 2, 3, 5, 8]
# Check if ID 3 is part of the list
found = cubit.is_part_of_list (3, id_list)
print(f"Is 3 in the list? {'Yes' if found else 'No'}" )
# Check if ID 4 is part of the list
found = cubit.is_part_of_list (4, id_list)
print(f"Is 4 in the list? {'Yes' if found else 'No'}" )
 @n type of target_id:  int
パラメータ
target_id 検索するためのターゲットID

id_list の型:std::vector< int,std::allocator< int > >
id_list IDのリストです。

戻り値の型:boolean
戻り値
true target_idがid_listのメンバーである場合 false.

◆ is_performing_undo()

def cubit.is_performing_undo ( )

操作が現在実行されているかどうかを問う。

これを使用して、Cubitが undoコマンドを実行する中間にあるかどうかを検出します。

.. code-block:: python
import cubit
cubit.cmd ("undo" )
print(cubit.is_performing_undo ()) # True if still undoing
 @n return type of :  boolean
戻り値
真実が進んでいるとき、偽りとは違う。

◆ is_periodic()

def cubit.is_periodic (   geometry_type,
  entity_id 
)

特定のサーフェスまたはカーブが定期的であるかどうかを問う。

.. code-block:: python

cubit.cmd ("create cylinder radius 3 height 10" )
periodic = cubit.is_periodic ("surface" , 1) # returns True
print(periodic)
パラメータ
geom_type ジオメトリタイプとして"surface"または"curve"を指定します。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる。

戻り値の型:boolean
戻り値
もしエンティティが定期的であるなら、そうでなければ偽りである。

◆ is_perspective_on()

def cubit.is_perspective_on ( )

展望プロジェクションが有効であるかどうかを確認します。

グラフィックウィンドウが視野プロジェクションを使用している場合、真実に戻ります; 偽物もし正文。

.. code-block:: python
import cubit
# Enable perspective projection and verify
cubit.cmd ("graphics perspective on" )
persp_on = cubit.is_perspective_on ()
print("Perspective on?" , persp_on)
 @n return type of :  boolean
戻り値
見通しプロジェクションが有効である場合の真実; 偽りとは異なります。

◆ is_playback_paused()

def cubit.is_playback_paused ( )

ジャーナルプレイバックが中止されているかどうかを確認します。

ジャーナルプレイバックが現在停止されている場合、または手動で返信します。 pause_playback() または、プレイバック停止エラーが有効になったときにエラーが発生したためです。

.. code-block:: python
import cubit
# Pause playback
# Check if playback is paused

もし cubit.is_playback_paused() : print("Playback is currently paused.")

# Resume playback
 @n return type of :  boolean
戻り値
プレイバックが休憩した場合の真実、偽りとは違います。

◆ is_playback_paused_on_error()

def cubit.is_playback_paused_on_error ( )

プレイバックが間違って休憩されているかどうかを問う。

Cubitがエラーが発生したときにジャーナル再生を停止するかどうかを制御する現在の設定を返します。

.. code-block:: python
import cubit
# Enable pause on error
# Run a journal file
cubit.cmd ("play 'test.jou'" )
# Check pause-on-error status

もし cubit.is_playback_paused_on_error() : print("Playback paused on error.")

  @n return type of :  boolean
戻り値
プレイバックが間違った場合、間違った場合、間違った場合。

◆ is_point_contained()

def cubit.is_point_contained (   geometry_type,
  entity_id,
  xyz_point 
)

ポイントがエンティティと関連しているかどうかを決定するか、その点がエンティティと関連しているか、その点がエンティティと関連しているか、その点がエンティティと関連しているかどうかを決定する。

一般的にボリュームまたはボディに使用され、ポイントコンテナをテストします。

.. code-block:: python
# Create a 10x10x10 brick centered at the origin; volume 1 occupies -5 to +5.
cubit.cmd ("brick x 10" )
# Test a point inside the volume.
pt_inside = (0.0, 0.0, 0.0)
result_inside = cubit.is_point_contained ("volume" , 1, pt_inside)
# result_inside == 1 (inside)
print("Point inside:" , result_inside)
# Test a point outside the volume.
pt_outside = (10.0, 0.0, 0.0)
result_outside = cubit.is_point_contained ("volume" , 1, pt_outside)
# result_outside == 0 (outside)
print("Point outside:" , result_outside)
# Test a point on the boundary of the volume.
pt_on = (5.0, 0.0, 0.0)
result_on = cubit.is_point_contained ("volume" , 1, pt_on)
# result_on == 2 (on boundary)
print("Point on boundary:" , result_on)
 @n type of geometry_type:  string
パラメータ
geometry_type エンティティタイプ("volume"または"body")。

entity_id の型:int
entity_id テストするためのエンティティのID

xyz_point の型:std::array< double,3 >
xyz_point A 3- 要素 array {x, y, z} テストするポイントを定義する。

戻り値の型:int
戻り値
1 失敗の場合、 0 外の場合、 1 内の場合、2 境界の場合。

◆ is_protrusion_surface()

def cubit.is_protrusion_surface (   surface_id )

指定された「サーフェス」がプロトゥーズの一部であるかどうかを確認します。

サーフェスは、主なジオメトリから外に伸びる物質の領域を結びつけるサーフェスです。

サーフェスがプロトゥーシュの一部である場合(例えば、上司または上昇した「フィーチャ」として)、この機能は真実に戻ります。

.. code-block:: python
cubit.cmd ("brick x 10" )
cubit.cmd ("brick x 5" )
cubit.cmd ("vol 2 move x 5" )
cubit.cmd ("unite volume 1 2" )
surf_id = 12
is_protrusion = cubit.is_protrusion_surface (surf_id)
print(f"Surface {surf_id} is {'a protrusion surface' if is_protrusion else 'not a protrusion surface'}" )
# Expected output (example):
# Surface 12 is a protrusion surface.



surface_id の型:int

パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:boolean
戻り値
サーフェスがプロトゥーシュの一部であるならば真実であり、偽りである。

◆ is_scale_visibility_on()

def cubit.is_scale_visibility_on ( )

スケールの記録がグラフィックウィンドウで見られるかどうかを確認します。

スケール記録は、現在のオブジェクトの境界ボックスにX、Y、Z軸(ユニットマーク付き)を表示します。 物理的な次元を判断するのに役立ちます。

.. code-block:: python
import cubit
# Turn on the scale annotation and verify visibility
cubit.cmd ("Graphics Scale on" )
print("Scale visible?" , scaleVis)
 @n return type of :  boolean
戻り値
現時点では、スケールの記録が現実的である場合、真実である場合、否定的な場合。

◆ is_select_partial_on()

def cubit.is_select_partial_on ( )

部分選択が有効であるかどうかを確認します。



戻り値の型:boolean

戻り値
部分的なピックが許可されている場合の真実; 偽りとは異なります。
.. code-block:: python
import cubit

◆ is_sheet_body()

def cubit.is_sheet_body (   volume_id )

ボリュームがボディ(ゼロ厚さ)であるかどうかを決定する。

.. code-block:: python

# Create a solid brick (volume 1).
cubit.cmd ("brick x 10" )
# Copy surface 1 and move it by 1 unit in Z; this creates a new sheet body (ID 2).
cubit.cmd ("surface 1 copy move z 1" )
# Check if volume 2 is a sheet body.
is_sheet = cubit.is_sheet_body (2) # expected: True
print(is_sheet)
 @n type of volume_id:  int
パラメータ
volume_id 照会するボリュームのID。

戻り値の型:boolean
戻り値
ボリュームがボディ(ゼロ厚さ)の葉である場合、真実です。

◆ is_special_build()

def cubit.is_special_build (   build_type )

特別な構築タイプが利用可能であるかどうかを確認します。

指定されたbuild_typeが特別なCubit構造またはこのCubit構造に組み込まれたエンジンサポートに合致するかどうかを決定します。 この比較はケース不敏感であり、acis、catia、goodyear、granite、machine_learning(ml)、opencascade、およびsgmです。

.. code-block:: python
import cubit
has_ml = cubit.is_special_build ("ml" )
print("ML special build available:" , has_ml)
 @n type of build_type:  string
パラメータ
build_type チェックするための特別構造の名称(‘例‘、‘acis‘、‘catia‘、‘ml‘)。 ケース不敏感

戻り値の型:boolean
戻り値
特定の特別構造タイプが利用可能である場合、真実です。

◆ is_surface_meshable()

def cubit.is_surface_meshable (   surface_id )

サーフェスが現在のメッシングスキームの下で測定可能であるかどうかを確認します。

指定された「表面」がアクティブなメッシュ設定を使用してマッサージされるかどうかを返します。 サーフェスは既定のスキームを持っている場合、いずれも明示的に設定されていません。

.. code-block:: python
import cubit
# Set the surface scheme to 'map' (default applies if not set):
cubit.cmd ("surface 17 scheme map" )
can_mesh = cubit.is_surface_meshable (17)
print("Surface 17 meshable under 'map'?" , can_mesh)
 @n type of surface_id:  int
パラメータ
surface_id サーフェスのIDをテストします。

戻り値の型:boolean
戻り値
サーフェスがマッサージ可能であるならば真実であり、偽りであるならば。

◆ is_surface_planar()

def cubit.is_surface_planar (   surface_id )

◆ is_surface_planer()

def cubit.is_surface_planer (   surface_id )

特定のサーフェスが計画的であるかどうかを問う。

いくつかのワークフローは、曲がった顔と平面の顔を区別する必要があります。 両方 is_surface_planer (アーカイブ)および is_surface_planar 互換性が確保され、同じように振る舞う。

.. code-block:: python
# Create a brick; surfaces 1-6 are planar.
cubit.cmd ("brick x 10" )
flat = cubit.is_surface_planar (1) # returns True
print(flat)
 @n type of surface_id:  int
パラメータ
surface_id 照会するサーフェスのID。

戻り値の型:boolean
戻り値
もしサーフェスが計画的であるなら、そうでなければ偽りである。

◆ is_type_filtered()

def cubit.is_type_filtered (   filter_type )

特定のエンティティタイプが現在、選択から排除されているかどうかを確認します。

選択フィルターリストに指定されたタイプが含まれている場合に真実に戻ります(i.e.、選択されません)。

.. code-block:: python
import cubit
filtered = cubit.is_type_filtered ("surface" )
print("Surface filtered?" , filtered)
 @n type of filter_type:  string
パラメータ
filter_type Entity テストするタイプ(vertex、curve、surface、volume、node、edge、faceなど)

戻り値の型:boolean
戻り値
このタイプが現時点でフィルタリングされている場合の真実; 偽りとは異なり。

◆ is_undo_save_needed()

def cubit.is_undo_save_needed ( )

モデルが undo チェックポイント保存を必要としているかどうかを確認します。

CAD操作が最後の呼び出し以来モデルを変更した場合に返信します。 set_undo_saved() .

.. code-block:: python
import cubit
cubit.cmd ('import "part.sat"' )
print(cubit.is_undo_save_needed ()) # True
print(cubit.is_undo_save_needed ()) # False
 @n return type of :  boolean
戻り値
モデルが最後の undo 保存以来変わった場合の真実; 偽り別に。

◆ is_virtual()

def cubit.is_virtual (   geometry_type,
  entity_id 
)

特定のジオメトリのエンティティが仮想であるかどうかを問う。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("composite create surf 1 6" ) # create composite surface (Surface ID = 7)
is_virt = cubit.is_virtual ("surface" , 7)
print("Surface 7 is virtual:" , is_virt)
cubit.cmd ("composite delete surf 7" ) # delete composite surface
is_virt = cubit.is_virtual ("surface" , 1)
print("Surface 1 is virtual:" , is_virt)
 @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、"volume"など)。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる

戻り値の型:boolean
戻り値
指定されたエンティティが仮想である場合、偽りである場合。

◆ is_visible()

def cubit.is_visible (   geometry_type,
  entity_id 
)

特定のジオメトリのエンティティのための検索可視性。

.. code-block:: python

# Turn off visibility for volume 4
cubit.cmd ("vol 4 vis off" )

もしないなら cubit.is_visible ("volume", 4): print("Volume 4 is now hidden.")

# Turn visibility back on for volume 4
cubit.cmd ("vol 4 vis on" )

もし cubit.is_visible ("volume", 4): print("Volume 4 is now visible.")

  @n type of geometry_type:  string
パラメータ
geometry_type ジオメトリタイプ("curve"、"surface"、"volume"など)。

entity_id の型:int
entity_id エンティティのアイデンティティを尋ねる

戻り値の型:boolean
戻り値
特定のエンティティが現時点で目に見える場合の真実; 偽りとは異なり。

◆ is_volume_meshable()

def cubit.is_volume_meshable (   volume_id )

ボリュームが現在のメッシングスキームの下で測定可能であるかどうかを確認します。

指定されたボリュームがアクティブなメッシュ設定を使用してマッサージされるかどうかを返します。 ボリュームは、いずれも明示的に設定されていない場合、既定のスキームを持っています。

.. code-block:: python
import cubit
# Set the volume scheme to 'sweep' (default applies if not set):
cubit.cmd ("volume 42 scheme sweep" )
can_mesh = cubit.is_volume_meshable (42)
print("Volume 42 meshable under 'sweep'?" , can_mesh)
 @n type of volume_id:  int
パラメータ
volume_id テストするためのボリュームのID

戻り値の型:boolean
戻り値
真実ならボリュームはマッサージ可能であるが、偽りとは違う。

◆ is_working_dir_set()

def cubit.is_working_dir_set ( )

「Workingdir」のオプションがCubitスタートアップで提供されたかどうかを確認します。

ユーザーがCubitコマンドラインで-workingdir <path>を使用して作業ディレクトリを指定したかどうかを判定します。

.. code-block:: python
import cubit
print("Working dir set?" , cubit.is_working_dir_set ())
 @n return type of :  boolean
戻り値
実際なら -workingdir がCubitを打ち上げるときに使用されていた場合; 偽りとは異なります。

◆ journal_commands()

def cubit.journal_commands (   state )

Cubitコマンドの記録を有効または無効にします。

コマンドが発行されたかどうかを確認する cubit.cmd あるいはAPIの通話は、アクティブ・ジャーナルファイルに記録されます。 ジャーナリズムはCubitが始まるときにデフォルトで有効になります。

.. code-block:: python
import cubit
# Disable journaling using command
cubit.cmd ("set journal off" )
# Manually disable via API
# Re-enable journaling
 @n type of state:  boolean
パラメータ
state 本当に記録を可能にするために、偽りはそれを無効にするために。

◆ load_ML()

def cubit.load_ML (   args,
  kwargs 
)

機械学習データを記憶に載せます。

この機能は、予測や『フィーチャ』抽出で即時使用するために指定された機械学習モデルを充電およびカッシュします。 モデルが別のML機能によって要求され、まだ充電されていない場合は、自動的に充電されます。 この機能を明確に呼び出すことで、モデルが直ちに充電されることを確保します。



model_type の型:string, optional

パラメータ
model_type どのデータを充電するかを指定する:
  • "all": classificationモデルとregressionモデルの両方を読み込みます。
  • "classification": classificationモデルのみを読み込みます。
  • "regression": regressionモデルのみを読み込みます。

    戻り値の型:boolean
戻り値
データがうまく充電された場合の真実; 偽りとは異なり。
 .. code-block:: python
# Example usage in Python
success = cubit.loadML("regression" )

if success: print("Regression models loaded.") else:

print("Failed to load models." )

◆ measure_between_entities()

def cubit.measure_between_entities (   entity_type1,
  entity_id1,
  entity_type2,
  entity_id2 
)

2つのジオメトリのエンティティとその最も近い点の間の最も短い距離を返します。

2つのエンティティの間で最も近い点を計算し、これらの点の座標とともに距離を返します。

.. code-block:: python
# Geometry setup
cubit.cmd ("brick x 10" )
cubit.cmd ("vol 1 copy mov x 10.1 y 5" )
dist_info = cubit.measure_between_entities ("Vertex" , 12, "Volume" , 1)
dist = dist_info[0]
vertex_point = [dist_info[1], dist_info[2], dist_info[3]]
volume_point = [dist_info[4], dist_info[5], dist_info[6]]
print("Distance:" , dist)
print("Vertex point:" , tuple(vertex_point))
print("Volume point:" , tuple(volume_point))
# Expected Output:
# Distance: 0.1
# Vertex point: (5.1, 0.0, 5.0)
# Volume point: (5.0, 0.0, 5.0)
 @n type of entity_type1:  string
パラメータ
entity_type1 最初のジオメトリのエンティティのタイプ。

entity_id1 の型:int
entity_id1 最初のジオメトリのエンティティのID。

entity_type2 の型:string
entity_type2 二番目のジオメトリのエンティティのタイプ。

entity_id2 の型:int
entity_id2 2番目のジオメトリのエンティティのID。
 @n return type of : std::vector< double,std:: allocator< double > >
戻り値
距離と座標を含むベクトル(×1、Y1、Z1、X2、Y2、Z2)

◆ ML_train()

def cubit.ML_train (   geom_type )

特定のジオメトリタイプのML分類モデルの強力なトレーニング。

この機能は、指定された分類操作のための新しいトレーニングコースを開始します。 現在、volume_no_opおよびsurface_no_opモデルのみがサポートされています。



geom_type の型:string

パラメータ
geom_type 学習対象のジオメトリタイプ("volume"または"surface")、または操作名。

戻り値の型:boolean
戻り値
トレーニングの仕事が成功した場合、真実です。
 .. code-block:: python
success = cubit.ML_train ("surface" )

if success: print("Training for surface model started successfully.") else:

print("Failed to trigger training for surface model." )

◆ move()

def cubit.move (   entity,
  vector,
  preview = False 
)

翻訳一 Entity 特定のベクトル

データを動かす entity 定義された割引は、 vector 」 利用 preview 翻訳を適用せずに表示する。

   .. code-block:: python
# Create a unit cube (center at 0,0,0)
cubit.cmd ("brick x 1 y 1 z 1" )
# Move the cube (body 1) by (1, 2, 3)
b = cubit.body (1)
vec = [1.0, 2.0, 3.0]
cubit.move (b, vec, False )
# Get and print the center point of the moved body
pt = b.center_point()
print("Center Point:" , pt) # prints (1.0, 2.0, 3.0)
  @n type of entity:  :py:class:`Entity`, in
パラメータ
entity ☆ ☆ ☆ ☆ Entity 翻訳する。

vector の型:std::array< double,3 >(入力)
vector ベクトルの翻訳(x、y、z)

preview の型:boolean, in, optional
preview 正しい場合は、事前表示を表示し、アプリケーションなしで表示します(デフォルト偽)。

◆ number_undo_commands()

def cubit.number_undo_commands ( )

ステックにコマンドの数を調べる。

.. code-block:: python

# Enable undo and perform three operations.
cubit.cmd ("set undo on" )
cubit.cmd ("brick x 10" )
cubit.cmd ("cylinder rad 3 height 12" )
cubit.cmd ("subtract vol 2 from vol 1" )
# Check the undo stack size (should be 3).
print("Undo stack size:" , count) # prints 3
# Undo the last operation (subtract).
cubit.cmd ("undo" )
# Check the stack size again (should be 2).
print("Undo stack size:" , count) # prints 2
 @n return type of :  int
戻り値
コマンドの数は、現在、 undo stack にあります。

◆ parse_cubit_list()

def cubit.parse_cubit_list (   type,
  entity_list_string 
)

Cubitスタイルのエンティティ選択表現をIDリストに分割します。

フリー形式のCubitのエンティティの表現を、サポーターライン、名称パターン、およびトポロジーのリクエストを、特定のタイプの完全なIDのフラットリストに変換します。

タイトルサポートされたシンタックスの例

  • 「1〜12」 - IDs 1〜12
  • 「5.7.9」 - IDs 5、7、および9
  • 名称「わたし*」 - すべての匹敵する名称
  • ボリュームの5〜23 - サーフェスまたはカーブのボリュームの5〜23
.. code-block:: python
# Setup: create 4 bricks and name volumes
cubit.command("brick x 10" )
cubit.command("volume 1 copy move x 10 repeat 3" )
cubit.command('vol 1 name "widget1"' )
cubit.command('vol 2 name "widget2"' )
cubit.command('vol 3 name "gizmo1"' )
cubit.command('vol 4 name "gizmo2"' )
# 1) Curves 1?4 and 8
curve_ids = cubit.parse_cubit_list ('curve' , '1 to 4 8' )
print(tuple(curve_ids)) # (1, 2, 3, 4, 8)
# 2) Volumes named "widget*"
widget_ids = cubit.parse_cubit_list ('volume' , 'with name "widget*"' )
print(tuple(widget_ids)) # (1, 2)
# 3) Curves in volumes named "gizmo*"
gizmo_curve_ids = cubit.parse_cubit_list ('curve' , 'in volume with name "gizmo*"' )
print(tuple(gizmo_curve_ids)) # (25, 26, . . ., 48)
 @n type of type:  string
パラメータ
type Entity タイプストリップ(例えば、vertex、curve、surface、volume)

entity_list_string の型:string
entity_list_string 自由形式のCubit選択用語。

戻り値の型:std::vector< int,std:: allocator< int > >
戻り値
ベクトルは、発音に合致するエンティティIDです。

◆ parse_locations()

def cubit.parse_locations (   location_str )

Cubitの位置仕様を具体的な3D座標に分けます。

Cubitスタイルの位置表現を受け入れ、結果点(s)をx-y-z トリップとして返します。 サポートされた位置のドキュメンタリーオプションをご覧ください。

.. code-block:: python
# Create a brick
cubit.command("brick x 10" )
# Single point at absolute coordinates
pts1 = cubit.parse_locations ("1 2 3" )
print(pts1) # Output: ((1.0, 2.0, 3.0),)
# Coordinates of vertex 5
pts2 = cubit.parse_locations ("at vertex 5" )
print(pts2) # Output: ((5.0, 5.0, -5.0),)
# Multiple positions
pts3 = cubit.parse_locations ("position 1 2 3 position 4 5 6" )
print(pts3) # Output: ((1.0, 2.0, 3.0), (4.0, 5.0, 6.0))
# Vertices in volume 1
pts4 = cubit.parse_locations ("at vertex in vol 1" )
print(pts4) # Output: ((5.0, -5.0, 5.0), (5.0, 5.0, 5.0), (-5.0, 5.0, 5.0), (-5.0, -5.0, 5.0), ...)
# Mesh the volume and get all nodes on curve 1
cubit.command("vol 1 size 2" )
cubit.command("mesh vol 1" )
pts5 = cubit.parse_locations ("at node in curve 1" )
print(pts5) # Output: ((5.0, -5.0, 5.0), (5.0, 5.0, 5.0), (5.0, -3.0, 5.0), (5.0, -1.0, 5.0), (5.0, 1.0, 5.0), (5.0, 3.0, 5.0))
 @n type of location_str:  string
パラメータ
location_str Cubitの位置表現のストレッチ。

戻り値の型:std::vector< std::array< double,3 >,std::allocator< std:: array< double,3 > > >
戻り値
3 要素のベクトル(x、y、z)は、各パーセッドの位置に適用されます。

◆ pause_playback()

def cubit.pause_playback ( )

ジャーナリズムを直ちに再生する。

雑誌コマンドの継続的な再生を保持します。 通常、デビューまたは検査のために実行を中断するために日記ファイル内で使用されます。 Playback は再度呼び出しで再起動できます。 resume_playback() .

.. code-block:: python
import cubit
# Perform initial setup
# (Assume these steps are part of a journal execution context)
# Pause playback for inspection
# Resume playback after inspection

◆ print_cmd_options()

def cubit.print_cmd_options ( )

Cubitのサポートされたスタートアップオプションを表示します。

コマンドラインのすべての旗を印刷し、Cubit実行可能がターミナルから打ち上げるときに受け入れ、その合成と説明とともに印刷します。

例の出力(多くのうちの最初の数):

.. code-block:: c++

-Include <$val>        (Default path to search for input files)
-[no]banner            (Suppress printing of startup information.)
-[no]batch             (Batch Mode--No Interactive Command Input)
-debug <$val>          (Set specified flags on, e.g. 1,3,7-9 enables 1,3,7,8,9))
etc.                   (and many more options)

.. code-block:: python

import cubit

◆ print_current_selections()

def cubit.print_current_selections ( )

すべての選択したエンティティとそのタイプを印刷します。

各セレクションを順序(インデックス、タイプ、ID)でコンソールに表示します。

.. code-block:: python

◆ print_currently_selected_entity()

def cubit.print_currently_selected_entity ( )

現在選択されたエンティティの詳細を印刷します。

内部選択指標でエンティティのタイプとIDを表示します。

.. code-block:: python

◆ print_info()

def cubit.print_info (   message )

Cubitのメッセージシステムを通じてメッセージを印刷します。

Cubitメッセージマネージャーに情報メッセージを送信して表示またはログインします。

.. code-block:: python
import cubit
cubit.print_info ("Processing complete." )
 @n type of message:  string
パラメータ
message 印刷されるテキストです。

◆ print_raw_help()

def cubit.print_raw_help (   input_line,
  order_dependent,
  consecutive_dependent 
)

コマンドを入力する際にコンテキスト感性の助けを表示します。

ユーザーがヘルプキーのいずれか(「?」、「&」、または「!」)を押すときに呼び出されます。 現在の入力ラインに基づいて関連する合成または使用ヒントを印刷します。

.. code-block:: python
import cubit
# User typed "mesh surface " then pressed '&'
line = "mesh surface "
order_dependent = False# key was '&'
consecutive_dependent = False# key was not '?'
cubit.print_raw_help (line, order_dependent, consecutive_dependent)
 @n type of input_line:  string
パラメータ
input_line 現在のコマンドラインテキストが編集されている。

order_dependent の型:int
order_dependent 1(真実)に設定する場合、キーが「?」または「!」である場合、0(偽)に設定する場合、キーが「&」である場合。

consecutive_dependent の型:int
consecutive_dependent 1(真実)に設定すると、キーが「?」(繰り返し助けを提供する)である場合、0(偽り)に設定します。

◆ print_surface_summary_stats()

def cubit.print_surface_summary_stats ( )

モデル内のすべてのサーフェスの概要統計を印刷します。

タイトル:報告メトリック

  • 測定された「サーフェス」の数とその平均的な面積
  • 最小および最大の「サーフェス」の面積、関連する「表面」ID
  • 最低水力半径(面積/ペリメーター)と「サーフェス」ID
  • 最小カーブ長さ (最小エッジ) とエッジ ID とサーフェス ID
  • サーフェスとそのサーフェスIDの隣接するカーブの長さの最大比率
  • マルチロップのサーフェスとサーフェスIDの間の最小距離
  • 単一ループ内のエッジとサーフェスIDの間の最低距離
  • 最小および最大の内部の角度は、隣接するカーブの間でサーフェスで、サーフェスIDを含む。
.. code-block:: python
# Create a 10x10x10 brick; surfaces 1-6 are generated.
cubit.cmd ("brick x 10" )
# Print summary statistics for all surfaces.

◆ print_volume_summary_stats()

def cubit.print_volume_summary_stats ( )

モデル内のすべてのボリュームの概要統計を印刷します。

タイトル:報告メトリック

  • 測定されたボリュームの総数と平均的なボリューム
  • 最低ボリューム値とそのボリュームID
  • 最低水素半径(6 *ボリューム/total_surface_area)とそのボリュームID
  • ボリュームのいずれかの2つの顔の間の最小および最大の内角、両顔IDおよびボリュームIDを含む。
  • ボリューム内の隣接face間の最大面積比。大きいfaceと小さいfaceのID、およびvolume IDを含みます。
  • すべてのボリュームおよびその比率に合併および混合しないサーフェスの総数
  • シェルのグループの数は、すべてのボリュームの組み合わせの顔と、これらのシェルを含むRefGroupの名前の間で見つかりました。
  • これらのボリュームにおけるすべての「サーフェス」の概要統計(呼び出し) print_surface_summary_stats())
.. code-block:: python
# Create two bricks and subtract the smaller from the larger.
cubit.cmd ("brick x 10" ) # volume 1
cubit.cmd ("brick x 5" ) # volume 2
cubit.cmd ("subtract vol 2 from vol 1" )
# Print summary statistics for all volumes.

◆ prism()

def cubit.prism (   height,
  sides,
  major,
  minor 
)

指定されたサイズのプリズムを作成します。

通常のポリゴンベースから抽出されたプリズムを生成し、大半径と小半径によって定義されます。 プリズムの高さと側面の数は、その形状と抽出を指定します。

   .. code-block:: python
import cubit
# 1) Create a regular hexagonal prism: height=3, sides=6, major radius=2, minor radius=2.
my_prism = cubit.prism (3, 6, 2, 2)
print("Prism ID:" , my_prism.id())
# 2) Create an elongated hexagonal prism: height=3, sides=6, major radius=4, minor radius=2.
my_prism = cubit.prism (3, 6, 4, 2)
print("Prism ID:" , my_prism.id())
  @n type of height:  float, in
パラメータ
height プリズムの高さ

sides の型:int(入力)
sides ベースポリゴンの側面数

major の型:float(入力)
major ベースポリゴンの大半径。

minor の型:float(入力)
minor ベースポリゴンの小さな半径

戻り値の型::py:class: Body
戻り値
Body 新しく創造されたプリズムジオメトリを表すオブジェクト。

◆ project_unit_square()

def cubit.project_unit_square (   pts,
  surface_id,
  quad_id,
  node00_id,
  node10_id 
)

地図は単位平方(四角形の座標)で表示し、それらをサーフェスに投げ込む。

pts内の各(u, v)(値は[0,1]で、quad面上の局所座標を表す)について、この関数はnode00_id(u=0, v=0)とnode10_id(u=1, v=0)を用いてquad(quad_id)上の対応点を求め、その3D点を指定サーフェス(surface_id)へ投影します。各投影点の3D座標を返します。

.. code-block:: python
# 1) Create a sphere of radius 1 (surface_id = 1, volume_id = 1).
cubit.cmd ("sphere rad 1" )
# 2) Set mesh size on volume 1 and mesh it.
cubit.cmd ("vol 1 size 1" )
cubit.cmd ("mesh vol 1" )
# 3) Define points in the unit square (u-v coordinates on quad face).
pts = [(0.25, 0.25), (0.5, 0.5), (0.75, 0.75)]
# 4) Project onto surface 1 using quad_id = 3, node00_id = 10, node10_id = 15.
positions = cubit.project_unit_square (pts, 1, 3, 10, 15)

for p in positions: print(p) # Each p is a list [x, y, z]

  @n type of pts:  std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std::allocator< double > > > >
パラメータ
pts (u, v) カップルのリスト(それぞれ長さ-2 ベクトル) で [0, 1], は、地元の u-v 座標を代表する四面。

surface_id の型:int
surface_id サーフェスのアイデンティティは、どのポイントがプロジェクトされているか。

quad_id の型:int
quad_id 四角形のIDは、単位四角形の座標をマップするために使用されます。

node00_id の型:int
node00_id 四重ノードのID(u=0、v=0)に相当する。

node10_id の型:int
node10_id 四重ノードのID(u=1, v=0)に相当する。

戻り値の型:std::vector< std::vector< double,std::allocator< double > >,std::allocator< std::vector< double,std:: allocator< double > > > >
戻り値
3つの要素のベクトル(x、y、z)のリストは、それぞれの予測された点を表しています。

◆ pyramid()

def cubit.pyramid (   height,
  sides,
  major,
  minor,
  top = 0.0 
)

特定のサイズのピラミッドを作成します。

通常のポリゴンベースから抽出されたピラミッドを作成し、大半径と小半径によって定義されます。 apex やトッププレートサイズは指定できます。

   .. code-block:: python
import cubit
# 1) Create a pointed pyramid: height=4, sides=5, major radius=3, minor radius=2.
pyramid_point = cubit.pyramid (4, 5, 3, 2)
print("Pointed pyramid ID:" , pyramid_point.id())
# 2) Create a truncated pyramid (frustum): height=4, sides=5, major=3, minor=2, top radius=1.
pyramid_frustum = cubit.pyramid (4, 5, 3, 2, 1)
print("Frustum pyramid ID:" , pyramid_frustum.id())
  @n type of height:  float, in
パラメータ
height ピラミッドの高さ

sides の型:int(入力)
sides ベースポリゴンの側面数

major の型:float(入力)
major ベースポリゴンの大半径。

minor の型:float(入力)
minor ベースポリゴンの小さな半径

top の型:float, in, optional
top トップ半径トルンカットピラミッド(デフォルト = 0 ポイントアペックス)

戻り値の型::py:class: Body
戻り値
Body 新しく作られたピラミッドジオメトリを表すオブジェクト。

◆ reflect()

def cubit.reflect (   entity,
  axis,
  preview = False 
)

反映一 Entity 特定の軸(例えば平面正常)について

与えられたものを反映する entity 次の平面に垂直な方向に: axis 」 オリジナルのエンティティは、変更なしでプレビューすることができます。 preview .

   .. code-block:: python
# Create a unit cube (Body ID 1)
cubit.cmd ("brick x 1 y 1 z 1" )
# Move the cube along +X by 10 units
b = cubit.body (1)
cubit.move (b, [10.0, 0.0, 0.0], False )
# Reflect across the Y-Z plane (normal = X-axis)
axis = [1.0, 0.0, 0.0]
cubit.reflect (b, axis, False )
# Get and print the new center point
pt = b.center_point()
print("Center Point:" , pt) # prints (-10.0, 0.0, 0.0)
  @n type of entity:  :py:class:`Entity`, in
パラメータ
entity ☆ ☆ ☆ ☆ Entity 反映されること。

axis の型:std::array< double,3 >(入力)
axis 軸(正常)は、反射を定義する平面。

preview の型:boolean, in, optional
preview 正しい場合は、事前表示を表示し、アプリケーションなしで表示します(デフォルト偽)。

◆ release_interface()

def cubit.release_interface (   instance )

以前リリースされたCubitインターフェイスをリリース。

指定インタフェースの参照数を減らす(またはクリーニングを実行する)。 これを呼び出した後、指標は使用しないでください。

.. code-block:: python
import cubit
iface = cubit.get_interface ("MeshInterface" )

if iface is not None:

iface を使い...

成功 = cubit.release_interface(iface) 失敗した場合: 印刷(「リリースインターフェイスに失敗した」)

  @n type of instance:  CubitBaseInterface
パラメータ
instance リリースするためのCubitBaseInterfaceへの指標。

戻り値の型:boolean
戻り値
インターフェイスが成功してリリースされた場合の真実; 偽りとは異なり。

◆ remove_entity_from_group()

def cubit.remove_entity_from_group (   group_id,
  entity_id,
  entity_type 
)

特定のエンティティを特定のグループから削除します。

.. code-block:: python

# Initialize geometry and group all vertices in volume 1.
cubit.cmd ("brick x 10" )
cubit.cmd ("group \"vert_group\" add vertex in vol 1" )
vert_group_id = cubit.get_id_from_name ("vert_group" )
# Remove vertex with ID 8 from the group.
cubit.remove_entity_from_group (vert_group_id, 8, "vertex" )
# Query remaining vertices in the group.
verts = cubit.get_group_vertices (vert_group_id)
print("Remaining vertices:" , len(verts)) # prints "7"
 @n type of group_id:  int
パラメータ
group_id エンティティを削除する対象グループのID。

entity_id の型:int
entity_id 削除するためのエンティティのID。

entity_type の型:string
entity_type エンティティの種類(例えばvertex、curve、surface、volume) ジオメトリのエンティティのみがサポートされています。

戻り値の型:void
戻り値
だれも。

◆ remove_filter_type()

def cubit.remove_filter_type (   filter_type )

グラフィック・ピックフィルターからエンティティタイプを削除します。

指定されたエンティティタイプの採取が禁止され、他のフィルターは変更されていません。

.. code-block:: python
import cubit
# Remove "curve" from the pick filter
 @n type of filter_type:  string
パラメータ
filter_type Entity 選択可能なセットから削除するタップ(例えば、vertex、curve、surface、volume、node、edge、face)。

◆ replace_progress_handler()

def cubit.replace_progress_handler (   progress )

現在の進歩バーのコールバックトレーダーを置き換え、古いトレーダーを返します。

既存の取引者を無記録し、その取引者に置き換える。 以前の売り手を削除せずに返す。

.. code-block:: python
import cubit
new_handler = MyProgressHandler()
old_handler = cubit.replace_progress_handler (new_handler)
# old_handler can be reused or released by Python garbage collection
 @n type of progress:  :py:class:`CubitProgressHandler`
パラメータ
progress 新たな指標を共有する CubitProgressHandler 例です。

戻り値の型::py:class: CubitProgressHandler
戻り値
過去の取引者に指標を共有する(設定されていない場合、ゼロになる可能性があります)。

◆ reset()

def cubit.reset ( )

Cubitの状態をリセットします。

セッション中に現在充電されているすべてのジオメトリおよびメッシュデータを削除し、Cubitを元の状態に戻します。

   .. code-block:: python
import cubit
# Create geometry and mesh
cubit.cmd ("brick x 10" )
cubit.cmd ("mesh volume 1" )
# Reset Cubit session
print("Cubit session has been reset." )

◆ reset_camera()

def cubit.reset_camera ( )

カメラの表示を再設定し、補助グラフィックウィンドウを明るくします。

デフォルトビューを復元し、対話を閉鎖し、オーバーレイヤーをクリアします。

.. code-block:: python
import cubit
cubit.cmd ("from 10 5 15" )
cubit.cmd ("at 0 0 0" )
cubit.cmd ("up 0 1 0" )
cubit.cmd ("journal view" ) # display updated from/at/up

◆ resume_playback()

def cubit.resume_playback ( )

休憩した雑誌プレイバックを再生します。

休憩後、日記の再生を継続し、手動で pause_playback() または、再生停止エラーが有効になったときにエラーが発生するため自動的に。

.. code-block:: python
import cubit
# Assume playback was paused earlier (manually or on error)

◆ scale()

def cubit.scale (   entity,
  factor,
  preview = False 
)

スケール A Entity 特定の要因によって均一に

データをスケールする entity によって factor あらゆる方向で。 利用 preview スケールされたジオメトリを表示し、それを適用せずに表示します。

   .. code-block:: python
# Create a 5x5x5 cube (Body ID 1)
cubit.cmd ("brick x 5" )
# Scale the cube by a factor of 2
b = cubit.body (1)
cubit.scale (b, 2.0, False )
# Get and print the new volume
vol = b.volume()
print("Volume:" , vol) # prints 1000
  @n type of entity:  :py:class:`Entity`, in
パラメータ
entity ☆ ☆ ☆ ☆ Entity スケールする。

factor の型:float(入力)
factor ユニフォームスケールの要因

preview の型:boolean, in, optional
preview 正しい場合は、事前表示を表示し、アプリケーションなしで表示します(デフォルト偽)。

◆ set_copy_block_on_geometry_copy_setting()

def cubit.set_copy_block_on_geometry_copy_setting (   val )

ブロックの拡散のための行動をジオメトリコピー中に設定します。

正確な設定:

  • ON:コピーされたジオメトリ/メッシュに新しいブロックを作成し、オリジナルを反映します。
  • USE_ORIGINAL: オリジナルのブロックにコピーされたジオメトリ/メッシュを追加します。
  • OFF:新しいジオメトリ/メッシュにブロックをコピーしないでください。
.. code-block:: python
print("Set to OFF, success:" , success)
print("Current setting:" , setting)
print("Set to ON, success:" , success)
print("Current setting:" , setting)
 @n type of val:  string
パラメータ
val 意図設定(‘ON’,‘USE_ORIGINAL’,または‘OFF’)

戻り値の型:boolean
戻り値
設定が成功した場合の真実、偽りとは違います。

◆ set_copy_nodeset_on_geometry_copy_setting()

def cubit.set_copy_nodeset_on_geometry_copy_setting (   val )

ノードセット拡散の行動をジオメトリコピー中に設定します。

正確な設定:

  • ON:コピーされたジオメトリ/メッシュに新しいノードセットを作成し、オリジナルを反映します。
  • USE_ORIGINAL: オリジナルのノードセットにコピーされたジオメトリ/メッシュを追加します。
  • OFF:新しいジオメトリ/メッシュにノードセットをコピーしないでください。
.. code-block:: python
print("Set to OFF, success:" , success)
print("Current setting:" , setting)
print("Set to ON, success:" , success)
print("Current setting:" , setting)
 @n type of val:  string
パラメータ
val 意図設定(‘ON’,‘USE_ORIGINAL’,または‘OFF’)

戻り値の型:boolean
戻り値
設定が成功した場合の真実、偽りとは違います。

◆ set_copy_sideset_on_geometry_copy_setting()

def cubit.set_copy_sideset_on_geometry_copy_setting (   val )

サイドセットの拡散の行動をジオメトリコピー中に設定します。

正確な設定:

  • ON:コピーされたジオメトリ/メッシュに新しいサイドセットを作成し、オリジナルを反映します。
  • USE_ORIGINAL: オリジナルのサイドセットにコピーされたジオメトリ/メッシュを追加します。
  • OFF:新しいジオメトリ/メッシュにサイドセットをコピーしないでください。
.. code-block:: python
print("Set to OFF, success:" , success)
print("Current setting:" , setting)
print("Set to ON, success:" , success)
print("Current setting:" , setting)
 @n type of val:  string
パラメータ
val 意図設定(‘ON’,‘USE_ORIGINAL’,または‘OFF’)

戻り値の型:boolean
戻り値
設定が成功した場合の真実、偽りとは違います。

◆ set_cubit_interrupt()

def cubit.set_cubit_interrupt (   interrupt )

Cubitで中断可能な操作を有効または無効にします。

真実に設定すると、中断可能なCubitプロセスは次の中断チェックで停止されます。

.. code-block:: python
import cubit
# Disable interrupts
# Enable interrupts
 @n type of interrupt:  boolean
パラメータ
interrupt 断ち切れるプロセスを止めるのは真実であり、それらを許すのは偽りである。

◆ set_cubit_message_handler()

def cubit.set_cubit_message_handler (   hdlr )

Cubit出力をカスタムメッセージトレーナーにリダイレクトします。

デフォルトのCubitメッセージマネージャーを置き換え、その後のすべてのメッセージがprint_message()および/またはprint_error()を実行するために提供されたマネージャーの例にルーティングされます。

.. code-block:: python
import cubit

トップページ > トップページ > (タイトル(英名):cubitMessageHandler ): def print_message(self, message):

print("[Info]" , message)

def print_error(self, message): print("[Error]", message, file=sys.stderr)

handler = MyHandler()
 @n type of hdlr:  :py:class:`CubitMessageHandler`
パラメータ
hdlr 指標を共有するA CubitMessageHandler メッセージを受け取る。

◆ set_element_variable()

def cubit.set_element_variable (   element_ids,
  variable_name,
  variables 
)

Exodus輸出のための指定されたメッシュ要素にスケール変数を設定します。

要素の変数を指定する variable_name 「要素」の「要素」 element_ids 関連する値を使用して、 variables 。 variables 単一の入力が含まれており、その値はすべての要素に適用されますが、そうでなければ、その長さは一致する必要があります。 element_ids 」 メッシュをExodusファイルに輸出すると、これらの要素変数はダウンストリーム分析に含まれます。

   .. code-block:: python
# Create a rectangular surface and mesh to generate elements
cubit.cmd ("create surface rectangle width 10" )
cubit.cmd ("mesh surface 1" )
# Define block 1 using surface 1 to specify global element IDs
cubit.cmd ("block 1 surface 1" )
# Assign 'compression' variable to elements in block 1
element_ids = [1, 2, 3, 4] # IDs derived from block 1
var_name = "compression"
values = [1.2, 1.53, 2.3, 9.5]
cubit.set_element_variable (element_ids, var_name, values)
# Export mesh to Exodus to include element variables
cubit.cmd ("export mesh \"output.e\"" )
  @n type of element_ids:  std::vector< int,std::allocator< int > >, in
パラメータ
element_ids 変数を割り当てるための要素IDのリスト。

variable_name の型:string(入力)
variable_name 要素の変数の名称

variables の型:std::vector< double,std::allocator< double > >(入力)
variables 各要素の値(単一値はすべての要素に適用される)。

◆ set_entity_name()

def cubit.set_entity_name (   entity_type,
  entity_id,
  new_name 
)

指定されたエンティティの名前を設定します。

コマンドと同等です。

.. code-block:: c++

{Body|Volume|Surface|Curve|Vertex} <id_range> name '<name_string>'

たとえば、『頂点』22point_loadを指定するには、

.. code-block:: c++

Vertex 22 name 'point_load'

.. code-block:: python

success = cubit.set_entity_name ("vertex" , 22, "point_load" )

if success: print("Rename succeeded")

  @n type of entity_type:  string
パラメータ
entity_type エンティティタイプ("body"、"volume"、"surface"、"curve"、"vertex")。

entity_id の型:int
entity_id エンティティのIDを改名する。

new_name の型:string
new_name 新しい名前をエンティティに割り当てる。

戻り値の型:boolean
戻り値
もしエンティティが発見され、改名された場合、それは真実であり、そうでなければ偽りである。

◆ set_exit_handler()

def cubit.set_exit_handler (   hdlr )

Cubitにカスタマイズされた出力コールバックを設定します。

ExternalExitHandlerに由来する例を提供してCubitの出発イベントを処理します。

.. code-block:: python
import cubit

トップ > トップ > トップ > (cubit.ExternalExitHandler ): def handle_exit_event(self, code):

print(f"Cubit exiting with code {code}, cleaning up..." )
handler = MyExitHandler()
 @n type of hdlr:  :py:class:`ExternalExitHandler`
パラメータ
hdlr 指標は1 ExternalExitHandler Cubitが出るときに呼ばれる実施。

◆ set_filter_types()

def cubit.set_filter_types (   num_types,
  filter_types 
)

複数の選択フィルタータイプをグラフィック選択に設定します。

グラフィックシステムを設定して、提供されたリストに含まれているエンティティを選択できます。 すでに設定されたピックフィルターを超える。

.. code-block:: python
import cubit
# Enable picking of surfaces and curves
cubit.set_filter_types (2, ["surface" , "curve" ])
 @n type of num_types:  int
パラメータ
num_types 「Filter_types」のエンティティタイプの数

filter_types の型:std::vector< std::string,std::allocator< std::string > >
filter_types ベクトルのエンティティタイプの線は、引き出しを可能にする。 有効な値にはvertex、curve、surface、volume、node、edge、faceなどが含まれます。

◆ set_label_type()

def cubit.set_label_type (   entity_type,
  label_flag 
)

特定のエンティティタイプのためのラベルディスプレイタイプを設定します。

グラフィックウィンドウで指定されたエンティティタイプのラベルがどのように表示されるかをチェックします。

有効 entity_type 価値観:

"RefVolume" , "RefFace" , "RefEdge" , "RefVertex" ,
"CubitHex" , "CubitTet" , "CubitFace" , "CubitTri" ,
"CubitEdge" , "CubitNode" , "CubitSphere"

フラッグラベル( SVUtil::LabelType ): 0=CUBIT_LABEL_NONE, 1=CUBIT_LABEL_ID, 2=CUBIT_LABEL_ELEMENT_ID, 3=CUBIT_LABEL_NAME, 4=CUBIT_LABEL_INTERVAL, 5=CUBIT_LABEL_SIZE, 6=CUBIT_LABEL_MERGE, 7=CUBIT_LABEL_IS_MERGED, 8=CUBIT_LABEL_FIRMNESS, 9=CUBIT_LABEL_SCHEME, 10=CUBIT_LABEL_NAME_ID, 11=CUBIT_LABEL_NAME_ONLY, 12=CUBIT_LABEL_SPHERE_ID

.. code-block:: python
cubit.set_label_type ("RefFace" , 1) # Show face IDs
 @n type of entity_type:  string
パラメータ
entity_type Entity ラベルにタイプする。

label_flag の型:int
label_flag ラベルディスプレイタイプ
 @n return type of :  void
戻り値
だれも。

◆ set_max_group_id()

def cubit.set_max_group_id (   maximum_group_id )

Cubitの内部最大グループIDを指定値に戻します。

Cubitは次のグループIDを一貫して増加させている。 GUIのパワーツールは、シーンの後ろにグループを作成し、削除し、CubitのグループIDコアを増加させ、ダウンストリームジャーナルファイルを予期せぬIDを参照させることができます。 この機能はCubitの最大グループIDを再設定することによってコントロールを回復しますが、指定された maximum_group_id Cubitの現在の最高IDに合致しますか?そうでなければ変更はありません。

Warning
節約的に使う。 間違った maximum_group_id ジャーナルファイルを解同化したり、ID衝突を引き起こしたりすることができます。



maximum_group_id の型:int

パラメータ
maximum_group_id 実行するために必要な最大グループID(Cubitの現在の最大IDに等しい必要があります)。

戻り値の型:void
戻り値
だれも。

◆ set_ML_base_user_dir()

def cubit.set_ML_base_user_dir (   path,
  print_info = False 
)

ユーザーが提供するMLトレーニングデータのルートディレクトリを設定します(分類のみ)。

操作の分類のためのユーザートレーニングファイルの位置を指定します。 ディレクトリには、ML 操作名称(e.g、ml/volume_no_op)と一致するサブフォルダーが含まれなければなりません。



path の型:string

パラメータ
path ユーザートレーニングデータディレクトリへのトップレベルのパス

print_info の型:boolean, optional
print_info もしそうなら、ディレクトリの設定に関する出力状態のメッセージ。
   .. code-block:: python
data_dir = "/path/to/user/training/data"
cubit.set_ML_base_user_dir (data_dir, True )

◆ set_modified()

def cubit.set_modified ( )

モデルのmodified状態を"unmodified"へリセットします。

内部の旗を明るくして、 is_modified() 次のCADの操作まで偽を返します。

.. code-block:: python
import cubit
cubit.cmd ('import "part.sat"' )
# Now:
print(cubit.is_modified ()) # False
cubit.cmd ("remove surface 10" )
print(cubit.is_modified ()) # True

◆ set_nodal_variable()

def cubit.set_nodal_variable (   node_ids,
  variable_name,
  variables 
)

スケーラー変数を指定されたメッシュノードに設定します。

ノード名変数を指定する variable_name ノードに node_ids 関連する値を使用して、 variables 。 variables 単一の値を含み、その値はすべてのノードに適用されます; そうでなければ、その長さは一致する必要があります。 node_ids 」 Exodusに輸出する場合、これらのノード値は分析のために含まれます。

   .. code-block:: python
# Create a rectangular sheet and mesh it to generate nodes
cubit.cmd ("create surface rectangle width 10" )
cubit.cmd ("mesh surface 1" )
# Assign compression variable to nodes 1, 2, 3, and 4
node_ids = [1, 2, 3, 4]
var_name = "compression"
values = [1.2, 1.53, 2.3, 9.5]
cubit.set_nodal_variable (node_ids, var_name, values)
  @n type of node_ids:  std::vector< int,std::allocator< int > >, in
パラメータ
node_ids 変数を割り当てるためのノードIDのリスト。

variable_name の型:string(入力)
variable_name ノード変数の名称

variables の型:std::vector< double,std::allocator< double > >(入力)
variables 各ノードの値(単一値はすべてのノードに適用されます)。

◆ set_overlap_max_angle()

def cubit.set_overlap_max_angle (   maximum_angle )

最大角度の許容差を設定して「サーフェス」の表面を計算します。

サーフェスの正常値の間の角度差がどれだけ存在するかを定義する限界を更新する前にサーフェスは非過剰なものとみなされます。 小さな値は「表面」が特にコプラナルであることを要求することによって、より厳格な上層検出を実施します。

.. code-block:: python
# Set the overlap max angle to 5 degrees.
# Verify the new setting.
new_max_angle = cubit.get_overlap_max_angle ()
print("New overlap max angle:" , new_max_angle)
 @n type of maximum_angle:  float
パラメータ
maximum_angle 新しい最大角度の許容差(度)は、テスト時に使用するサーフェスの過剰。

◆ set_overlap_max_gap()

def cubit.set_overlap_max_gap (   maximum_gap )

許容差の最大差を設定して「サーフェス」の過剰を計算します。

2つの「サーフェス」の間の格差がどれほど大きいかを定義する限界を更新する前に、それらは過剰なものとみなされる。 より小さな値は、上層テストをより厳格にし、より大きな値は、より大きな差異を可能にします。

.. code-block:: python
# Set the overlap max gap to 0.01 model units.
# Verify the new setting.
new_max_gap = cubit.get_overlap_max_gap ()
print("New overlap max gap:" , new_max_gap)
 @n type of maximum_gap:  float
パラメータ
maximum_gap 新しい最大差許容差 (モデルユニット) テスト時に使用するサーフェスを超越します。

◆ set_overlap_min_gap()

def cubit.set_overlap_min_gap (   min_gap )

最低限の許容差を設定して「サーフェス」の表面を計算します。

2つの「サーフェス」の間の格差がどれほど小さいかを定義する限界を更新する前に、それらが過剰であると考えられます。 小さな価値観は、非常に小さな格差のみを無視することによって、より厳格な過剰検出を実施します。

.. code-block:: python
# Set the overlap min gap to 0.0001 model units.
# Verify the new setting.
new_min_gap = cubit.get_overlap_min_gap ()
print("New overlap min gap:" , new_min_gap)
 @n type of min_gap:  float
パラメータ
min_gap 新しい最低差許容差(モデルユニット)は、テスト時に使用するサーフェスの過剰。

◆ set_pick_type()

def cubit.set_pick_type (   pick_type,
  silent = False 
)

エンティティの選択のための現在の選択モードを設定します。

次の選択でグラフィックシステムが選択するエンティティを指定します。 これは、生産量を決定する。 get_selected_ids() 対話を選びます。

.. code-block:: python
import cubit
# Change pick mode to surface (prints confirmation)
cubit.set_pick_type ("surface" )
# Change pick mode to volume silently (no confirmation)
cubit.set_pick_type ("volume" , True )
 @n type of pick_type:  string
パラメータ
pick_type Entity 選ぶタイプ。 有効な値には、vertex、curve、surface、volume、node、edge、faceなどが含まれます。

silent の型:boolean, optional
silent 正しい場合は、変更を確認するコンソールメッセージを削除します。 誤りと偽り(印刷確認)

◆ set_playback_paused_on_error()

def cubit.set_playback_paused_on_error (   pause )

プレイバックがエラーで停止するかどうかを設定します。

Cubitがエラーが発生したときに自動的にジャーナル再生を停止するかどうかをチェックし、継続する前に検査を可能にします。

.. code-block:: python
# Python example
import cubit
# Enable pause on error during journal playback
# Run a journal file; playback will pause if an error occurs
cubit.cmd ("play 'test.jou'" )
# Disable pause on error
 @n type of pause:  boolean
パラメータ
pause True to pause playback on error; false to continue automatically. エラーで再生を停止するための真実; 自動的に継続するための偽物。

◆ set_progress_handler()

def cubit.set_progress_handler (   progress )

Cubitでプロセスバーの通話バックトレーナーを登録します。

特定のトレーナーをアクティブな進歩バーの呼び出しとして設定します。 売り手がすでに登録されている場合、それはリリースされます(しかし返却されません)。

.. code-block:: python
import cubit

トップページ > トップページ > トップページ >タイトル:cubitProgressHandler ): def start(self, title, info_string, hasCancel): print {info_string}") def end(self): print("Progress complete.") def percent(self, pcnt): print {pcnt * 100:.1f}%", end="\r") def check_interrupt(self): return False

handler = MyProgressHandler()



progress の型::py:class: CubitProgressHandler

パラメータ
progress 指標を共有するA CubitProgressHandler 例です。

◆ set_rendering_mode()

def cubit.set_rendering_mode (   mode )

現在のグラフィック・レンダーモードを設定する(「グラフィック・モード <オプション>」に等しい)。

これがCubitのコマンドのプログラミング方程式です。

どこで mode あるいはあるかもしれない HiddenLine , TrueHiddenLine , SmoothShade , Transparent , WireFrame 、または GeomFacet 」 ストレッチの代わりに、この機能は完全なコードを受け入れる:

  • 0 = WireFrame
  • 1 = HiddenLine
  • 2 = TrueHiddenLine
  • 3 = SmoothShade
  • 4 = Transparent
  • 5 = GeomFacet
Python example (for reference):

.. code-block:: python
import cubit
# Equivalent to: cubit.cmd("Graphics Mode SmoothShade")



mode の型:int

パラメータ
mode 0=WireFrame、1=HiddenLine、2=TrueHiddenLine、3=SmoothShade、4=Transparent、5=GeomFacetに合致する。

◆ set_undo_saved()

def cubit.set_undo_saved ( )

モデルに不必要な旗を明るくする。

現在のモデル状態を undo の目的のために保存されているようにマークします。 呼び出した後、 is_undo_save_needed() 操作を次の変更まで、誤って返します。

.. code-block:: python
import cubit

◆ silent_cmd()

def cubit.silent_cmd (   input_string )

Cubitのコマンドを実行し、エコインやバルボス出力なしで実行します。

のような行動 cmd() , but suppresses prompt echo and messages–ideal for scripting. しかし、スクリプトのための即時エコとメッセージを抑制します。

.. code-block:: python
import cubit
ok = cubit.silent_cmd ("mesh volume 1" )
 @n type of input_string:  string
パラメータ
input_string C ストリップにはCubitコマンドが含まれています。

戻り値の型:boolean
戻り値
コマンドが正常実行された場合true、それ以外はfalse。

◆ snap_locations_to_geometry()

def cubit.snap_locations_to_geometry (   locations,
  entity_type,
  entity_id,
  tol 
)

スナップは、指定されたエンティティの最も近い点にXYZの位置を指定します。

ポイントは、最初に指定されたエンティティの最寄りの位置にスナップされます。 許容差の範囲内で、ポイントは優先的に頂点に切り落とされ、カーブに続きます。

.. code-block:: python
# Geometry setup
cubit.cmd ("sphere rad 1" )
cubit.cmd ("split periodic vol 1" ) # creates a curve at the equator
locations = [[1, 0.001, 0], [1, 1, 1], [-1, 0.1, 0]]
snapped_xyz_vec = cubit.snap_locations_to_geometry (locations, "body" , 1, 0.01)
print(snapped_xyz_vec)
# Expected Output:
# ((1.0, 0.0, 0.0), (0.577350, 0.577350, 0.577350), (-0.995037, 0.099504, 0.0))
 @n type of locations:  std::vector< std::array< double,3 >,std::allocator< std::array< double,3 > > >
パラメータ
locations XYZのベクトルがスナップを指します。

entity_type の型:string
entity_type エンティティタイプ(例: "volume"、"surface"、"curve")。

entity_id の型:int
entity_id ターゲットエンティティのID

tol の型:float
tol 許容差は頂点とカーブにスナップするためです。
 @n return type of : std::vector< std::array< double,3 >,std::allocator< std:: array< double,3 > > >
戻り値
入力場所に合致するXYZポイントのベクトル

◆ sphere()

def cubit.sphere (   radius,
  x_cut = 0,
  y_cut = 0,
  z_cut = 0,
  inner_radius = 0 
)

全てまたは一部のスペースを作成します。

特定の半径の領域的なジオメトリを生み出します。 オプションのフラワーカット(YZ、XZ、またはXYフラワーの間)および空のスペースの内部の半径を指定することができます。

   .. code-block:: python
import cubit
# 1) Create a full sphere of radius 1.
full_sphere = cubit.sphere (1.0)
print("Full sphere Body ID:" , full_sphere.id())
print("Sphere volume:" , full_sphere.volume())
# Expected output:
# Full sphere Body ID: 1
# Sphere volume: 4.18879
# 2) Create a half-sphere (cut by yz-plane).
half_sphere = cubit.sphere (1.0, 1)
print("Half-sphere Body ID:" , half_sphere.id())
print("Half-sphere volume:" , half_sphere.volume())
# Expected output:
# Half-sphere Body ID: 2
# Half-sphere volume: 2.0940168474871794
# 3) Create a hollow sphere: outer radius 5, inner radius 3.
hollow_sphere = cubit.sphere (5.0, 0, 0, 0, 3.0)
print("Hollow sphere Body ID:" , hollow_sphere.id())
print("Hollow sphere volume:" , hollow_sphere.volume())
# Expected output:
# Hollow sphere Body ID: 3
# Hollow sphere volume: 410.5014400690663
  @n type of radius:  float, in
パラメータ
radius スペースの半径

x_cut の型:int, in, optional
x_cut 1の場合、スファーを yz-平面 (デフォルト = 0) で切ります。

y_cut の型:int, in, optional
y_cut もし 1 なら xz-平面 (デフォルト = 0) によってスペラを切ります。

z_cut の型:int, in, optional
z_cut 1の場合、スペースを xy-平面 (デフォルト = 0) によって切り落とします。

inner_radius の型:float, in, optional
inner_radius 内部の半径は、空の領域(デフォルト=0)のためのものです。

戻り値の型::py:class: Body
戻り値
Body 新しく創造された領域ジオメトリを表すオブジェクト。

◆ step_next_possible_selection()

def cubit.step_next_possible_selection ( )

現在の選択リストの次のエンティティに進みます。

内部選択ポインタを1つ進め、どのエンティティを"current"選択とみなすかを更新します: print_currently_selected_entity() .

.. code-block:: python

◆ step_previous_possible_selection()

def cubit.step_previous_possible_selection ( )

現在の選択リストのエンティティに戻ります。

内部選択ポインタを1つ戻し、"current"選択を直前のステップ前の状態へ戻します。

.. code-block:: python

◆ stop_playback()

def cubit.stop_playback ( )

雑誌プレイバックを完全に止める。

ジャーナルファイルの実行は直ちに終了します。 これは通常、エラーや条件的な論理のせいで流産再生のためにジャーナル内で使用されます。 再起動、使用 resume_playback() 手動でコマンドを再起動します。

.. code-block:: python
import cubit
# Check some condition, then stop playback if needed
# Playback will not continue past this point

◆ string_from_id_list()

def cubit.string_from_id_list (   ids )

インテガーのリストをコンパクトなCubitスタイルのIDストリップに変換します。

連続IDが「スタートから終わり」の範囲に崩壊し、コンマスでエントリーを分離し、読みやすさのために80文字のラインブレイクを入力します。

タイトル例:

  • {1,2,3,4,5,6,7,8} -> "1 to 8\n"
  • {1,2,3,100,5,6,7,8} -> "1 to 3, 5 to 8, 100\n"
.. code-block:: python
import cubit
ids = [1, 2, 3, 4]
# s == "1 to 4\n"
 @n type of ids:  std::vector< int,std::allocator< int > >
パラメータ
ids ベクトルから形式に全身ID。

戻り値の型:string
戻り値
列を含む線と線の割り当ては、コラム80にあります。

◆ subtract()

def cubit.subtract (   tool_in,
  from_in,
  imprint_in = False,
  keep_old_in = False 
)

ボーリーのサブトラクト操作を実行する:ターゲットボディからツールボディを削除します。

すべてのボディをボディに tool_in 関連するボディから from_in 」 サブトラクションが共有されたジオメトリを印刷できる場合 imprint_in それは真実であり、オリジナルのボディが保存される場合があります。 keep_old_in 真実です。

   .. code-block:: python
# Create a box (Body ID 1) and a cylinder (Body ID 2)
cubit.cmd ("brick x 10" ) # Volume 1000
cubit.cmd ("cylinder radius 3 height 10" ) # Volume ~282.74
# Define tool and target bodies
tool = cubit.body (2)
target = cubit.body (1)
# Subtract cylinder from box
result = cubit.subtract ([tool], [target], False , False )
b = result[0]
print("Resulting Body ID:" , b.id())
print("Volume:" , b.volume()) # prints ~717.26
  @n type of tool_in:  std::vector< CubitInterface::Body,std::allocator< CubitInterface::Body > >, in
パラメータ
tool_in ボディをサトラクトする(ツール)

from_in の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface::Body > >(入力)
from_in ボディから引き下げる(ターゲット)

imprint_in の型:boolean, in, optional
imprint_in 共通のジオメトリ(デフォルト偽)を印刷するための真実です。

keep_old_in の型:boolean, in, optional
keep_old_in オリジナルのボディ(デフォルト偽物)を保存するために真実です。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
ベクトルの Body subtract処理後の結果bodyを表すオブジェクト。

◆ surface()

def cubit.surface (   id_in )

サーフェスオブジェクトをそのIDで回収します。

提供されたIDに合致するサーフェスオブジェクトを返します。

   .. code-block:: python
import cubit
# Create a 10x10x10 brick (surface IDs include the outer faces).
cubit.cmd ("brick x 10" )
# Retrieve surface with ID 1.
surface = cubit.surface (1)
print("Surface ID:" , surface.id())
  @n type of id_in:  int
パラメータ
id_in サーフェスのアイデンティティを取得する。

戻り値の型::py:class: Surface
戻り値
Surface 指定されたIDに合致するオブジェクト。

◆ sweep_curve()

def cubit.sweep_curve (   curves,
  along_curves,
  draft_angle,
  draft_type,
  rigid 
)

Sweep 1 つまたは複数のカーブをパスに沿ってボディの表を作成します。

表ボディを構築し、指定された交差セクションカーブを指定されたパスカーブに沿ってスイッチします。 オプションのデザインの角度、デザインのタイプ、および硬度コントロールタッパーおよび回転行動。 これはサーフェスのボディ(固体のボリュームではない)を生み出し、それぞれ返す。 Body まさに1つが含まれている。 Surface 」 ボディの使い方 surfaces() アクセスする方法と面積を取得する方法

   .. code-block:: python
import cubit
# Create section curve.
v0 = cubit.create_vertex (0, 0, 0)
v1 = cubit.create_vertex (1, 0, 0)
section = cubit.create_curve (v0, v1)
# Create path curve.
p0 = cubit.create_vertex (0, 0, 0)
p1 = cubit.create_vertex (0, 0, 1)
path = cubit.create_curve (p0, p1)
# Sweep with default parameters.
bodies = cubit.sweep_curve ([section], [path])
# We expect one sheet body.
sheet = bodies[0]
print("Sheet Body ID:" , sheet.id())
# Retrieve its surface and print area.
surface = sheet.surfaces()[0]
print("Surface area:" , surface.area())
# Expected output:
# Sheet Body ID: 1
# Surface area: 1.0
  @n type of curves:  std::vector< CubitInterface::Curve,std::allocator< CubitInterface::Curve > >, in
パラメータ
curves クロスセクションカーブからsweepへ。

along_curves の型:std::vector< CubitInterface::Curve,std::allocator< CubitInterface::Curve > >(入力)
along_curves sweep軌跡を定義するpath curve。

draft_angle の型:float(入力)
draft_angle プロジェクトタッパー(デフォルト=0)のための角度(グレード)

draft_type の型:int(入力)
draft_type プロジェクトタイプ: 0=拡張、1=回転、2=自然(デフォルト=0)

rigid の型:boolean(入力)
rigid もし真実なら、クロスセクションの厳しさ(デフォルト=偽)を維持します。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
ベクトルの葉 Body 「Sweep」によって作成されたオブジェクト(それぞれが1つを含む) Surface) レース: CubitFailureException 入力が無効である場合、またはsweepが失敗する場合。

◆ temperature_is_on_shell_area()

def cubit.temperature_is_on_shell_area (   bc_type_enum,
  bc_area_enum,
  entity_id 
)

BCの温度がシェルの面積にあるかどうかを確認します。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型(温度=4、コンベクション=7)

bc_area_enum の型:int
bc_area_enum CI_BCEntityTypes: 7 (トップ)、8 (下)、9 (グラディエント)、10 (中間)。

entity_id の型:int
entity_id BCのアイデンティティ

戻り値の型:boolean
戻り値
BCの温度が指定されたシェルの面積にある場合が正しい。

◆ temperature_is_on_solid()

def cubit.temperature_is_on_solid (   bc_type_enum,
  entity_id 
)

安定した地域にBC温度が適用されるかどうかを確認します。

温度およびコンベクション BCs に適用されます。



bc_type_enum の型:int

パラメータ
bc_type_enum BC型(温度=4、コンベクション=7)

entity_id の型:int
entity_id 境界条件の識別

戻り値の型:boolean
戻り値
BCの温度が安定した場合。

◆ torus()

def cubit.torus (   center_radius,
  swept_radius 
)

特定のサイズのトーラを作成します。

トロイダルジオメトリを生み出し、中部から中部までの距離と、中部の半径と、中部の半径によって定義される。

   .. code-block:: python
import cubit
# 1) Create a torus: center_radius=5, swept_radius=1.
torus1 = cubit.torus (5, 1)
print("Torus ID:" , torus1.id())
print("Torus volume:" , torus1.volume())
# Expected output:
# Torus ID: 1
# Torus volume: 98.69604
# 2) Create a thick torus: center_radius=3, swept_radius=2.
torus2 = cubit.torus (3, 2)
print("Torus ID:" , torus2.id())
print("Torus volume:" , torus2.volume())
# Expected output:
# Torus ID: 2
# Torus volume: 236.87051
  @n type of center_radius:  float, in
パラメータ
center_radius トゥーロスの中心からスイートサークルの中心までの距離(大半径はswept_radiusでなければならない)。

swept_radius の型:float(入力)
swept_radius サークルの半径を振り回す(小さな半径はcenter_radiusでなければならない)。

戻り値の型::py:class: Body
戻り値
Body 新しく作られたトーロスジオメトリを表すオブジェクト。

◆ tweak_curve_offset()

def cubit.tweak_curve_offset (   curves,
  distances,
  keep_old = False,
  preview = False 
)

tweak_surface_offsetの2D相当機能です。シートボディ上の指定カーブをオフセットします。

それぞれのカーブを curves 関連する価値について distances 2Dでボディを書く。 オリジナルタイトルは保存できます。 keep_old そして、予測によって生成された preview .

   .. code-block:: python
# Create a rectangular sheet with width 10 (height defaults to 10)
cubit.cmd ("create surface rectangle width 10" )
# Offset curve 1 by 10 units
curves = [ cubit.curve (1) ]
distances = [ 10.0 ]
bodies = cubit.tweak_curve_offset (curves, distances, False , False )
# Only one sheet body is returned
b = bodies[0]
print("Body ID:" , b.id())
# Get the first surface from the sheet and print its area
surf = b.surfaces()[0]
area = surf.area()
print("Surface Area:" , area) # prints 200
  @n type of curves:  std::vector< CubitInterface::Curve,std::allocator< CubitInterface::Curve > >, in
パラメータ
curves リスト → Curve オブジェクトを補償する。

distances の型:std::vector< double,std::allocator< double > >(入力)
distances 各カーブの距離のリスト(モデルユニット)

keep_old の型:boolean, in, optional
keep_old オリジナルのボディ(デフォルトウィルス)を保存するには真実です。

preview の型:boolean, in, optional
preview ジオメトリ(デフォルト偽)を変更せずにプレビューを生成するには真実です。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
葉のベクトル Body オブジェクトは、補償後の結果のボディを表す。

◆ tweak_curve_remove()

def cubit.tweak_curve_remove (   curves,
  keep_old = False,
  preview = False 
)

指定されたカーブを削除し、隣接する「サーフェス」をボディの葉に伸ばします。

tweak_surface_removeの2D同等です。 各カーブ(エッジ)を削除する curves 2Dシートボディから隣接するサーフェスは、削除によって生じた格差を満たすために拡張されます。 オリジナルタイトルは保存できます。 keep_old 変更なしでプレビューを生成することができる場合 preview 真実です。

   .. code-block:: python
# Create a rectangular sheet with width 10
cubit.cmd ("create surface rectangle width 10" )
# Fillet vertex 1 with radius 1 (creates curve ID 5)
cubit.cmd ("tweak vertex 1 fillet radius 1" )
# Remove the fillet curve (ID 5)
curves = [ cubit.curve (5) ]
bodies = cubit.tweak_curve_remove (curves, False , False )
# Only one sheet body is returned
b = bodies[0]
print("Body ID:" , b.id())
# Get the first surface from the sheet and print its area
surf = b.surfaces()[0]
area = surf.area()
print("Surface Area:" , area) # prints 100
  @n type of curves:  std::vector< CubitInterface::Curve,std::allocator< CubitInterface::Curve > >, in
パラメータ
curves リスト → Curve 取り除く物体。

keep_old の型:boolean, in, optional
keep_old オリジナルのボディ(デフォルトウィルス)を保存するには真実です。

preview の型:boolean, in, optional
preview ジオメトリ(デフォルト偽)を変更せずにプレビューを生成するには真実です。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
葉のベクトル Body カーブを除去した後の結果のボディを表す物体。

◆ tweak_surface_offset()

def cubit.tweak_surface_offset (   surfaces,
  distances 
)

サーフェスを指定するオフセットは距離によって指定されます。

それぞれのサーフェスを surfaces 関連する価値について distances ジオメトリを変更し、結果のボディを返す(入力セットごとに1個)。

 .. code-block:: python
# Create a 1x1x1 brick; surfaces 1-6 are generated.
cubit.cmd ("brick x 1 y 1 z 1" )
# Offset surface 1 by 1 unit
surfaces = [ cubit.surface (1) ]
distances = [ 1.0 ]
bodies = cubit.tweak_surface_offset (surfaces, distances)
# Only one body is returned
b = bodies[0] # returns 1
print("Body ID:" , b.id())
vol = b.volume() # returns 2
print("Volume:" , vol)
@n type of surfaces:  std::vector< CubitInterface::Surface,std::allocator< CubitInterface::Surface > >
パラメータ
surfaces リスト → Surface オブジェクトを補償する。

distances の型:std::vector< double,std::allocator< double > >
distances 各サーフェスの距離のリスト(ポジティブな値は外側に割り当てられます)。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
ベクトルの Body 修正されたジオメトリに相当する物体(一) Body 各offset操作について)。

◆ tweak_surface_remove()

def cubit.tweak_surface_remove (   surfaces,
  extend_ajoining = True,
  keep_old = False,
  preview = False 
)

指定されたサーフェスをボディから削除し、選択的に隣接するサーフェスを拡張します。

各サーフェスを削除する surfaces そのbodyから。もし extend_ajoining 確かに、隣接するサーフェスは、格差を閉じるために拡張されます。 オリジナルのボディは保存できる。 keep_old 変更なしでプレビューを生成することができる場合 preview 真実です。

   .. code-block:: python
# Create a brick with x-length 10
cubit.cmd ("brick x 10" )
# Add a blend on curve 12 with radius 1
cubit.cmd ("modify curve 12 blend radius 1" )
# Remove the blend surface (ID 7)
surfaces = [ cubit.surface (7) ]
bodies = cubit.tweak_surface_remove (surfaces, True , False , False )
# Only one body is returned
b = bodies[0]
print("Body ID:" , b.id())
# Get the volume of the resulting brick
vol = b.volume() # returns 1000
print("Volume:" , vol) # prints 1000
  @n type of surfaces:  std::vector< CubitInterface::Surface,std::allocator< CubitInterface::Surface > >, in
パラメータ
surfaces リスト → Surface 取り除く物体。

extend_ajoining の型:boolean, in, optional
extend_ajoining 隣接するサーフェス(デフォルト真実)を拡張するために真実です。

keep_old の型:boolean, in, optional
keep_old オリジナルのボディ(デフォルト偽物)を保存するために真実です。

preview の型:boolean, in, optional
preview ジオメトリ(デフォルト偽)を変更せずにプレビューを生成するには真実です。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
ベクトルの Body remove処理後の結果bodyを表すオブジェクト。

◆ tweak_vertex_fillet()

def cubit.tweak_vertex_fillet (   verts,
  radius,
  keep_old = False,
  preview = False 
)

2D シート頂点シャンファー:指定された頂点にシャンファーを作成し、隣接するカーブをオフセットします。

各頂点で操作を実行します。 verts 2Dでボディを書く。 隣接するカーブは距離で平らな顔を形成するために切り裂かれ、伸びます。 radius 頂点から。 オリジナルタイトルは保存できます。 keep_old そして、予測によって生成された preview .

   .. code-block:: python
# Create a rectangular sheet with width 10
cubit.cmd ("create surface rectangle width 10" )
# Chamfer vertex 1 with distance 1 (creates new edges)
verts = [ cubit.vertex (1) ]
bodies = cubit.tweak_vertex_fillet (verts, 1.0, False , False )
# Only one sheet body is returned
b = bodies[0]
print("Body ID:" , b.id())
# Get the first surface from the sheet and print its area
surf = b.surfaces()[0]
area = surf.area()
print("Surface Area:" , area) # prints 99.5
  @n type of verts:  std::vector< CubitInterface::Vertex,std::allocator< CubitInterface::Vertex > >, in
パラメータ
verts リスト → Vertex オブジェクトはシャンファー。

radius の型:float(入力)
radius チャンファー距離(モデルユニット)

keep_old の型:boolean, in, optional
keep_old オリジナルのボディ(デフォルトウィルス)を保存するには真実です。

preview の型:boolean, in, optional
preview ジオメトリ(デフォルト偽)を変更せずにプレビューを生成するには真実です。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
葉のベクトル Body chamfer処理後の結果bodyを表すオブジェクト。

◆ unite()

def cubit.unite (   body_in,
  keep_old_in = False 
)

ボーリーユニット操作を実行する:指定されたボディが1つに合併する。

ボディを結びつける body_in 単一のボディにサーフェスは連絡先に接続されます。 オリジナルのボディは保存できる。 keep_old_in .

   .. code-block:: python
# Create a 10x10x10 brick (Body ID 1) and a cylinder (Body ID 2)
cubit.cmd ("brick x 10" ) # Volume 1000
cubit.cmd ("cylinder radius 3 height 10" ) # Volume ~282.74
# Move the cylinder (Body 2) along +Z by 10
cubit.cmd ("move volume 2 z 10" )
# Unite bodies 1 and 2 into one
inputs = [ cubit.body (1), cubit.body (2) ]
result = cubit.unite (inputs, False )
b = result[0]
print("Body ID:" , b.id())
print("Volume:" , b.volume()) # prints ~1282.74
  @n type of body_in:  std::vector< CubitInterface::Body,std::allocator< CubitInterface::Body > >, in
パラメータ
body_in リスト → Body 団結する物体。

keep_old_in の型:boolean, in, optional
keep_old_in オリジナルのボディ(デフォルト偽物)を保存するための真実です。

戻り値の型:std::vector< CubitInterface::Body,std::allocator< CubitInterface:: Body > >
戻り値
ベクトルの Body 新しくuniteされたbodyを表すオブジェクト(1つ Body).

◆ unload_ML()

def cubit.unload_ML (   args,
  kwargs 
)

機械学習データをメモリから削除します。

この機能は、キャッシュされたMLモデルをクリアし、指定されたタイプの関連するリソースをリリースします。



model_type の型:string, optional

パラメータ
model_type どのデータを削除するかを指定します:
  • "all": classificationモデルとregressionモデルの両方をアンロードします。
  • "classification": classificationモデルのみをアンロードします。
  • "regression": regressionモデルのみをアンロードします。
   .. code-block:: python
# Example usage in Python
cubit.unloadML("regression" )
print("Regression models unloaded." )

◆ unselect_entity()

def cubit.unselect_entity (   entity_type,
  entity_id 
)

現在選択されているエンティティを選択しないでください。

ハイライトを削除し、指定されたエンティティの状態を選択します。

.. code-block:: python
import cubit
# First select curve 221
cubit.cmd ("select curve 221" )
# Now unselect the same curve
cubit.unselect_entity ("curve" , 221)
 @n type of entity_type:  string
パラメータ
entity_type エンティティの種類(vertex、curve、surface、volume)

entity_id の型:int
entity_id 選択解除するエンティティのID。

◆ vertex()

def cubit.vertex (   id_in )

アイデンティティで「頂点」オブジェクトを回収します。

提供されたIDに合致する「頂点」のオブジェクトを返します。

   .. code-block:: python
import cubit
# Create a 10x10x10 brick (vertex IDs include corners).
cubit.cmd ("brick x 10" )
vertex = cubit.vertex (1)
print("Vertex ID:" , vertex.id())
  @n type of id_in:  int
パラメータ
id_in 取り戻すための頂点のID。

戻り値の型::py:class: Vertex
戻り値
Vertex 指定されたIDに合致するオブジェクト。

◆ volume()

def cubit.volume (   id_in )

自分のIDでボリュームを回収します。

ボリュームオブジェクトが提供されたIDに合致することを返します。

   .. code-block:: python
import cubit
# Create a 10x10x10 brick (volume ID 1).
cubit.cmd ("brick x 10" )
volume = cubit.volume (1)
print("Volume ID:" , volume.id())
  @n type of id_in:  int
パラメータ
id_in 取り戻すためのボリュームのID。

戻り値の型::py:class: Volume
戻り値
Volume 指定されたIDに合致するオブジェクト。

◆ volume_contains_tets()

def cubit.volume_contains_tets (   volume_id )

指定されたボリュームに四面体要素が含まれているかどうかを決定する。

.. code-block:: python

cubit.cmd ("brick x 10" ) # create brick (Volume ID = 1)
cubit.cmd ("vol 1 scheme tetmesh" )
cubit.cmd ("mesh vol 1" ) # mesh volume 1 with tets
print("Volume 1 contains tets:" , has_tets)
 @n type of volume_id:  int
パラメータ
volume_id チェックするためのボリュームのID

戻り値の型:boolean
戻り値
ボリュームが何らかの四面体要素を含んでいるときは真実です。

◆ was_last_cmd_undoable()

def cubit.was_last_cmd_undoable ( )

最後に実行されたコマンドが不適切かどうかを報告する。

最近のCubitのコマンドが undo をサポートしている場合、真実に戻ります。

.. code-block:: python
import cubit
cubit.cmd ("create brick x 5" )
print("Last command undoable?" , undoable)
 @n return type of :  boolean
戻り値
最後のコマンドが undo を支持する場合、偽りとは違う。

◆ write_to_journal()

def cubit.write_to_journal (   words )

Cubitのジャーナルと録音ストリームにカスタマイズされたエントリーを追加します。

テキストを「Cubit」のコマンドのように記録するよう強制します。 これにより、モデルが変更され、記録と記録が有効になった場合、アクティブ記録と記録ファイルへの入力が記録されます。

.. code-block:: python
import cubit
# Write an import command directly into the journal
cubit.write_to_journal ('import "part.sat"' )
 @n type of words:  string
パラメータ
words 雑誌に付属するテキストとストリームの録音。

変数文書

◆ BAR

BAR = _cubit3.BAR

◆ BAR2

BAR2 = _cubit3.BAR2

◆ BAR3

BAR3 = _cubit3.BAR3

◆ BEAM

BEAM = _cubit3.BEAM

◆ BEAM2

BEAM2 = _cubit3.BEAM2

◆ BEAM3

BEAM3 = _cubit3.BEAM3

◆ CI_BCENTITY_CC

CI_BCENTITY_CC = _cubit3.CI_BCENTITY_CC

◆ CI_BCENTITY_CC_SHELL_BOTTOM

CI_BCENTITY_CC_SHELL_BOTTOM = _cubit3.CI_BCENTITY_CC_SHELL_BOTTOM

◆ CI_BCENTITY_CC_SHELL_TOP

CI_BCENTITY_CC_SHELL_TOP = _cubit3.CI_BCENTITY_CC_SHELL_TOP

◆ CI_BCENTITY_FIRST

CI_BCENTITY_FIRST = _cubit3.CI_BCENTITY_FIRST

◆ CI_BCENTITY_LAST

CI_BCENTITY_LAST = _cubit3.CI_BCENTITY_LAST

◆ CI_BCENTITY_SHELL_AREA_BOTTOM

CI_BCENTITY_SHELL_AREA_BOTTOM = _cubit3.CI_BCENTITY_SHELL_AREA_BOTTOM

◆ CI_BCENTITY_SHELL_AREA_GRADIENT

CI_BCENTITY_SHELL_AREA_GRADIENT = _cubit3.CI_BCENTITY_SHELL_AREA_GRADIENT

◆ CI_BCENTITY_SHELL_AREA_MIDDLE

CI_BCENTITY_SHELL_AREA_MIDDLE = _cubit3.CI_BCENTITY_SHELL_AREA_MIDDLE

◆ CI_BCENTITY_SHELL_AREA_TOP

CI_BCENTITY_SHELL_AREA_TOP = _cubit3.CI_BCENTITY_SHELL_AREA_TOP

◆ CI_BCENTITY_SOLID_HEATFLUX

CI_BCENTITY_SOLID_HEATFLUX = _cubit3.CI_BCENTITY_SOLID_HEATFLUX

◆ CI_BCENTITY_SOLID_TEMP

CI_BCENTITY_SOLID_TEMP = _cubit3.CI_BCENTITY_SOLID_TEMP

◆ CI_BCENTITY_TEMP

CI_BCENTITY_TEMP = _cubit3.CI_BCENTITY_TEMP

◆ CI_BCENTITY_UNKNOWN

CI_BCENTITY_UNKNOWN = _cubit3.CI_BCENTITY_UNKNOWN

◆ CI_BCTYPE_ACCELERATION

CI_BCTYPE_ACCELERATION = _cubit3.CI_BCTYPE_ACCELERATION

◆ CI_BCTYPE_AXIS

CI_BCTYPE_AXIS = _cubit3.CI_BCTYPE_AXIS

◆ CI_BCTYPE_CONSTRAINT

CI_BCTYPE_CONSTRAINT = _cubit3.CI_BCTYPE_CONSTRAINT

◆ CI_BCTYPE_CONTACT_PAIR

CI_BCTYPE_CONTACT_PAIR = _cubit3.CI_BCTYPE_CONTACT_PAIR

◆ CI_BCTYPE_CONTACT_REGION

CI_BCTYPE_CONTACT_REGION = _cubit3.CI_BCTYPE_CONTACT_REGION

◆ CI_BCTYPE_CONVECTION

CI_BCTYPE_CONVECTION = _cubit3.CI_BCTYPE_CONVECTION

◆ CI_BCTYPE_DISPLACEMENT

CI_BCTYPE_DISPLACEMENT = _cubit3.CI_BCTYPE_DISPLACEMENT

◆ CI_BCTYPE_EXHAUSTFAN

CI_BCTYPE_EXHAUSTFAN = _cubit3.CI_BCTYPE_EXHAUSTFAN

◆ CI_BCTYPE_FAN

CI_BCTYPE_FAN = _cubit3.CI_BCTYPE_FAN

◆ CI_BCTYPE_FIRST

CI_BCTYPE_FIRST = _cubit3.CI_BCTYPE_FIRST

◆ CI_BCTYPE_FORCE

CI_BCTYPE_FORCE = _cubit3.CI_BCTYPE_FORCE

◆ CI_BCTYPE_GAP

CI_BCTYPE_GAP = _cubit3.CI_BCTYPE_GAP

◆ CI_BCTYPE_HEATFLUX

CI_BCTYPE_HEATFLUX = _cubit3.CI_BCTYPE_HEATFLUX

◆ CI_BCTYPE_INLETVENT

CI_BCTYPE_INLETVENT = _cubit3.CI_BCTYPE_INLETVENT

◆ CI_BCTYPE_INTAKEFAN

CI_BCTYPE_INTAKEFAN = _cubit3.CI_BCTYPE_INTAKEFAN

◆ CI_BCTYPE_INTERFACE

CI_BCTYPE_INTERFACE = _cubit3.CI_BCTYPE_INTERFACE

◆ CI_BCTYPE_INTERIOR

CI_BCTYPE_INTERIOR = _cubit3.CI_BCTYPE_INTERIOR

◆ CI_BCTYPE_LAST

CI_BCTYPE_LAST = _cubit3.CI_BCTYPE_LAST

◆ CI_BCTYPE_LUMPMASS

CI_BCTYPE_LUMPMASS = _cubit3.CI_BCTYPE_LUMPMASS

◆ CI_BCTYPE_MASSFLOWINLET

CI_BCTYPE_MASSFLOWINLET = _cubit3.CI_BCTYPE_MASSFLOWINLET

◆ CI_BCTYPE_MATERIAL

CI_BCTYPE_MATERIAL = _cubit3.CI_BCTYPE_MATERIAL

◆ CI_BCTYPE_MEDIA

CI_BCTYPE_MEDIA = _cubit3.CI_BCTYPE_MEDIA

◆ CI_BCTYPE_MPC

CI_BCTYPE_MPC = _cubit3.CI_BCTYPE_MPC

◆ CI_BCTYPE_OUTFLOW

CI_BCTYPE_OUTFLOW = _cubit3.CI_BCTYPE_OUTFLOW

◆ CI_BCTYPE_OUTLETVENT

CI_BCTYPE_OUTLETVENT = _cubit3.CI_BCTYPE_OUTLETVENT

◆ CI_BCTYPE_PERIODIC

CI_BCTYPE_PERIODIC = _cubit3.CI_BCTYPE_PERIODIC

◆ CI_BCTYPE_PERIODICSHADOW

CI_BCTYPE_PERIODICSHADOW = _cubit3.CI_BCTYPE_PERIODICSHADOW

◆ CI_BCTYPE_POROUSJUMP

CI_BCTYPE_POROUSJUMP = _cubit3.CI_BCTYPE_POROUSJUMP

◆ CI_BCTYPE_PRESSURE

CI_BCTYPE_PRESSURE = _cubit3.CI_BCTYPE_PRESSURE

◆ CI_BCTYPE_PRESSUREFARFIELD

CI_BCTYPE_PRESSUREFARFIELD = _cubit3.CI_BCTYPE_PRESSUREFARFIELD

◆ CI_BCTYPE_PRESSUREINLET

CI_BCTYPE_PRESSUREINLET = _cubit3.CI_BCTYPE_PRESSUREINLET

◆ CI_BCTYPE_PRESSUREOUTLET

CI_BCTYPE_PRESSUREOUTLET = _cubit3.CI_BCTYPE_PRESSUREOUTLET

◆ CI_BCTYPE_RADIATOR

CI_BCTYPE_RADIATOR = _cubit3.CI_BCTYPE_RADIATOR

◆ CI_BCTYPE_RIGIDBODY

CI_BCTYPE_RIGIDBODY = _cubit3.CI_BCTYPE_RIGIDBODY

◆ CI_BCTYPE_SPRING

CI_BCTYPE_SPRING = _cubit3.CI_BCTYPE_SPRING

◆ CI_BCTYPE_SUPERSONICINFLOW

CI_BCTYPE_SUPERSONICINFLOW = _cubit3.CI_BCTYPE_SUPERSONICINFLOW

◆ CI_BCTYPE_SUPERSONICOUTFLOW

CI_BCTYPE_SUPERSONICOUTFLOW = _cubit3.CI_BCTYPE_SUPERSONICOUTFLOW

◆ CI_BCTYPE_SYMMETRY

CI_BCTYPE_SYMMETRY = _cubit3.CI_BCTYPE_SYMMETRY

◆ CI_BCTYPE_TEMPERATURE

CI_BCTYPE_TEMPERATURE = _cubit3.CI_BCTYPE_TEMPERATURE

◆ CI_BCTYPE_UNKNOWN

CI_BCTYPE_UNKNOWN = _cubit3.CI_BCTYPE_UNKNOWN

◆ CI_BCTYPE_VELOCITY

CI_BCTYPE_VELOCITY = _cubit3.CI_BCTYPE_VELOCITY

◆ CI_BCTYPE_VELOCITYINLET

CI_BCTYPE_VELOCITYINLET = _cubit3.CI_BCTYPE_VELOCITYINLET

◆ CI_BCTYPE_WALL

CI_BCTYPE_WALL = _cubit3.CI_BCTYPE_WALL

◆ CI_CONDUCTIVITY

CI_CONDUCTIVITY = _cubit3.CI_CONDUCTIVITY

◆ CI_DENSITY

CI_DENSITY = _cubit3.CI_DENSITY

◆ CI_ERROR

CI_ERROR = cvar.CI_ERROR

◆ CI_MATERIAL_FIRST

CI_MATERIAL_FIRST = _cubit3.CI_MATERIAL_FIRST

◆ CI_MATERIAL_LAST

CI_MATERIAL_LAST = _cubit3.CI_MATERIAL_LAST

◆ CI_MATERIAL_UNKNOWNPROPERTY

CI_MATERIAL_UNKNOWNPROPERTY = _cubit3.CI_MATERIAL_UNKNOWNPROPERTY

◆ CI_MODULUS

CI_MODULUS = _cubit3.CI_MODULUS

◆ CI_POISSON

CI_POISSON = _cubit3.CI_POISSON

◆ CI_SHEAR_MODULUS

CI_SHEAR_MODULUS = _cubit3.CI_SHEAR_MODULUS

◆ CI_SPECIFIC_HEAT

CI_SPECIFIC_HEAT = _cubit3.CI_SPECIFIC_HEAT

◆ CI_THERMAL_EXPANSION

CI_THERMAL_EXPANSION = _cubit3.CI_THERMAL_EXPANSION

◆ CI_ULTIMATE_STRAIN

CI_ULTIMATE_STRAIN = _cubit3.CI_ULTIMATE_STRAIN

◆ CI_ULTIMATE_STRENGTH

CI_ULTIMATE_STRENGTH = _cubit3.CI_ULTIMATE_STRENGTH

◆ CI_YIELD_STRENGTH

CI_YIELD_STRENGTH = _cubit3.CI_YIELD_STRENGTH

◆ CUBIT_TRI

CUBIT_TRI = _cubit3.CUBIT_TRI

◆ CURVE

CURVE = _cubit3.CURVE

◆ クアラ

cvar = _cubit3.cvar

◆ HEX

HEX = _cubit3.HEX

◆ HEX20

HEX20 = _cubit3.HEX20

◆ HEX21

HEX21 = _cubit3.HEX21

◆ HEX26

HEX26 = _cubit3.HEX26

◆ HEX27

HEX27 = _cubit3.HEX27

◆ HEX8

HEX8 = _cubit3.HEX8

◆ HEX9

HEX9 = _cubit3.HEX9

◆ HEXSHELL

HEXSHELL = _cubit3.HEXSHELL

◆ INVALID_ELEMENT_TYPE

INVALID_ELEMENT_TYPE = _cubit3.INVALID_ELEMENT_TYPE

◆ PYRAMID

PYRAMID = _cubit3.PYRAMID

◆ PYRAMID13

PYRAMID13 = _cubit3.PYRAMID13

◆ PYRAMID18

PYRAMID18 = _cubit3.PYRAMID18

◆ PYRAMID5

PYRAMID5 = _cubit3.PYRAMID5

◆ PYRAMID8

PYRAMID8 = _cubit3.PYRAMID8

◆ QUAD

QUAD = _cubit3.QUAD

◆ QUAD4

QUAD4 = _cubit3.QUAD4

◆ QUAD5

QUAD5 = _cubit3.QUAD5

◆ QUAD8

QUAD8 = _cubit3.QUAD8

◆ QUAD9

QUAD9 = _cubit3.QUAD9

◆ SHARED_PTR_DISOWN

SHARED_PTR_DISOWN = _cubit3.SHARED_PTR_DISOWN

◆ SHEL

SHEL = _cubit3.SHEL

◆ SHELL4

SHELL4 = _cubit3.SHELL4

◆ SHELL8

SHELL8 = _cubit3.SHELL8

◆ SHELL9

SHELL9 = _cubit3.SHELL9

◆ SPHERE_EXO

SPHERE_EXO = _cubit3.SPHERE_EXO

◆ SPRING

SPRING = _cubit3.SPRING

◆ SUPERELEMENT_TOPOLOGY

SUPERELEMENT_TOPOLOGY = _cubit3.SUPERELEMENT_TOPOLOGY

◆ SURFACE

SURFACE = _cubit3.SURFACE

◆ TETRA

TETRA = _cubit3.TETRA

◆ TETRA10

TETRA10 = _cubit3.TETRA10

◆ TETRA14

TETRA14 = _cubit3.TETRA14

◆ TETRA15

TETRA15 = _cubit3.TETRA15

◆ TETRA4

TETRA4 = _cubit3.TETRA4

◆ TETRA8

TETRA8 = _cubit3.TETRA8

◆ TRI3

TRI3 = _cubit3.TRI3

◆ TRI4

TRI4 = _cubit3.TRI4

◆ TRI6

TRI6 = _cubit3.TRI6

◆ TRI7

TRI7 = _cubit3.TRI7

◆ TRISHELL

TRISHELL = _cubit3.TRISHELL

◆ TRISHELL3

TRISHELL3 = _cubit3.TRISHELL3

◆ TRISHELL4

TRISHELL4 = _cubit3.TRISHELL4

◆ TRISHELL6

TRISHELL6 = _cubit3.TRISHELL6

◆ TRISHELL7

TRISHELL7 = _cubit3.TRISHELL7

◆ TRUSS

TRUSS = _cubit3.TRUSS

◆ TRUSS2

TRUSS2 = _cubit3.TRUSS2

◆ TRUSS3

TRUSS3 = _cubit3.TRUSS3

◆ VERTEX

VERTEX = _cubit3.VERTEX

◆ VOLUME

VOLUME = _cubit3.VOLUME

◆ WEDGE

WEDGE = _cubit3.WEDGE

◆ WEDGE12

WEDGE12 = _cubit3.WEDGE12

◆ WEDGE15

WEDGE15 = _cubit3.WEDGE15

◆ WEDGE16

WEDGE16 = _cubit3.WEDGE16

◆ WEDGE20

WEDGE20 = _cubit3.WEDGE20

◆ WEDGE21

WEDGE21 = _cubit3.WEDGE21

◆ WEDGE6

WEDGE6 = _cubit3.WEDGE6