STOMP

Card Syntax Tips (e)

The syntax used to build the cards that make up the input file might be confusing, especially when a "repeat"  loop is used  (or nested loops), or when a  "Choose one" option is required.

Following are a few more tips to help understand the input file syntax based on real cases.

  1. Build a card with "Repeat" loops
  2. Build a card wit a "Choose one" option 

Build a card with "Repeat" loops

Tip

Single Loop

  • Complete each card line with the required information (1), (2) or (3)
  • When a repeat loop panel in encountered (4), follow the directions:
    • check the number of iterations required (5)
    • complete the card line with the required fields (6) and repeat for the number of iterations required

Single Loop Example with 2 iterations - Simulation Title Card
One loop - 2 iterations
~Simulation Title Card
1,
Problem EOR-6,
Mark White,
Pacific Northwest National Laboratory,
25 June 2014,
08:29 PDT,
2,
Primary recovery from a five-spot well pattern in the Farnsworth
Unit using the compositional option.

Nested Loop

  • Complete each card line with the required information (1), (2)
    • When first looping panel is encountered (3), follow the directions:
      • check number of iterations required (4)
      • complete card line with required fields until ellipses (...) are encountered (5) which indicates the start of the second looping panel
        • go to next ellipses (A)
        • pursue card line filling with required fields (5) and repeat operations for the number of iterations required (6) until ellipses are encountered  (7)
        • go to next ellipses (B)
      • end of the second loop (7)
    • complete card line with required fields (8)
    • End of card line
  • Repeat operations for number of iterations required in first loop panel

 

Nested Loop Example - Equilibrium Equations Card

 

 

Build a card with "Choose One" options

Tip

"Choose one" / Nested "Choose one" 

  • When a "Choose one" panel  is encountered, choose among the proposed options the one that fits the problem to be resolved
  • Expand the chosen option by clicking on  (1)
  • Complete the card line with required information or choose the appropriate options by clicking on    if another "Choose one" panel is encountered (2)
  • Follow the directions and complete the card line with required fields (3)

eSTOMP User Guide Home