Ejemplo n.º 1
0
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))
Ejemplo n.º 2
0
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))    
Ejemplo n.º 3
0
def random(gg,par):
    gfield.execute(gg,3.1415,par)
    Result(gg,fdmod.cgrey('color=j',par))
Ejemplo n.º 4
0
def random(gg, par):
    gfield.execute(gg, 3.1415, par)
    Result(gg, fdmod.cgrey('color=j', par))