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

Found 51 results

  1. Hello All, I want to select BeamSections in a particular beamsectioncollector using tcl script. How can i select it? I tried manually,. While doing it manually there is no option to Select beam sections collectorwise. Please suggest some commands to do the required task. Regards, Sanket Sunil Patil
  2. 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?
  3. 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!
  4. 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
  5. 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
  6. 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.
  7. 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.
  8. 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,
  9. 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
  10. 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}
  11. 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
  12. 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
  13. 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
  14. Hi all, How to get nodes from free edges and drag it in particular direction using tcl? Regards, Sanket
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. Hi, I run a script in simlab (Project-->Autoplay-->Script) after importing the parasoild into it. But as the script meshes the bodies, cmd window pop ups for each activity (like meshing). Can i run this script in background using batch and avoid such pop ups? If yes, Please guide !!!
  21. 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
  22. 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
  23. Hey guys, I created a .tcl-script which opens a window where I can put in a reference temperature. After the value is entered, I would like the window to be closed automatically and hence to exit the program. I can't find any commands (like an exit-command) that work the way I want them to. Can you help me out on this topic? Kind regards, Simon Attached you can find the script: convert.tcl
  24. Hello all, I'm working on a script to duplicate elements from a reference component containing a solid to a new component with the same exact solid, but in another position and orientation. The translation part was easy as the hm_getcentroid function provides the solid centroid position, so I can use the command *translatemark to translate the desired mesh to the correct position. But to match the orientation, it has been a task more difficult that I was expecting. My approach has been to extract the moment of inertia of the reference solid and the target solid using hm_getmoiofsolid. Once I get these values, I compute the principal moment of inertia for each solid, so I have a comparable reference to use. Then I calculate the Euler parameters (or Quaternions) to obtain the rotation angles that I can use to rotate the elements from the reference solid to match the target solid orientation. The problem I'm facing is that it seems that the inertia calculation performed by hm_getmoiofsolid seems not to be consistent, in a sense that even extracting the principal moments of inertia from them, these principal directions do not coincide with the solid orientation. What could be done in this case? Thanks in advance, Jefferson Vieira
  25. Hey guys, I want to create a .tcl-script, that opens an input mask in HyperMesh where the user can select if he wants to mark elements or nodes (e.g. for force or pressure creation). So by clicking on Nodes he should be able to mark the relevant nodes, by clicking on Elements he should be able to mark the relevant elements. Could you help me out with that problem? Kind regards Simon
×
×
  • Create New...