Jump to content

Search the Community

Showing results for tags 'scripting'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altair Support Forum
    • Welcome to Altair Support Forum
    • Installation and Licensing
    • Modeling & Visualisation
    • Solvers & Optimization
    • Multi Body Simulation
    • Conceptual design and Industrial design
    • Model-Based Development
    • Manufacturing Simulation
    • CAE Process Automation
  • Academic Partner Alliance Forum
    • APA - Composites
    • APA - CFD & Thermal
    • APA - Vehicle Dynamics
    • APA - Manufacturing
    • APA - Crash and Safety
    • APA - Noise, Vibration and Harshness
    • APA - System Level Design
    • APA - Structural and Fatigue
    • APA - Marine
    • APA - Optical Design
  • Japanユーザーフォーラム
    • ユーザーフォーラムへようこそ
    • Altair製品の意外な活用例
    • インストールとライセンス
    • モデリング(プリプロセッシング)
    • シミュレーション技術(ソルバー)
    • データ可視化(ポストプロセッシング)
    • モデルベース開発
    • コンセプト設計と工業デザイン
    • 製造シミュレーション
    • CAE プロセスの自動化
    • 学生向け無償版
    • エンタープライズソリューション

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Interests


Organization


Location

Found 50 results

  1. Hi, I was trying to script meshing of bodies with a common sub-string in their names. I can use the below utility. But I cant figure out, how to use the variable in solid meshing syntax? Simlab Utility - var SubString1=["Bolt*"]; var EntitiesName29358=[]; SimLabUtility.GetBodiesWithSubString(SurfaceBodyName, SubString1, EntitiesName29358); Solid Meshing Code - I am trying something like this, but this doesnt works. //SurfaceBodyName is a variable storing model name var SolidMesh=' <VolumeMesher UUID="83822e68-12bb-43b9-b2ac-77e0b9ea5149">\ <tag Value="-1"/>\ <Name Value="VolumeMesher1"/>\ <SupportEntities>\ <Entities>\ <Model>'+SurfaceBodyName+'</Model>\ <Body>'+EntitiesName29358+'</Body>\ </Entities>\ </SupportEntities>\ <MeshType Value="Tet10"/>\ <AverageElemSize Value="3.5"/>\ <MaxElemSize Value="Default" Checked="0"/>\ <InternalGrading Value="2"/>\ <MinQuality Value="0.07"/>\ <LinearQuality Value="2"/>\ <MaxQuality Value="1"/>\ <QuadMinQuality Value="0.001"/>\ <QuadQuality Value="0"/>\ <QuadMaxQuality Value="1"/>\ <CadBody Value="0"/>\ <AdvancedOptions>\ <MeshDensity Value="0"/>\ <CreateVol Value="1"/>\ <Assembly Value="0"/>\ <PreserveFaceMesh Value="2"/>\ <MeshAsSingleBody Value="1"/>\ <Retain2DSurfaceBodies Value="0"/>\ <PreserveSurfaceSkew Value="55" Checked="0"/>\ </AdvancedOptions>\ </VolumeMesher>'; Simlab.Execute(SolidMesh); How to use the variable in place of body names?
  2. For more information, see www.altair.com/mbd2019 and www.altair.com/mbd2019/compose. To download a free 1-year license of this software, go to https://basicportal.altair.com/downloads. Do you want to do technical calculations, scripting, data visualization or data processing (especially involving CAE or test data)? If yes, then whether you are involved in academia or industry or are just a hobbyist/maker looking for cool & useful software, this no-cost software could help you achieve your goals. The multi-language environment of Compose enables the combined use of scripts written with its open matrix language (OML) with scripts written in Tcl/Tk or Python. And OML is compatible and inter-operable with Octave and MATLAB®. Altair has also expanded its support of open standards by open-sourcing its open matrix language (OML). Interested users and contributors can download source code from the OpenMatrix website and actively participate in this burgeoning R&D community. Give Altair Compose™ and OML a try today!
  3. Hey guys, I want to calculate the mass of my model using a tcl-script. Is there a simple command to do this? (I haven't found one yet.) If this is not the case, do you know another way how to solve this problem? Kind regards Simon
  4. Hey guys, I got a question concerning the following model. I want to move all the elements, which are surrounding the holes, into a component. Do you know a command how to mark them? Thanks in advance, Simon
  5. Can some would suggest me script for read and write all the subcase names and their respective ids, for now to get all subcases names, I am using- hwi GetSessionHandle mySessionName mySessionName GetDataFileHandle myDataFile $op2File set subcase_list [myDataFile GetSubcaseList] puts "subcase_list $subcase_list" can some suggest script or code to find all Subcases ids with minimal changes in above.
  6. I need to create a macro, which would help me to display the name, material properties and dimensions of a component by clicking/selecting it, moreover if the components contains multiple parts it would help to select only those parts whose Properties tag i wish to display. Any help in this regard is very much appreciated.
  7. Hello everyone, I have to assign variable shell thickness to a structure. It is a single part and I have partitioned it into 7000 sections and I have to mesh and assign different thickness to each section. Can anyone help with scripting for element set creation? thanks in advance.
  8. hi, i have interest to learn TCL scripting on hyper mesh. i have downloaded several tcl documents to learn it. the commands and structures on hypermesh are totally differs from the document. how do i learn it easily. please help me. regards MEIYARASU19
  9. Hey guys, I'm trying to write a script which deletes elements of a model, that have a young's modulus under a certain value ("Grenzwert"). Running the following Code, this is working as it is supposed to for the first 5 iterations. Afterwards the number of elements deleted stays the same all the time. The problem is, that there are still elements with a youngs modulus lower than 100. Do you know what's the problem here? Some annotations which may help to understand the code: lStressValue_1 = list containing the young's modulus of every element delete_id = element id which should be deleted # Suchen aller Werte unter Grenzwert set delete_id "" set delete_index {} set Grenzwert 100 set y -1 set Element "" # y gibt den Index des Felded unter Grenzwert an wird zu einer Liste zusammengefügt foreach Element $lStressValue_1 { incr y if {[expr $Element < $Grenzwert]} { lappend delete_index "$y" } } # Die Element-Ids aus der Liste der lIDs mit den Elementen unter Grundwert herauslesen foreach Element_C $delete_index { append delete_id "[lindex $lID_1 $Element_C] " } *createmark elements 1 {*}$delete_id *deletemark elements 1 Kind regards, Simon
  10. Hey guys, is there a way to create a label in the utility menu? I only find command to create buttons etc., but no command for labels. Can you help me out somehow? Kind regards Simon
  11. Hi all, How to get nodes from free edges and drag it in particular direction using tcl? Regards, Sanket
  12. Hey guys, after I have finished my work on a model, I start a new session in HyperMesh and want to delete the .fem-File from the previous model. This is not working, and a message appears saying that the .fem-file is still open in HyperMesh. If the command "file delete" is used, an error is occurring which says "permission denied". Do you know how I can solve this problem and delete the .fem-File without closing HyperMesh totally? Kind regards Simon
  13. Hey guys, I'm trying to customize the output of a load step. Trying to run again the relevant parts of the command file, an error is occurring in this line. *startnotehistorystate {Updated string array} *setvalue loadsteps id=1 STATUS=2 4873={ } ROW=0 *endnotehistorystate {Updated string array} I'm pretty sure the empty brackets are the reason for the error, but I don't know how to get around them. Could you help me out with this problem? Kind regards Simon Attached you'll find my code. The relevant part starts after line 254. SKO_2.tcl
  14. Hey guys, I want to create several materials, properties and components automatically. The desired IDs of all the materials, properties and components are saved in an external file and then written into a variable. Each of these values should create an own material, an own property and an own component. For creating the first material, everything works fine. But when the second material should be created, an error is occurring. Do you have an idea how this problem can be fixed? Kind regards Simon Attached, you can find the file with the IDs (these are the values in column 1 saved into the variable "field1") and the .tcl-script I'm talking about. SKO_3.tcl SKO.strs
  15. Hey guys, I want to export the elementstresses calculated in HyperMesh using a .tcl-file. I found a way using a results curve but I can only manage to export nodal stresses. Do you know a way how to export also the element stresses? Kind regards Simon
  16. Hey guys, I'm trying to implement an algorithm for the Soft Kill Option in HyperMesh. An important step is to vary the Young's Modulus of each element depending on the element stress. As a consequence of the different stresses of every element, do I need to create a new material and a new property for every element? Or do you have another way to solve this problem? Kind regards and thanks in advance Simon
  17. Hey guys, I want to catch a mistake concerning the mesh. when this mistake is occuring, the user should be able to fix the mesh. During a while loop i have sometimes an error in the command *plotnodelist, because it needs the inputs "results of a analysis" and "nodes id". Sometimes the analysis fails and *plotnodelist leads to a break down of Hyperworks because of the missing results. Here is the relevant part of my code: while {} {...... if { [catch {*plotnodelist 1}] } { puts "analysis failed " break } else { *plotnodelist 1 } ....} Kind regards Simon
  18. Hey guys, is there a .tcl-command which shows the maximal node stress of a structure after a simulation? Kind regards and thanks in advance Simon
  19. Hi all, I have a script that isolates any elements from an initial batch mesh that have problems associated with them. It places them into a set but leaves them as the default yellow colour. It becomes a pain to 'isolate only' and rebuild the mesh up around them. So I have been changing the colour of these elements by hand. Does anyone know how I could write into my script a line that changes the colour for me? Thanks,
  20. Hi all, I'd like to create a script which selects 2d elements of less than 5mm and then displays the element numbers on screen. Any ideas anyone? Much appreciated Andy
  21. Hey guys, I'm writing a script, where I can set a value (e.g. for the Young's Modulus) for a material property. My problem is that I would like to have a default value in the window, like 210000 MPa, which I can take and proceed or change it if it doesn't suit my material. Is it somehow possible to set such a default value? Kind regards and thanks in advance Simon Attached you can find the part of my script and a screenshot of the window I'm talking about: *startnotehistorystate {Modified E of material} set youngs_modulus [hm_getfloat "Youngs Modulus (Steel)=" "Enter Youngs Modulus:"] *setvalue mats id=1 STATUS=1 1= $youngs_modulus *endnotehistorystate {Modified E of material}
  22. Hey guys, as the title already says I'm looking for a macro which saves the nodes of a whole component into a nodelist automatically. In the end the command *plotnodelist is used and needs a nodelist to execute the program. Do you have any ideas how this could work? Kind regards and thanks in advance, Simon
  23. Dear all, I am working right now on a topology optimization based on a tcl script. It is important to me to identify certain nodes in order for my load cases. Lets say I have in my script something like *createnode 0 0 0 0 0 0 *createnode 0 1 0 0 0 0 and then a section where I want to apply a load to it. I did it like this: *createmark nodes 1 1(that 1 is the node id) *loadcreateonentity_curve nodes 1 1 1 0 0 150 0 0 150 0 0 0 0 0 The problem I have is, that the block with the createnode part can vary so the Ids are not always the same. I did not find a way to include a specific ID in the *createmark line in order to work with it later.... it does more or less: id: 1,2,3,4 as you progress creating your nodes. I thought on selecting my nodes differently, maybe with *createmark nodes 1 "on plane" but I did not have sucess there either. How would you solve this problem? I must work with specific nodes I create but te nodes can vary so either I have to renumber it in a way I know which id it has, maybe based on coordinates or assign specific node Ids. Thanks in advance for discussing this topic with me, Best regards, Merula
  24. Hi all, Am trying to find a line of code which will select a component / assembly / set etc, when the name contains a certain string... for instance the assembly name may read "apples-001001a" but I want a script to select that assembly if the name contains "apples" as the number could change in the future. Any ideas? Cheers Andy
  25. Hi all, I'd like to create a script which selects 2d elements of less than 5mm and then displays the element numbers on screen. Any ideas anyone? Much appreciated Andy
×
×
  • Create New...