-
[OptiStruct] 다수의 해석 파일을 batch로 순차 실행시키는 스크립트
해당 스크립트는 사용자가 지정한 경로 및 파일 확장자에 대해 확인하여 OptiStruct를 배치 모드로 실행하는 스크립트입니다. 다수의 OptiStruct input 파일을 순차적으로 실행시키고자 할 때 사용할 수 있습니다. 사용 방법: py 파일을 텍스트 편집기로 열어 아래의 내용을 수정하고 저장 osPath : OptiStruct가 설치된 경로 지정 path : 해석 인풋 파일이 위치한 최상위 폴더 경로 지정 ncpu : 해석에 사용할 CPU 수량 입력 cmd 창 열기 py 파일 위치로 이동 python *.py 명령어를 입력하여 py 파일 실행 참고 사항:…
-
Python extension for Hyperworks 2022.3 .. How to obtain / install?
How do install the python extension for Hyperworks 2022.3? Hyperworks 2022.3 is already installed and working on my person computer. I would like to automate task in Hyperworks with python.
-
How to suppress a popup after autocontact?
Hi all, what can I do to suppress or skip the popup window after an Autocontact, so that the Python code can run automatically? (I have to click on either one of the button, otherwise HyperMesh wouldn't continue) When using the Python API Recording tool, the following tip was given: collection = hm.Collection(model,…
-
[Hvtrans] 다수의 해석 결과 파일을 h3d 파일로 변환하는 python 스크립트
PhysicsAI를 사용하기 위해선 H3D 확장자의 해석 결과 파일이 필요합니다. Hvtrans를 사용하면 지원되는 해석 결과 에 한해 H3D 파일로 변환할 수 있습니다. 해당 스크립트는 사용자가 지정한 경로 및 파일 확장자에 대해 확인하여 Hvtrans를 배치 모드로 실행하는 스크립트입니다. 한번에 많은 양의 해석 결과 파일을 H3D 파일로 변환하고자 할 때 사용할 수 있습니다. 사용 방법: py 파일을 텍스트 편집기로 열어 아래의 내용을 수정하고 저장 hvtransPath : hvtrans가 설치된 경로 지정 path : 해석 결과 파일이 위치한 최상위 폴더 경로 지정…
-
Automatic export text file about Model Information
Overview: The script automatically extracts model information (e.g., material, mesh type, mesh count). If the model is not suitable for analysis, it will notify you of any missing or incomplete data. This allows you to verify both the model details and any potential errors. You can also use this simplified information when…
-
How to create fastener vectors without geometry.
Hi everyone! This should be a simple question: how can I create fastener vectors without geometry? My component is a curved panel with holes for fasteners. I’ve already inserted RBE2 elements with a central node at each hole. Now I want to create a line/vector/coordinate system normal to the surface at each hole. I found…
-
Is it possible to automate a screencapture of simsolid results?
Description: I'd like to automate modal analysis using Simsolid and capture images. I usually do this via optistruct and hyperview. Is it possible to achieve this with Simsolid? I know I can run modal analysis in batch mode via Inspire (python) or Simsolid (javascript), however I don't think there is a screen capture or…
-
TCL Script to Publish to Powerpoint
Is there a way to write a TCL script that publishes all hyperworks windows to a powerpoint template? Thank you!
-
Clone multiple components by retaining the props and mats
this macro helps to create a new cloned entity with its details of selected component by user input elements.
-
System creation Macro for hole offset
this macro creates the system by user defined hole nodes automatically
-
Get System id using TCL
Description: i am trying to get the system id assigned to an CBUSH element using hm_getentityvalue command like the following, set prop_id [hm_getentityvalue elems $elem_id "propertyid" 0 -byid]. please help me with this Product/Topic Name : Hypermesh, TCL, script
-
Custom Guidebar - How to request a nodelist from user
Description: In our own extension I built my own guide bar to request a node list. Is there a documentation for the definition of the guide bar inside a context xml? How must this be changed to get/request a nodelist from user? In my example I tried to use "nodelist" but the gui shows a pure node selector. <root> <context…
-
Special characters in batchscripts for SimSolid
Hi! I'm trying to create batch scripts for SimSolid. Many of our parts have special characters and language-specific characters (å ä ö). The issue becomes obvious when trying to apply materials, for instance in this case: study.applyMaterial({material: 'Steel', partNameMask: 'Disc Ø97:1'}); The part name just becomes…
-
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…
-
Antenna Arrays & Beam Steering in Altair Feko
The creation of antenna arrays in Feko is simple. In addition to the obvious method of manual "Copy & Translate" (where you have to create the ports and suggestions again or create a script using "macro recording"), there is the more elegant method using an Application Macro in CADFEKO: The required application macro has…
-
Hyperview entity selection using TCL
Description: i need to select few elements in hyperview using TCL. can we do that. hypermesh tcl is not working in hyperview. could anyone help me? Product/Topic Name : Hyperview
-
How to get element IDs using Python recording, and how to select top surface elements based on heigh
'd like to ask for your guidance, @Michael Herve. I'm currently using the recording feature in HyperMesh and noticed that the recorded Python script does not show the element IDs, specifically at the part I've circled in red in the attached image. The generated command looks like this: collection = hm.Collection(model,…
-
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…
-
Modify solid element orientation in HyperMesh
Overview: this script offers some capabilities to change solid (hexa) element orientation in HyperMesh Prerequisite: Usage/Installation Instructions: Run the script. A gui opens in HyperMesh, which allows you to review and change hexa orientation Below is a description of the different options: Show systems Display element…
-
Getting Started with EDEMpy: Advanced Post-Processing of EDEM Simulations
Introduction EDEMpy is a Python library for accessing EDEM simulation data that takes advantage of EDEM's HDF5 (.h5) file structure. Using the library, it is easy to extract specific data from a simulation deck and process that data in a customizable and reusable way. After running an EDEM simulation, users have to analyze…
-
Create Set in Hyperview with TCL (or HWC)
Hello, I would like to create sets of elements using a TCL command. My current problem is that I want to create the sets using the following method: Plot Composite Stresses, Normal X Stress. Create an empty element set (N°1). Add elements: "Visibility filter: All", "By contour", "No Result", then Add. Isolate this set.…
-
Default settings for Member Mesh
Hello, I have a more or less simple question. Is there a possibility to define the default settings for the Memeber Mesh module? Maybe by using the hm_custom.tcl or a custom extension? Regards Stefan
-
How can I retrieve the element ID as shown in the entity editor via *createmark
Hello, I have a model where the same element ID is used for structural elements (Cquad) and cweld elements. I want to retrieve the element IDs of all cwelds in the model in tcl, so I used *createmark elem 2 "by config type" 0 mass CWELD But now I retrieve other IDs than the ones visible in the entity editor for the cwelds.…
-
Python API - Setting and deleting attributes
Hello all, Does anybody know if it is possible to set and/or delete attributes in Python API? In short, I wanted to assign a node to a beam element and for that I have my collector "element" and I wrote: element.directionnode.__setattr__("id",node) This only works if there is a prior node as reference for the orientation…
-
change feature angle for the function *appendmark
Hello. I have created a TCL script where I split shell elements into different components. The script workflow is as follows: I specify a point and determine the ID of the node closest to the point using hm_getclosestnode. I find the elements connected to the node. Using the function *appendmark elems 1 "by face", I extend…