Hello, I am writing for the following question: I need to refine the node spacing at about 20% of the chord on the upper surface of the profile. I entered the source code and I modified how PANGEN is called by properly changing the variables CTRRAT,XSREF1,XSREF2,XPREF1,XPREF2 when pangen is called in menu.f90 but I have practically no effect on the nodes distribution. I am using hyperbolic mesh algorithm. It is strange, because in xfoil this affects the nodes distribution and allows the refinment I am searching for. Do you have any suggestion? Do you think I can alternatively interpolate the mesh generated on the default grid in a post-processing phase so as to select the desired nodes distribution?
Thank you in advance for your support
Simone
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The reason is that Construct2D no longer uses the XFoil spacing routine directly to generate the boundary node spacing. It is only used as a preprocessing step in order to make sure the airfoil spline is smooth when the "SMTH" grid option is selected. For the actual spacing, some other routines in edge_grid.f90 are applied, which allow the user to directly control the leading edge and trailing edge spacing. If you want to use PANGEN for this step, I'd recommend you look into modifying the subroutine called apply_foil_spacing in edge_grid.f90.
By the way, Sourceforge doesn't email me when there's a ticket, so sorry it took so long to get back to you. I will try to see if there is a setting to make it email me in the future.
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am writing for the following question: I need to refine the node spacing at about 20% of the chord on the upper surface of the profile. I entered the source code and I modified how PANGEN is called by properly changing the variables CTRRAT,XSREF1,XSREF2,XPREF1,XPREF2 when pangen is called in menu.f90 but I have practically no effect on the nodes distribution. I am using hyperbolic mesh algorithm. It is strange, because in xfoil this affects the nodes distribution and allows the refinment I am searching for. Do you have any suggestion? Do you think I can alternatively interpolate the mesh generated on the default grid in a post-processing phase so as to select the desired nodes distribution?
Thank you in advance for your support
Simone
Hi Simone,
The reason is that Construct2D no longer uses the XFoil spacing routine directly to generate the boundary node spacing. It is only used as a preprocessing step in order to make sure the airfoil spline is smooth when the "SMTH" grid option is selected. For the actual spacing, some other routines in edge_grid.f90 are applied, which allow the user to directly control the leading edge and trailing edge spacing. If you want to use PANGEN for this step, I'd recommend you look into modifying the subroutine called apply_foil_spacing in edge_grid.f90.
By the way, Sourceforge doesn't email me when there's a ticket, so sorry it took so long to get back to you. I will try to see if there is a setting to make it email me in the future.
Dan