Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading Edge Spacing #1

Open
Brandon-Campanile opened this issue Dec 2, 2019 · 3 comments
Open

Leading Edge Spacing #1

Brandon-Campanile opened this issue Dec 2, 2019 · 3 comments

Comments

@Brandon-Campanile
Copy link

Brandon-Campanile commented Dec 2, 2019

I'm having an issue where the LE is not well defined. Try changing ds=0.005 on line 70 and you'll see a large point spacing from the stagnation point to the first point followed by progressively smaller point spacing. Could you include a cosine spacing scheme to better define the LE? Thank you.

@Brandon-Campanile
Copy link
Author

I'm not at all familiar with Glyph or TCL, but I made the following changes locally to obtain cosine spacing and it seems to work if gridPts is an odd number:

line 71:

set d {0}
set gridPts 201
set pi 3.14159

line 78:
for {set beta 0} {$beta < [expr {$pi+$pi/$gridPts}]} {set beta [expr {$beta + $pi/$gridPts}]} {lappend x [expr {0.5*(1-cos($beta))}]}

line 83:
lappend d [expr $xx]

line 107:

if {$dy == 0} {
        set th 0
} else {
	set th [expr {atan($dy/$dx)}]
}

@advocateddrummer
Copy link

This is a random coincidence, I addressed this very issue today in #2 without any foreknowledge of this open issue. @Brandon-Campanile, maybe you could check that out and see if it addresses your issue adequately?

@Brandon-Campanile
Copy link
Author

@advocateddrummer That’s exactly it, what a coincidence! Especially considering how long this repo has been around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants