Jump to content

Debdatta Sen

Members
  • Content Count

    12
  • Joined

  • Last visited

About Debdatta Sen

  • Rank
    Beginner

Profile Information

  • Are you University user?
    No

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Using the attached script, I request the data type list present in the d3plot File (also attached:Bumper.7z), and I store the first element in a variable. I would like to comapre it with an input string. Apparently the dimensions are different: Does anyone have an idea what I am doing wrong? I am not sure what type is being returned by the command 'gettypename'. I presumed it should be a string, which I could compare with other strings. Best Regards, Deb Bumper.7z dataType.oml
  2. After consulting with a colleague, I have come across the solution. Unsetting both HW_ROOT and ALTAIR_HOME helps.
  3. I would like to use python subprocess module to invoke HV. The code I use is very simple. The code works if I use standalone python, but if I run it from within Compose, HW does not come up. In the Task Manager one can see, that the HW Process starts but also dies immediately. Here's the code that I use: The shell shows the commands used in the directly in python. I have also attached the Python file. Have I missed anything? hwCall.py
  4. I have saved the installation directory in a variable and I am trying to invoke HW from within Compose, as shown in the image below: But then I get an error message, where I see that the pkgIndex.tcl file is being searched for in the Compose Installation Directory: Any ideas as to how I can avoid this from happening? Thanks!!
  5. Hi all, Just like HM APIs such as hm_info, is there a way to find out which directory compose is installed in? I do not want to look up an environement variable, unless that is the only way. Does anyone have any tips for me? Thanks, Deb
  6. Thanks, for the tip! But I think it works for 1D lists again isn't it? I have a tuple again as soon as I have a single 2D element as in t = [('my', 'name'), 'is', 'mr', 'tuple']
  7. Thanks for the quick response!! Are there any plans to support them in the future?
  8. In the attached script, one can see that 1D lists such as list1=[1,2,3] can be imported in OML without a hassle. Whereas when I try to import a list2=[(1,1),(2,2),(3,3)], I receive an error message in OML saying that list2 does not exist. I use the command getpythonvar(). Am I missing something? I have attached a file that can be used to reproduce my error message. I am using Compose 2019.3 Thanks a bunch, Deb error_2DLists_not_readable.oml
  9. Hi all, I have a time domain curve which I would like to convert into frequency domain. By doing so I would like to obtain the magnitude and phase output from the curve. I need the Windowing function as well. Something like what fft hanning does in HyperGraph. Is there a similar function in Compose? The output I need should have both Magnitude and Phase components, something like this:
  10. Hi, Let's say I am in directory C:\Test This directory contains many different files including some H3D Files. I want to create a list containing the names of these files only. What is the best way to go about it? Using 'ls' or 'system' can be used with the wildcards, but returns a lot of unwanted information as a string. It is not very eays to filter this output. I am looking for a command similar to 'glob' in TCL. All I want is a list of files containing a specific extension to be returned.
  11. Hi all, I am looking for a way to get a list of all simulation steps present in an OP2 File. I would like to use this data to extract the frequencies and based on its value I would like to carry out certain actions. Here is the simulations list that I see when I open the OP2 file in HV: Does anyone have an idea how I gould get thes list in Compose? The sample file is attached. Thanks for your help in advance, Deb Eigenmodes.op2
  12. Hi, Is there a way to find using Compose in Linux- 1. How many CPUs are available on the current machine, and 2. How many CPUs are currently free? Thanks, Deb
×
×
  • Create New...