
Re: add equation driven curve as parameter
Shaodun Lin Sep 9, 2015 3:50 AM (in response to Mark Wood)Hi Mark Wood
Is this a SOLIDWORKS question or an ANSYS/Fluent question?
Regards

Re: add equation driven curve as parameter
Mark Wood Sep 18, 2015 9:41 AM (in response to Shaodun Lin)Hi Shaodun,
Sorry about the huge delay, things have been pretty hectic getting ready for the start of the new semester.
First, this is a Solidworks question. I can define an airfoil with an 'equation driven curve' but can find no way to attach this as a 'parameter' to the line/airfoil.
As an example of what I'm trying to do:
(if this was for a cylinder instead of an airfoil)
 I would draw the cross section i.e circle
 I would add a driving dimension to the circle
 I would rename the dimension with 'DS' at the begining as this is the ANSYS 'parameter import key'.
 Repeat for length i.e. extrusion.
This would give me a part that's design parameters could be optimised for a set observable eg lift/drag etc
For a 4digit NACA airfoil the eq is:
y(t)=5*t*c[0.2969*sqrt(x/c)+(0.1260)(x/c)+(0.3516)(x/c)^2+0.2843(x/c)^3+(1036)(x/c)^4]
 c = chord length,
 x = position along the chord from 0 to c,
 y(t) = half thickness at a givenof x (centerline to surface),
 t = max thickness as a fraction of chord (so 100 t gives the last two digits in the NACA 4digit denomination)

Re: add equation driven curve as parameter
Shaodun Lin Sep 18, 2015 11:30 AM (in response to Mark Wood)Hi Mark:
I think this is a limitation in SOLIDWORKS.
Once the equation is defined , it can not be drived by a parameter.
You may need some help from API.
Which means you can program the curve using VBA and control the parameter.
Regards

Re: add equation driven curve as parameter
Marcos Rodríguez Sep 12, 2018 7:02 AM (in response to Shaodun Lin)Hi Shaodun & Mark,
Equations driven curves can be driven by parameter, written in the Equation Panel.
please check this 2 macros:
You just need to include the parameters betwen collons "parameter"
Regards.

