CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ANSYS Meshing & Geometry

[DesignModeler] Create Skin from Curves by a JScript

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 26, 2013, 12:16
Default Create Skin from Curves by a JScript
  #1
Red
New Member
 
Join Date: Feb 2013
Posts: 1
Rep Power: 0
Red is on a distinguished road
Hello,


I found this forum by searching a solution for a certain problem and I hope somebody here might help.

I want to create a geometry in the DesignModeler totaly by using a JScript. I already succeeded in creating most of the parts, but I got stuck by creating a Skin from some curves, which I defined.

The part where the curves and the skin shall be created looks like this:

Code:
var myCurve = ag.gui.CreateCurve();

// Read Curves from File
myCurve.FCurveDefType = 1;
    
myCurve.CoordinateFile = "curve_file.txt";
myCurve.Name = "my_curve";
myCurve.CurveRefresh = 1;

// ... and now create the skin ...
This part works fine. Now I'm trying to select the Curves and to create the skin. I managed to create a new skin and I can add the line bodys to it, but the creation fails with an error (it says, that the types are not valid).

Here is what I tried (Body 8 to 12 are the line bodys):

Code:
ag.b.Regen();
var mySkin = ag.b.Skin(agc.Add, agc.Yes, 0.0, 0.0);
mySkin.AddBaseObject(ag.agApplet.FeatureMgr.Body(8));
mySkin.AddBaseObject(ag.agApplet.FeatureMgr.Body(9));
mySkin.AddBaseObject(ag.agApplet.FeatureMgr.Body(10));
mySkin.AddBaseObject(ag.agApplet.FeatureMgr.Body(11));
mySkin.AddBaseObject(ag.agApplet.FeatureMgr.Body(12));
ag.b.Regen();
I guess, that I have to select the edges instead of the line bodys, but I don't know how I can do that. May be someone here nows a solution? It would be a great help ...


Thank you very much!


Best regards
Red
Red is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import point to create shapes!!! syrous CFX 7 February 17, 2013 17:45
the skin friction coefficient error from Fluent sutthinan Main CFD Forum 2 November 28, 2012 14:03
create a probe with fluent Aenseeiht FLUENT 3 April 29, 2010 03:27
Actuator disk model audrich FLUENT 0 September 21, 2009 07:06
Compute Skin friction coef by hand Francois FLUENT 1 February 10, 2006 07:21


All times are GMT -4. The time now is 06:59.