Is it possible to perform a DOE by varying a "string" type variable?

Jorge_ceballos22
Jorge_ceballos22 Altair Community Member
edited August 22 in Community Q&A

Hello experts,
I’m trying to perform a design of experiments (DOE) where I need to change a "string" type variable, as shown in the following image:

image

However, when I attempt to run the DOE, all simulations fail. Unfortunately, I didn't manage to capture a screenshot of the error.
I need to modify these "string" type variables to run a DOE with around 120 simulations and approximately 4 different changes that need to be made. Is it possible to do this in DOE by varying a "string" type variable? Any suggestions on how to solve this issue?

Tagged:

Answers

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 14

    Hello Jorge,

    Could you please check the "Enable SimLab Parametric" toggle is ON in File > Preferences > Applications > Options?

    image

    If this toggle is ON, these parameters will be visible and it is used for different purpose. These parameters cannot be used for DOE.

    String parameters can be used for DOE. Could you please share the use case? Will check and let you know.

    Thanks & Regards,

    Santhoshkumar

  • Jorge_ceballos22
    Jorge_ceballos22 Altair Community Member
    edited August 15

    Hello Santhoshkumar,

    I am performing a steady-state CFD simulation coupled with solar radiation. I have attached an image of the current simulation.

    image

    My goal is to run a DOE (Design of Experiments) using this simulation, where I can, for example, change the orientation of the solid. Currently, the orientation is set with the north along the Y-axis, but I would like to change it to the X-axis to see the impact on solar radiation on the central panels. Additionally, I want to modify parameters such as the day and time, similar to what I have done in the attached image.

    image

    While the simulation concluded without errors, it did not apply the changes I requested. These adjustments are made through the solar radiation model configured via the AcuSolve console.

    Is it possible to apply these changes correctly and automate this process within a DOE?

    Thank you for your assistance.

    Best regards,
    Jorge

  • Santhoshkumar
    Santhoshkumar
    Altair Employee
    edited August 20

    Hello Santhoshkumar,

    I am performing a steady-state CFD simulation coupled with solar radiation. I have attached an image of the current simulation.

    image

    My goal is to run a DOE (Design of Experiments) using this simulation, where I can, for example, change the orientation of the solid. Currently, the orientation is set with the north along the Y-axis, but I would like to change it to the X-axis to see the impact on solar radiation on the central panels. Additionally, I want to modify parameters such as the day and time, similar to what I have done in the attached image.

    image

    While the simulation concluded without errors, it did not apply the changes I requested. These adjustments are made through the solar radiation model configured via the AcuSolve console.

    Is it possible to apply these changes correctly and automate this process within a DOE?

    Thank you for your assistance.

    Best regards,
    Jorge

    Hello Jorge,

    Are you running the DOE through "Using script" or "Using solution" option?

    If you are running DOE through "Using script" option, kindly share the script and related files.

    If you are running DOE through "Using solution" option, kindly share the SimLab database (*.slb).

    We will check and get back you.

    Thanks & Regards,

    Santhoshkumar

  • Jorge_ceballos22
    Jorge_ceballos22 Altair Community Member
    edited August 22

    Hello Santhoshkumar,

    I am using a script. I do it through Automation > Scripting > Record. My goal is for the DOE in Solutions to run the design of experiments without issues. I am sharing my scripts along with the solar radiation files I have generated to temporarily handle the many simulations I have, as well as the Inspire file.

    I would like to point out the following:

    1. Originally, in the script, the file links are set up with relative paths, as shown in the image. I had to switch to absolute paths to avoid the system asking me to select the file every time it runs.image

    2. I have created two types of scripts: one for performing the DOE for the meshing and another for manually executing the DOE for the simulation. I did it this way because I am only changing the solar radiation model in my simulations and keeping the same mesh to ensure that the subsequent analysis of results is performed under the same conditions. If I did the entire DOE in SimLab, I could be using the same conditions, but the mesh would differ in each simulation since the script would generate a new mesh each time. Is this approach correct to maintain the homogeneity of the results, or should I consider it differently?
    3. In the script-mesh folder, you will notice that the mesh size value I used differs from the value shown in the image. This is because the value in the image is a variable that I need to change in the Inspire solid, called "spacing_Y."

    image

    I am also attaching an image showing some of the simulations I need to perform, where you can see that I have 8 simulations per mesh, and I need to do 5 meshes in total (only two meshes are shown in the image).

    Thanks again for your assistance.

    Best regards,
    Jorge