-
Hi All, Thanks for making such a good tool, it has been great so far. I have been trying to generate a biplanar x-gradient based off of the example code but keep running into the same error despite change multiple parameters.
I have tried a few renditions of messing with the arguments, here is my current attempt
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello Tj, I'm embarrassed to admit that you have actually helped me uncover a bug in the Instead of: mesh_data = build_biplanar_mesh(*input_args.biplanar_mesh_parameter_list) it should read: mesh_data = build_biplanar_mesh(*input_args.biplanar_mesh_parameter_list) Note the biplanar instead of planar. I am writing a regression test and will make a bugfix release soon. Thanks for bringing this to my attention. Finally, as I pointed out before, to emulate the STL file example, you need to change the normal from
I hope this helps you to make progress with the project. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Actually, the parameters that you provided, above, I think will give you problems. I believe that the coil mesh is too small and too close to the provided target mesh (sphere) volume. The following works for me, as a copy/translation of the bi-planar STL file example, except using the bi-planar mesh builder: arg_dict = {
'field_shape_function': 'x', # definition of the target field
# 'coil_mesh_file': 'bi_planer_rectangles_width_1000mm_distance_500mm.stl',
'coil_mesh': 'create bi-planar mesh',
'biplanar_mesh_parameter_list': [1.0, 1.0, # planar_height, planar_width of the planar mesh.
20, 20, # num_lateral_divisions, num_longitudinal_divisions
0.0, 1.0, 0.0, # target_normal_x, target_normal_y, target_normal_z
0, 0, 0, # center_position_x, center_position_y, center_position_z
0.5], # plane_distance (`float`): Distance between the two planes.
'target_mesh_file': 'none',
'secondary_target_mesh_file': 'none',
'secondary_target_weight': 0.5,
'target_region_radius': 0.1, # in meter
# 'target_region_resolution': 10, # MATLAB 10 is the default
'use_only_target_mesh_verts': False,
'sf_source_file': 'none',
# the number of potential steps that determines the later number of windings (Stream function discretization)
'levels': 14,
# a potential offset value for the minimal and maximal contour potential ; must be between 0 and 1
'pot_offset_factor': 0.25,
'surface_is_cylinder_flag': True,
# the width for the interconnections are interconnected; in meter
'interconnection_cut_width': 0.05,
# the length for which overlapping return paths will be shifted along the surface normals; in meter
'normal_shift_length': 0.01,
'iteration_num_mesh_refinement': 0, ### 1, # the number of refinements for the mesh;
'set_roi_into_mesh_center': True,
'force_cut_selection': ['high'],
# Specify one of the three ways the level sets are calculated: "primary","combined", or "independent"
'level_set_method': 'primary',
'skip_postprocessing': False,
'skip_inductance_calculation': False,
'tikhonov_reg_factor': 10, # Tikhonov regularization factor for the SF optimization
'output_directory': 'images/issue70', # [Current directory]
'project_name': 'biplanar_xgradient_Tj',
'persistence_dir': 'debug',
'debug': DEBUG_BASIC,
} Note that I reduced |
Beta Was this translation helpful? Give feedback.
I have just published an updated package now.
The bugfix is present in version 0.2.2.