Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ITMIMAS
Code Block
languagetext
>> eq=CPO_gen('equilibrium', 100)
eq =
1x100 struct array with fields:
    datainfo
    eqconstraint
    eqgeometry
    flush
    global_param
    profiles_1d
    profiles_2d
    coord_sys
    time
    codeparam
>>
Code Block
languagetext
>> eq=ids_gen('equilibrium')
eq =
           ids_properties: [1x1 struct]
    vacuum_toroidal_field: [1x1 struct]
               time_slice: {[1x1 struct]}
                     code: [1x1 struct]
                     time: []
>>

5. Saving CPO/IDS

ITMIMAS
Code Block
languagetext
>> import_ual
>> idx=euitm_create('euitm', 111, 11);
>> eq=CPO_gen('equilibrium',10);
>> for i = 1: 10
eq(i).datainfo.dataprovider='tutorial';
eq(i).codeparam.codename='test put matlab';
eq(i).time=(1.0 + i);
end
>> euitm_put(idx,'equilibrium',eq);
>> euitm_close(idx);
>>
Code Block
languagetext
 

6. Reading CPO/IDS

ITMIMAS
Code Block
languagetext
>> import_ual
>> idx=euitm_open('euitm', 111, 11)
idx =
     0
>> eq=euitm_get(idx, 'equilibrium')
eq =
1x10 struct array with fields:
    datainfo
    eqconstraint
    eqgeometry
    flush
    global_param
    profiles_1d
    profiles_2d
    coord_sys
    time
    codeparam
>>