dev:code:ui:basic [Promethee]

Basic computing code wrapping

The basic computing code wrapper is composed of a unique .ioplugin ASCII files in “properties” format (i.e. “key=values” lines).
A typical .ioplugin file for APOLLO2 calculation:
information=Apollo plugin made by IRSN/Yann Richet\nLesser General Public License
 
variableStartSymbol=$
variableLimit=(...)
formulaStartSymbol=@
formulaLimit={...}
 
commentLineChar=*
 
roundOff=10
 
datasetFilter=contains("(.*)","DEBUT_APOLLO") & contains("(.*)","SN KEFF")
 
keywords.BLUE=DEBUT_APOLLO2 FIN_APOLLO2 TITRE WRITE ARRET EDTIME FERMER QUADRATURE NGROUP_FINAL ANISOTROPIE
keywords.GREEN=nom_mil nom_calc
keywords.RED=TOPT TSTR TRES TOPT.'STMIL'.nom_mil. TSTR.nom_calc.'GEO' TOPT.'STCRI'.'
 
outputlist=keff kinf slowing_down M2 B2
outputfunctions=Numeric:keff
 
output.keff.if=true
output.keff.get=grep("(.*)listing"," KEFF") >> get(0) >> between("KEFF","|  ") >> asNumeric()
output.keff.default=1.0
 
output.kinf.if=true
output.kinf.get=grep("(.*)listing"," KINF") >> get(0) >> between("KINF","|  ") >> asNumeric()
output.kinf.default=1.0
 
output.slowing_down.if=true
output.slowing_down.get=grep("(.*)listing"," RALENTISSEMENT") >> get(0) >> between("RALENTISSEMENT","|  ") >> asNumeric()
output.slowing_down.default=0.5
 
output.M2.if=true
output.M2.get=grep("(.*)listing"," M2") >> get(0) >> between("M2","cm2 |") >> asNumeric()
output.M2.default=40
 
output.B2.if=true
output.B2.get=grep("(.*)listing"," B2") >> get(0) >> between("B2","|") >> asNumeric()
output.B2.default=0.01
This .ioplugin file 1) may content following properties lines (one “key=value” per line):

General information

Parametrization

Syntax

Input file filter test

Keywords

Output

To write your own .ioplugin file, you can just use your favorite ASCII file editor.
Note: all these features are designed to be as flexible as possible, but in many cases, it does not match need for output parsing for instance. In such cases, it is possible to switch to extended wrapping to provide much more flexible support for input/output of codes.
1) the prefix (i.e. “mycode” in “mycode.ioplugin”) will be finally used as code name in Promethee GUI
© IRSN - All right reserved - Legal information