def random(seed, gg, mask, ff, aa, ru, rv, par): part = par.copy() # random field part['ff'] = ff # ??? part['aa'] = aa # angle part['ru'] = ru # characteristic length part['rv'] = rv # characteristic length gfield.execute(gg + '_', seed, part) Flow(gg, [gg + '_', mask], 'add mode=p ${SOURCES[1]}') Result(gg, fdmod.cgrey('color=F', par))
def random(seed,gg,mask,ff,aa,ru,rv,par): part=par.copy() # random field part['ff']=ff # ??? part['aa']=aa # angle part['ru']=ru # characteristic length part['rv']=rv # characteristic length gfield.execute(gg+'_',seed,part) Flow(gg,[gg+'_',mask],'add mode=p ${SOURCES[1]}') Result(gg,fdmod.cgrey('color=F',par))
def random(gg,par): gfield.execute(gg,3.1415,par) Result(gg,fdmod.cgrey('color=j',par))
def random(gg, par): gfield.execute(gg, 3.1415, par) Result(gg, fdmod.cgrey('color=j', par))