'type': 'double',
    'shortDesc': "Inlet equivalence ratio (F/A)/(F/A)_{st} [-]",
    'defaultValue': 1.0
})

spify_parser_params.append({
    'name': "egr",
    'type': 'double',
    'shortDesc': "Inlet egr value [-]",
    'defaultValue': 0.0
})

spify_parser_params.append({
    'name': "step_limiter",
    'type': 'double',
    'shortDesc': "Reaction rate limiter",
    'defaultValue': 1.0e+300
})

spify_parser_params.append({
    'name': "preconditioner_threshold",
    'type': 'double',
    'shortDesc': "preconditioner threshold",
    'defaultValue': 1.0e-3
})

#Generate parser code
spg().generate(spify_parser_name, spify_parser_params)

#Done.
Пример #2
0
    'name': "eps_lin",
    'type': 'double',
    'shortDesc': "??",
    'defaultValue': 0.1
})

spify_parser_params.append({
    'name': "nonlinear_convergence_coefficient",
    'type': 'double',
    'shortDesc': "??",
    'defaultValue': 0.05
})

spify_parser_params.append({
    'name': "dump_jacobian",
    'type': 'int',
    'defaultValue': 0
})

#Make sure we can import SpifyParserGenerator
sys.path.append(os.path.join(os.path.expandvars(SPIFY_SRC_DIR), 'src'))

#Import
from SpifyParserGenerator import SpifyParserGenerator as spg

#Generate parser code
spg().generate(spify_parser_name, spify_parser_params)
spg().make_master_file(spify_parser_name, spify_parser_params)

#Done.