Jump to content

Mr. Tanzil Tjhin

Members
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by Mr. Tanzil Tjhin


  1. Hi Karsten and Ben,

     

    I'm currently working with evacuation simulation tools called FDS+Evac. Issue is the input geometry and the informations that control the external software are in one single file. Moreover it doesn't support any export geometry file such as stl, dxf, etc. In short, I don't create nor export any geometry from caeses/ffw. The external software read and generate the geometry (rectangle) independently. This is the reason why I dont use software connector.

     

    The input file is as follow:

     

    &HEAD CHID='DoorFlowExample', TITLE='door flow test, 2.0' /

      door width 2.00 m, (dw=0.2m)

     

    &MESH IJK=150,150,1, XB=0.0,15.0, 0.0,15.0, 1.45,1.55, EVACUATION=.TRUE., 

          EVAC_HUMANS=.TRUE., EVAC_Z_OFFSET=1.5, ID= 'FF1stFloor' /

      

    &TIME T_END= 200 , DT=0.1 /

    .

    .

    .

     geometry:

    &OBST XB= 0.0, 15.0,  0.0, 0.1, 0.0,2.0,  /

    &OBST XB= 0.0, 0.1, 0.0,10.0, 0.0,2.0,    /

    &OBST XB= 14.9, 15.0, 0.0,10.0, 0.0,2.0,  /

    &OBST XB= 4.9, 5.0, 10.0,15.0, 0.0,2.0,   /

    &OBST XB= 10.0, 10.1, 10.0,15.0, 0.0,2.0, /

    &OBST XB= 0.0, 15.0, 10.0,10.1, 0.0,2.0,  /

    &HOLE XB= 6.5 , 8.5, 10.0,10.1, 0.0,2.0,  /

     

    so, my first idea is to replace some of this numbers by variable values. I guess it would work with sobol, which give me a random values and then I save it for every design. Is it possible this way?

     

    The code written by Karsten have been on my mind. It doesn't work as I want. It's only save the same or last variable values for every variant/design (in this case 20 times). Any advice what else I can try?

     

    Cheers,

    Tanzil


  2. Hi guys,

     

    I want to generate an external file which consists changable variable(p1,p2). So I use sobol to produce these random values. The roundup is as follow: create external file output from framework, run the external program and throw the results back on framework to be analysed. My problem is how do I save the produced values for every index (variant) and not only the last step after sobol? it seems that I miss a bunch of required objects/attributes. Any idea?

     

    Regards,

    Tanzil

     

    simple example:

     

    unsigned n(20)

    designvariable p1(5)

    designvariable p2(10)

     

    de_sobol Sobol()

    Sobol.setNumberOfVariants(n)

    Sobol.setDesignVariables([[p1, 3, 7, true], [p2, 8, 12, true]])

      

    Sobol.run()

     

    // Here: temporary saving ???

     

    loop(n)

     

    string workingDir(getDesignDir() + "/" + this.getName() + "/" + $$i + "/")

    mkpath(workingDir)

    FFile out(workingDir + $$i + ".txt")

    out.openWrite()

    // Here: variable values for every iteration

    out.write()

    out.close()

     

    endloop

×
×
  • Create New...