## 3D Design

Topics relate to Discovery SpaceClaim, Discovery Live and Discovery AIM

#### parametric equation driven a curve

• omarjumaah
Subscriber

Hello all,

I need to draw equation driven curve in designmodeler, then optimize it. any hints are valuable to me. thank you in advance,

Omar

• Vishal Ganore
Ansys Employee

One way is to convert your equation into number of points governing curve, create a text file and load it under Desigmodeler through 3d curve option. More details are available under help documentation.

• omarjumaah
Subscriber

• peteroznewman
Subscriber

What is the equation and what parameters can be varied to optimize the curve?

What is the range that each parameter can take?

I use SIEMENS NX CAD system and can create parametric curves in that.

I can import that CAD file into DesignModeler and can include the parameters for a Design Optimization in ANSYS.

Do you have a CAD system or are you limited to working in DesignModeler?

• cos2pi
Subscriber

Hi

I have the same problem, can you solve it by spaceclaim, or Solidworks.

I would prefer that it could be solved by design modeler, since i then avoid converting and importing issues with units and edges.

• Vishal Ganore
Ansys Employee

If you wish to use Design Modeler (DM) then please follow following steps:

1. Take your equation, convert it into coordinate points (x.y and z) governing that equation.

2. Write it into 3d curve usable format (see the snapshot that I uploaded before)

3. Create text file (sample: paste following into text file (.txt)

1 1 10.1234 15.4321 20.5678

1 2 15.2468 20.1357 25.1928

1 3 5.5555 6.6666 7.7777

4. Use 3d curve option from DM

It will give you the line body for your future operations.  All the best.

• cos2pi
Subscriber

Can i use the same method, if i want to create ít as a 2D sketch and then extrude?

The thing i wish to draw is a wavy channel coldplate.  Where the wavy pattern is a sinusoidal function with variable amplitude and frequency.

So i need a thickness on the fin, and a height

• Vishal Ganore
Ansys Employee

Yes, It is possible. Convert your curve into three points coordinate system (x,y,0). Z coordinate for all points will be zero.

• Valeria
Subscriber

I am importing a hyperbola from solidworks since I wasn't able to draw it in DesignModeler or SpaceClaim, but then in design optimization I cannot change one length of such curve as parameter because I think Ansys is not able to reconstruct the hyperbola.

Do you have any idea on how to design a hyperbola (from equation) in DesignModeler or Spaceclaim or how to make direct optimization tool modify the hyperbola without requiring user input ? (When it gives the error: user input required before it can be updated, I cannot modify anything in DesignModeler)

Does it work with txt file with points of the hyerbola?

Thank you,

Valeria

• peteroznewman
Subscriber

Hello Valeria,

I suggest you construct a Conical surface and a Plane and use Slice to create the intersection curve, which is a hyperbola. Both the conic surface and plane may be parametrically controlled in DesignModeler or SpaceClaim from a Workbench optimization system.

Regards,

Peter

• Valeria
Subscriber

Thank you very much Peter, I didn't think about that. I tried to extrapolate the hyperbolic profile as a curve but didn't manage, any suggestions?

• peteroznewman
Subscriber

Hello Valeria,

Attached is an ANSYS 18.2 archive that implements a cone sliced by a plane and the hyperbolic edge extruded as a thin arch. The cone angle is a parameter. Workbench can march through a Parametric Table of Design Points automatically.

Are you working on the free Student license which has no SOLIDWORKS bi-directional interface, or a Research license that includes the SOLIDWORKS bi-directional interface that allows SOLIDWORKS parameters to come into ANSYS?

• Valeria
Subscriber

Thank you very much Peter, I am experimenting now your suggestion. It's the one of University actually so I don't know, I think it's bidirectional as I have the Ansys add-in in solidworks and I'm able to import parameters frfom Soldiworks to WB.

• peteroznewman
Subscriber

Yes, you have the SOLIDWORKS plug-in that allows bi-directional data exchange between Workbench and SW.  That means you can do the parameterization in SW and drive that from Workbench.

• Valeria
Subscriber

yes I can but WB seems to be unable to update the parameters of the hyperbola probably because its equation is set in solidworks. This is a screen of what I'd like to draw inside design modeller, but I can't figure out how to set the cone angle and psition of the plane to intersect it in orded to obtain precisely the hyperbola of equation

y=0.2/(1+29.32(x+0.65))

• peteroznewman
Subscriber

Hello Valeria,

I will dive deep into mapping an equation for a hyperbolic curve into a cone and plane.

I can show you how to have WB send SW parametric values to update the geometry, which is then sent back to WB. Please put the SW part (or parts and assembly if applicable) into a zip file and attach that after you post your reply and I will see if I can get that working. Also say what version of SW you are using, I have SW2017 installed.

Regards,

Peter