def fields(cls): return [ ScalarField('rho', need_nn=True), ScalarField('phi', need_nn=True), ScalarField('theta', need_nn=True), VectorField('v') ]
def fields(cls): return [ ScalarField('rho'), ScalarField('phi', need_nn=True), VectorField('v'), ScalarField('phi_laplacian') ]
def fields(cls): return [ ScalarField('rho'), VectorField('v'), ScalarField('alpha', init=2.0), ScalarField('entropy') ]
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']))]
def fields(cls): return [ScalarField('rho'), VectorField('v')]
def fields(cls): return [ScalarField('data')]
def fields(cls): return [ ScalarField('output_x'), ScalarField('output_y'), ScalarField('output_xy') ]
def fields(cls): return [ ScalarField('v_sq', gpu_array=True, init=0.0), ScalarField('vort_sq', gpu_array=True, init=0.0) ]