Home
last modified time | relevance | path

Searched refs:element_props (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ksp/ksp/tutorials/
H A Dex43.c1116 GaussPointCoefficients **element_props; in solve_stokes_2d_coupled() local
1176 PetscCall(DMDAVecGetArray(da_prop, l_properties, &element_props)); in solve_stokes_2d_coupled()
1213 element_props[j][i].gp_coords[2 * p] = gp_x; in solve_stokes_2d_coupled()
1214 element_props[j][i].gp_coords[2 * p + 1] = gp_y; in solve_stokes_2d_coupled()
1246 coord_x = PetscRealPart(element_props[j][i].gp_coords[2 * p]); in solve_stokes_2d_coupled()
1247 coord_y = PetscRealPart(element_props[j][i].gp_coords[2 * p + 1]); in solve_stokes_2d_coupled()
1250 element_props[j][i].eta[p] = opts_eta0; in solve_stokes_2d_coupled()
1251 if (coord_x > opts_xc) element_props[j][i].eta[p] = opts_eta1; in solve_stokes_2d_coupled()
1253 element_props[j][i].fx[p] = 0.0; in solve_stokes_2d_coupled()
1254element_props[j][i].fy[p] = PetscSinReal(opts_nz * PETSC_PI * coord_y) * PetscCosReal(1.0 * PETSC_… in solve_stokes_2d_coupled()
[all …]
H A Dex49.c721 GaussPointCoefficients **element_props; in solve_elasticity_2d() local
781 PetscCall(DMDAVecGetArray(da_prop, l_properties, &element_props)); in solve_elasticity_2d()
818 element_props[j][i].gp_coords[2 * p] = gp_x; in solve_elasticity_2d()
819 element_props[j][i].gp_coords[2 * p + 1] = gp_y; in solve_elasticity_2d()
842 element_props[j][i].E[p] = opts_E; in solve_elasticity_2d()
843 element_props[j][i].nu[p] = opts_nu; in solve_elasticity_2d()
845 element_props[j][i].fx[p] = 0.0; in solve_elasticity_2d()
846 element_props[j][i].fy[p] = 0.0; in solve_elasticity_2d()
865 coord_x = element_props[j][i].gp_coords[2 * p]; in solve_elasticity_2d()
866 coord_y = element_props[j][i].gp_coords[2 * p + 1]; in solve_elasticity_2d()
[all …]