Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Scheme file causing fluent crash on cluster

    • vedama
      Subscriber

      Hello, I'm trying to run a simulation on a PBS cluster using a Scheme file but it seems to be crashing for some reason. Using the same exact scheme commands, when I run on my local Windows PC, it works fine though, so I'm a bit puzzled.

      Here is my command to open fluent on the cluster with the scheme file:

      fluent 3ddp -pinfiniband -g -driver null -ssh -t$PBS_NP -cnf=$PBS_NODEFILE -i scheme_journal_test.scm > op.out

      This is the scheme line where the error occurs:

       (define ncells (string->number(pick-robust "/mesh/mesh-info 0 q q" 33)))

      This is the error message from the .out file:

      /mesh/mesh-info 0

      ===============Message from the Cortex Process================================

      Compute processes interrupted. Processing can be resumed.

      ==============================================================================

      q q

      Warning: An error or interrupt occurred while reading the journal file.

      Some commands may not have been completed.

      > Halting due to end of file on input.

      Like I said, the scheme file works perfectly fine on my Windows PC but it fails on my cluster so I'm not sure what is wrong. I would appreciate some help, please.

    • Amine Ben Hadj Ali
      Ansys Employee
      Start Fluent without having that line in the journal. In the interactive session: can you check that scheme line?
    • Amine Ben Hadj Ali
      Ansys Employee
      What do you want to do? Get the number of cells?
    • Amine Ben Hadj Ali
      Ansys Employee
      I have better idea using Fluent expressions and volume Integrals. In next version nothing will be required to get the number of cells.
    • vedama
      Subscriber
      I get this, which is weird because it's the same grid/case file that I'm using in my local PC

      > (define ncells (string->number(pick-robust "/mesh/mesh-info 0 q q" 33)))
      Error at Node 0: Print_Domain: invalid grid
      Error at host: Print_Domain: invalid grid
      /mesh/mesh-info 0
      ===============Message from the Cortex Process================================
      Compute processes interrupted. Processing can be resumed.
      ==============================================================================
      Error: Print_Domain: invalid grid
      Error Object: #f
      Error: Error encountered in (pick ...)
      Error Object: "/mesh/mesh-info 0 q q"
      q q
    • vedama
      Subscriber
      Yes, I'm looking to automate a scheme script for which I need the grid size
    • vedama
      Subscriber
      The Scheme commands work when I type them out interactively on the cluster but it produces the error when I run it as a journal script from the bash line using -i
      Is there another way to call the Scheme (.scm) script? Is it different from -i which is used for journal files?
    • Amine Ben Hadj Ali
      Ansys Employee
      The journal file should contain all steps from reading case or reading case and data or reading mesh till the part where you want to execute what you want to do with scheme.
    • Amine Ben Hadj Ali
      Ansys Employee
      So having a journal file containing only this line

      (define ncells (string->number(pick-robust "/mesh/mesh-info 0 q q" 33)))

      is wrong!
    • vedama
      Subscriber

      It's not the only line in the file. I have lines before and quite a few after. This is just the line that's causing the error. I've said earlier, it works on my local PC but it fails on the cluster. But when I interactively type these commands on the cluster, it works. Is there a separate way to invoke the scheme file without having to run interactively? Is -i the only way to call the scheme file?
Viewing 9 reply threads
  • The topic ‘Scheme file causing fluent crash on cluster’ is closed to new replies.