CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Ellipsoids at an angle

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 25, 2010, 14:56
Default Ellipsoids at an angle
  #1
New Member
 
Stuart
Join Date: Oct 2010
Posts: 2
Rep Power: 0
beefstu is on a distinguished road
Hi all,

I'm trying to mesh an ellipsoid positioned at an angle but cant seem to get it to work. The .geo that I'm trying is as follows:

Code:
algebraic3d

solid ellips1 = ellipsoid (0.0,0.0,0; 3.9392310120488321,0,0.69459271066772166; 0,4,0; 1.7364817766693041,0,9.8480775301220795);
tlo ellips1;
To explain what i did, basically its fine generating an ellipsoid on one of the axes so to try to rotate it slightly, I used trigonometry to work out the new positions of the axes of the ellipsoid, hence the long floats, this should be rotated by 10deg anticlockwise which seems to be what it has done except it has huge holes in it and won't mesh!

For information, the formulae used are as follows:
Code:
ellipsoid (0.0,0.0,0; 4sin(80),0,4cos(80); 0,4,0; 10cos(80),0,10sin(80));
I would appreciate any pointers!

Many thanks
Stu
beefstu is offline   Reply With Quote

Old   October 27, 2010, 17:05
Default
  #2
New Member
 
Stuart
Join Date: Oct 2010
Posts: 2
Rep Power: 0
beefstu is on a distinguished road
ok solved this myself - was being foolish with the vectors, the 10cos(80) should have been negative, was a self-inflicted error, nothing to do with Netgen!
beefstu 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
InterFoam contact angle JoaoMiranda OpenFOAM Running, Solving & CFD 3 August 26, 2014 11:29
Import netgen mesh to OpenFOAM hsieh Open Source Meshers: Gmsh, Netgen, CGNS, ... 32 September 13, 2011 05:50
Theoretical background of formula for dynamic contact angle in interfoam sebastian_vogl OpenFOAM Running, Solving & CFD 3 June 22, 2009 12:25
Finding angle from line1 to line2 in ccw sense(2d) zonexo Main CFD Forum 2 September 9, 2005 06:40
angle of attack kiran FLUENT 0 September 10, 2004 08:18


All times are GMT -4. The time now is 18:55.