-
I want to use python API to read out strain data
https://us.v-cdn.net/6038102/uploads/Z6XGNB42JBO0/strain.py https://us.v-cdn.net/6038102/uploads/TBGAC7DPKN7N/strain-gauges.csv I have a model with strains. I am interested in the strains in certain elements, but I don't want to manually check every element becuase I have to do quite some simulations. The script is suposed…
-
PSIMの自動化:パワーエレクトロニクスシミュレーションを自動化する様々なアプローチ
Altairのパワーエレクトロニクス専用ツール「PSIM」を使ったシミュレーション自動化の4つの主要手法をご紹介します。本セッションでは、スクリプトを使った方法と使わない方法の両方について、実践的な知見を得ることができます。これにより、シミュレーションのワークフローや意思決定のスピードを大幅に向上させることが可能です。 スクリプトを使った3つの方法: C言語 PSIMにおける従来型の自動化手法。レガシーな環境でも活用可能 Python カスタム処理に最適で、広く普及している柔軟なスクリプト言語 Altair Compose(OML) 数値計算やデータ解析に適した、マトリクスベースのスクリプト言語 スクリプト不要の1つの方法: Altair…
-
Advanced Query with Multiple Query Rules in TCL
Hello everyone, I am working on a TCL script using the Advanced Query tool to retrieve the maximum and minimum values of a plotted contour in HyperView. I am using the ExtremeRule to obtain the TopN and BottomN values. However, it seems to me that the SetQueryLogic function only lets the Advanced Query use one rule at a…
-
TCL script to output CSV files containing queries from multiple result files
https://us.v-cdn.net/6038102/uploads/IN4IWS2EJ2UV/hyperview-qurey-with-node-formultih3d.tcl This is a TCL script for executing HyperView queries. Specifically, it uses a foreach loop to output the results from multiple h3d models. 1. Read the h3d file in the current working directory. If a node list already exists, simply…
-
Suggestion for reusing existing TCL/Tk scripts and migration to Python environment
Description: Are these statements correct? Virtually all features available in TCL/TK APIs are available in Python APIs. New features development has started happening more in Python APIs than in TCL/TK since the last two releases and will continue to happen so in future. Anyone using Python APIs will be future proof in…
-
Extract the Center of Gravity (CoG) and Mass Using Tcl Without Running the HyperMesh GUI
This script allows you to extract the cog and mass values of components in a FEM file without running the HyperMesh GUI. 1. Modify the fem file path in test_for_batch https://us.v-cdn.net/6038102/uploads/A3BA032YUI7D/test-for-batch.tcl .tcl file 2. Run the batch.exe file in the cmd window. "C:\Program…
-
How to convert the recorded steps into a usable python script in hyper-mesh 2025
Hi, I'm new to Python scripting and currently exploring the recording feature in HyperMesh 2025 to capture the steps I’d like to automate. I’m wondering how I can convert these recorded steps into a usable Python script.
-
problem with importing hm.entities in 2024.1
cannot import hm.entities in hypermesh 2024.1
-
Problem with hm.entites
Cannot import hm.entites
-
How to prevent RBE2-only fastener realization when only one panel is present in nut CAD location?
I am using the Fastener tool for creating the FE representation of bolts (RBE2 for head, BAR2 for body with "bolt (washer 1)" connector control). While creating fasteners using solids (in my case, nuts) as identifiers for FE creation on an already existing 2D mesh, connectors are realized and RBE2 elements are formed even…
-
Move the part by selecting the desired vector direction. (Consider shell thickness)
Overview: You can move the entity by selecting the desired plane direction (the default is the normal direction of the selected entity). The movement will take into account the thickness of the shell. Release Version: 2025.1 https://us.v-cdn.net/6038102/uploads/N4DIAN202MX2/translation-bynormalvector.py
-
Hypermesh Python API: Getting elements by config
Hi, I'm wondering what the best way is to collect elements by type in the python API. I found how to collect all elements but I only want shells really which I can then feed into the next part of the script (creating a display model from a set of shells is the ultimate goal). Looking at the examples, it seems to suggest I…
-
HyperMesh Python Recording 기능 사용 방법 (2025.1 ver 기준)
https://us.v-cdn.net/6038102/uploads/TXBRHM9DDYYI/py-test.hm https://us.v-cdn.net/6038102/uploads/G7GEK9EJIBXY/py-test.py HyperMesh 2025 버전부터 사용 가능한 Python Recording 기능에 대해 안내드리겠습니다. 아래 글은 2025.1 버전 기준으로 작성된 점 참고바랍니다. Recording 기능을 사용하기 위해서는 기능 활성화를 해주셔야 합니다. → 상단 메뉴 View > Ribbons > Developer 활성화 > Recording 클릭 (Python 창을…
-
Automated scripts for consecutive analysis cases in SimLab
Overview: This is a script that can be run at once when there are multiple solutions that need to be interpreted. How To : Step 1) Check the analysis list you set in SimLab GUI. (ex. Steady, Steady_2_inlet++) Step 2) Define the analysis case you want to run. Step 3) Enter the path where you want to save the .slb file. Step…
-
Compose IDE for HyperWorks Python
Starting with HyperWorks 2025.1, users can create, edit, and debug HW python scripts using the Altair Compose IDE. How to ? From within the HyperWorks > Developer ribbon, you have a debugger Icon that launches Compose in 2 modes: with no file loaded, where one can start to write scripts and execute them from scratch. From…
-
How to Create a Part in Hypermesh using python api
How to I create a part in Hypermesh Using python API. If i dont give UID, I dont want to give a UID
-
HyperView/Graph 의 HWC console을 통한 Log/Copy to Tcl/Python 기능 활용 방법
WV console을 활용하여 Tcl/Python 언어 확인 방법 및 기록이 가능합니다. 사용 방법은 다음과 같습니다. 1. HWC console 창을 활성화 2. 기능 실행 후 기록 되는 commnad를 이용하여 HWC 언어로 바로 사용하거나, Copy to python/tcl을 클릭하여 python/tcl 언어로 작업하실 수 있습니다. HyperMesh 에서 command.tcl 파일에 api가 기록되는 것처럼 사용하시기 위해서는 Log to HWC file 또는 Log to Tcl/Python file 을 클릭하여 진행하실 수 있습니다. 1. 아래와 같이 설정 2.…
-
Qurey csv file export tcl script.
This is the query csv file export tcl script. *hyperview_qurey.tcl When you execute the tcl file, a csv file is created in the pwd path. (You need to select the model file and result file in the GUI). 1. you can specify the file in advance through variableization. The first file is the model file, the second file is the…
-
How to take input from user in python api
How to i take input from the user using python api in Hypermesh. eg. while running the script a pop up window appears to select the required components or parts.
-
Use Batchmesh with python api in Hypermesh
While using Batchmesh in python, it shows a error of 'Input has inconsistent entity type'. Providing it the proper format parameters still shows the error.
-
How to define local coordinate system and assign that system to node using python in hypermesh 2025?
I have written code to create system in the model. But the system is created randomly in the space. I want to define system according to user defined specific nodes (origin node, xaxis node, plane node). And also how to know what are the methods available for an object and what are the default parameters available for a…
-
Need help in Automation of Roller Bearing Creation
Overview: Automation of Roller Bearing Creation Prerequisite: The automation should scale with different bearing sizes and roller counts Usage/Installation Instructions: HyperMesh Optistruct Python automation Post-Requisite: A fully automated script for creating all RBE3 and RBE2/BUSH elements for the rollers Release…
-
Using External Parameter Files in PSIM
I am trying to automate my runs using Python and with the PsimCmd.exe. I have created the parameter files for my run and have checked that the generated file was working when loaded in the internal parameter file of the schematic. However, the thing is when I run it using python (with PsimCmd.exe) it seems that the…
-
Export inputdeck with assembly structure (OptiStruct, Nastran)
Overview: You can export .bdf and .fem files from Hypermesh in tcl. It exports the assemblies contained in one assembly as separate input files. Step 1. Import input file containing assembly structure Step 2. Load the script Step 3. Write the name of the assembly as seen in the browser in the script GUI. (This should be…
-
How to check the load value applied to an element
If a single Load Collector has loads of the same type at different locations, you can calculate the force and location for each element and return the calculated for each element. Step 1. Open the attached script file from File > Run > tcl/tk script and run it. Step 2. Save the data value as result.csv file in the document…