Mercurial > repos > greg > icqsol_solve_laplace
comparison icqsol_solve_laplace.py @ 2:4fc22a63a17e draft
Uploaded
| author | greg |
|---|---|
| date | Tue, 12 Jul 2016 15:07:15 -0400 |
| parents | 696bfb47d45e |
| children |
comparison
equal
deleted
inserted
replaced
| 1:696bfb47d45e | 2:4fc22a63a17e |
|---|---|
| 34 # In place operation, vtk_poly_data will be modified. | 34 # In place operation, vtk_poly_data will be modified. |
| 35 normalEJump = solver.computeNormalElectricFieldJump(potName=args.input_potential_name) | 35 normalEJump = solver.computeNormalElectricFieldJump(potName=args.input_potential_name) |
| 36 surfIntegral = shape_mgr.integrateSurfaceField(solver.getVtkPolyData(), args.output_jump_electric_field_name) | 36 surfIntegral = shape_mgr.integrateSurfaceField(solver.getVtkPolyData(), args.output_jump_electric_field_name) |
| 37 print 'Surface integral of normal electric field jump: {0}'.format(surfIntegral) | 37 print 'Surface integral of normal electric field jump: {0}'.format(surfIntegral) |
| 38 minVal, maxVal = shape_mgr.getFieldRange(solver.getVtkPolyData(), args.output_jump_electric_field_name) | 38 minVal, maxVal = shape_mgr.getFieldRange(solver.getVtkPolyData(), args.output_jump_electric_field_name) |
| 39 print 'min/max values of normal electrc field jump: {0}/{1}'.format(minVal, maxVal) | 39 print 'min/max values of normal electric field jump: {0}/{1}'.format(minVal, maxVal) |
| 40 | 40 |
| 41 # Define the output file format and type (the output_format can only be 'vtk'). | 41 # Define the output file format and type (the output_format can only be 'vtk'). |
| 42 output_format, output_file_type = icqsol_utils.get_format_and_type(args.output_vtk_type) | 42 output_format, output_file_type = icqsol_utils.get_format_and_type(args.output_vtk_type) |
| 43 tmp_output_path = icqsol_utils.get_temporary_file_path(tmp_dir, output_format) | 43 tmp_output_path = icqsol_utils.get_temporary_file_path(tmp_dir, output_format) |
| 44 | 44 |
