Example #1
0
 def fields(cls):
     return [
         ScalarField('rho', need_nn=True),
         ScalarField('phi', need_nn=True),
         ScalarField('theta', need_nn=True),
         VectorField('v')
     ]
Example #2
0
 def fields(cls):
     return [
         ScalarField('rho'),
         ScalarField('phi', need_nn=True),
         VectorField('v'),
         ScalarField('phi_laplacian')
     ]
Example #3
0
 def fields(cls):
     return [
         ScalarField('rho'),
         VectorField('v'),
         ScalarField('alpha', init=2.0),
         ScalarField('entropy')
     ]
Example #4
0
 def visualization_fields(cls, dim):
     if dim == 2:
         return [ScalarField('v^2',
                 expr=lambda f: np.square(f['vx']) + np.square(f['vy']))]
     else:
         return [ScalarField('v^2',
                 expr=lambda f: np.square(f['vx']) + np.square(f['vy']) +
                     np.square(f['vz']))]
Example #5
0
 def fields(cls):
     return [ScalarField('rho'), VectorField('v')]
Example #6
0
 def fields(cls):
     return [ScalarField('data')]
Example #7
0
 def fields(cls):
     return [
         ScalarField('output_x'),
         ScalarField('output_y'),
         ScalarField('output_xy')
     ]
Example #8
0
 def fields(cls):
     return [
         ScalarField('v_sq', gpu_array=True, init=0.0),
         ScalarField('vort_sq', gpu_array=True, init=0.0)
     ]