if else statement in moose input file

34 views
Skip to first unread message

S. K Barnwal

unread,
Feb 21, 2023, 2:09:08 AM2/21/23
to moose...@googlegroups.com
Hello, Is it possible to read a different line using the if else statement in moose input (.i) file? 
[./crysp]
    type = FiniteStrainCrystalPlasticity
    block = '1'


    if (temp > 1100 )
    {  
    slip_sys_file_name = slip_systems2.txt # no need to normalize vectors
    nss = 12 #Number of slip systems
    num_slip_sys_flowrate_props = 2 #Number of flow rate properties in a slip system
    flowprops = '1 12 0.01 0.000001' # slip rate equations parameters
    hprops = '1.0 600.0 100.0 600.0  2.0' # hardening properties
    gprops = '1 12 100' # initial values of slip system resistances (start_slip_sys, end_slip_sys, value)
     }
   else
    {
    slip_sys_file_name = slip_systems2.txt # no need to normalize vectors
    nss = 48 #Number of slip systems
    num_slip_sys_flowrate_props = 2 #Number of flow rate properties in a slip system
    flowprops = '1 24 0.01 0.000001' # slip rate equations parameters
    hprops = '1.0 200.0 100.0 200.0  2.0' # hardening properties
    gprops = '1 2 200 3 6 300 6 12 5000' # initial values of slip system resistances (start_slip_sys, end_slip_sys, value)
    }


   
  [../]
Sunni Kumar
M.Tech + Ph.D
Department of Mechanical Engineering
Indian Institute of Technology Bombay
Reply all
Reply to author
Forward
0 new messages