CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

Sphere in pointwise

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2014, 15:26
Default Sphere in pointwise
  #1
New Member
 
Join Date: Feb 2014
Posts: 10
Rep Power: 12
agv10 is on a distinguished road
Hi,

I am new to pointwise. I am trying to create a spherical geometry for the problem of flow over a sphere. I have been trying the 'rotate' tool along with 2D sketches to extrude it into a sphere but I keep getting an error that is something like - 'some mesh elements have negative Jacobian'.

Can anyone suggest a simple way to do this?

Thanks.
agv10 is offline   Reply With Quote

Old   February 24, 2014, 22:29
Default
  #2
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by agv10 View Post
Hi,

I am new to pointwise. I am trying to create a spherical geometry for the problem of flow over a sphere. I have been trying the 'rotate' tool along with 2D sketches to extrude it into a sphere but I keep getting an error that is something like - 'some mesh elements have negative Jacobian'.

Can anyone suggest a simple way to do this?

Thanks.
best

I'm a little bit confused how you're going about this but in general revolving a 2D mesh where there is mesh all the way to the axis will not result in a good 3D mesh.

The easiest way to do this and get a high quality structured mesh is with 6 blocks. It sounds complicated but it's not. Here's how ... start with a spherical geometry. If you don't have one, create a semi-circle db curve and revolve once 180 deg in one direction and revolve again 180 deg again in the other direction. It's generally not a good idea to do it in one step and revolve it 360 deg. Without the verbosity - trust me, do it in two halves. See first picture.

To mesh it create 12 connectors that form the sides of cude that enclose the sphere. My sphere has dia = 1 centered at (0,0,0) so I created a cube with sides L = 1 centered at (0,0,0). See second picture.

Project the 12 connectors onto the sphere by selecting all the connectors, Edit>Project (be sure to uncheck Interior Only). With all the connectors still selected set the dimension the connectors to your liking. I choose a dimension of 21 which results in a grid point spacing ~ 0.03. With all the connectors still selected create the domains with the Assemble Domains button on the toolbar. Select the 6 new domains and project them to the sphere (re-check Interior Only). With the 6 domains still selected smooth them 10-20 iterations with Grid>Solve. See third picture.

With the 6 domains still selected, create the volume mesh with Create>Extrude>Normal. In the attributes panel set the initial step size, growth rate and ensure the orientation normals point outward. I used a initial step size = 0.001, growth rate = 1.2. Go back to run tab and enter the number of steps, click Run. I choose 55 steps. The tricky part here is knowing how far to extrude to ensure the resulting farfield is far enough away. 55 steps resulted in farfield dia ~= 100. If you find it's too large or too small use Grid>Re-Extrude to add or remove steps. See the fourth image.

That should be it. Let me know if you have any questions.
Attached Images
File Type: jpg sphere-01.jpg (9.5 KB, 326 views)
File Type: jpg sphere-02.jpg (12.5 KB, 301 views)
File Type: jpg sphere-03.jpg (11.3 KB, 294 views)
File Type: jpg sphere-04.jpg (11.7 KB, 261 views)

Last edited by cnsidero; February 25, 2014 at 13:19.
cnsidero is offline   Reply With Quote

Old   February 28, 2014, 18:22
Default
  #3
New Member
 
Join Date: Feb 2014
Posts: 10
Rep Power: 12
agv10 is on a distinguished road
Hi cnsidero,

Thanks for your detailed response. I managed to create the sphere by revolving the db semi-circle curve 180 degrees in two directions (Figure 1) but I my projection is incorrect. The full geometry that I am trying to create is a sphere contained in a cube.

Once I made the 12 connectors for the cube and projected them onto the sphere, only 4 domains were created and not 6 as you said. Two patches were left empty (Figure 2). I set projection control to the default parameter -'closest point' and set dimension to '20'.

Have I missed something in the settings for the projection?

Last edited by agv10; February 28, 2014 at 19:48. Reason: solved earlier problem
agv10 is offline   Reply With Quote

Old   February 28, 2014, 20:01
Default
  #4
New Member
 
Join Date: Feb 2014
Posts: 10
Rep Power: 12
agv10 is on a distinguished road
I have attached images of what I've done so far.
Attached Images
File Type: png Fig1.png (50.4 KB, 148 views)
File Type: png Fig2.png (35.9 KB, 143 views)
File Type: png Fig3.png (38.0 KB, 159 views)
agv10 is offline   Reply With Quote

Old   March 1, 2014, 14:54
Default
  #5
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by agv10 View Post
Hi cnsidero,
Once I made the 12 connectors for the cube and projected them onto the sphere, only 4 domains were created and not 6 as you said. Two patches were left empty (Figure 2). I set projection control to the default parameter -'closest point' and set dimension to '20'.

Have I missed something in the settings for the projection?
I see you're using an unstructured mesh. If that's the mesh type you want there's no need to use the approach I described. Instead simply select the two halves of the sphere and click the Create Domains on Database button in the tool bar.

My description was if you wanted a structured mesh.
cnsidero is offline   Reply With Quote

Old   March 4, 2014, 20:05
Default
  #6
New Member
 
Join Date: Feb 2014
Posts: 10
Rep Power: 12
agv10 is on a distinguished road
Hi,

I tried doing that but once I select the two halves of the sphere (surface 1 + surface 2 under the tree on the left), the 'domains on database' option is disabled and I cannot select it. All my masks are checked at this point.

I created a semi circle db curve and revolved it 180 degrees in two directions to create a sphere, so I now have 3 entities in the tree - curve-1, surface-1 and surface-2.
agv10 is offline   Reply With Quote

Old   March 5, 2014, 08:04
Default
  #7
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by agv10 View Post
Hi,

I tried doing that but once I select the two halves of the sphere (surface 1 + surface 2 under the tree on the left), the 'domains on database' option is disabled and I cannot select it. All my masks are checked at this point.
Do you have a default dimension or average spacing set in the Defaults tab?
cnsidero is offline   Reply With Quote

Old   March 5, 2014, 13:27
Default
  #8
New Member
 
Join Date: Feb 2014
Posts: 10
Rep Power: 12
agv10 is on a distinguished road
No, they are disabled too.
agv10 is offline   Reply With Quote

Old   March 5, 2014, 13:28
Default
  #9
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by agv10 View Post
No, they are disabled too.
That's it. To automatically assemble an unstructured domains on a database entity you must have a non-zero dimension or average spacing set.
cnsidero is offline   Reply With Quote

Old   March 5, 2014, 13:45
Default
  #10
New Member
 
Join Date: Feb 2014
Posts: 10
Rep Power: 12
agv10 is on a distinguished road
But the dimension only gets enabled when I have connectors. I am starting from scratch by revolving the db semi-circle so I only have the sphere. At this point, can I enable the dimension or spacing without having connectors?

If I click 'connectors on database entities', I see the dimension get enabled but after I set a dimension, the 'domains on database' is still not enabled.
agv10 is offline   Reply With Quote

Old   March 5, 2014, 14:34
Default
  #11
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by agv10 View Post
But the dimension only gets enabled when I have connectors. I am starting from scratch by revolving the db semi-circle so I only have the sphere. At this point, can I enable the dimension or spacing without having connectors?

If I click 'connectors on database entities', I see the dimension get enabled but after I set a dimension, the 'domains on database' is still not enabled.
You're looking at the wrong dimension entry dialogue - not on the toolbar but in the Defaults panel. On the left side of Pointwise, is a panel with three tabs: List, Layers, Defaults. Click the Defaults tab. Within the Defaults panel, under Connectors are two entry entry dialogues: dimension and average ds. These are used to apply a non-zero dimension to newly created connectors including those created automatically by the Domains on Database command.
cnsidero is offline   Reply With Quote

Old   July 21, 2019, 08:55
Default
  #12
New Member
 
Miri
Join Date: Apr 2019
Posts: 10
Rep Power: 6
mathmech is on a distinguished road
When I finally run the extrude the intersection points of the domains extrudes longer than the rest of domain which results in little pyramidal bumps on the surface. If I run like this for more steps Jacobian eventually becomes positive skew and extrusion stops. What might be the reason?
Attached Images
File Type: png Screenshot from 2019-07-21 21-56-17.png (131.3 KB, 77 views)
File Type: png Screenshot from 2019-07-21 21-56-37.png (42.4 KB, 74 views)
File Type: png Screenshot from 2019-07-21 22-02-52.png (16.8 KB, 34 views)
mathmech is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] meshing a sphere - large deviation from perfect sphere murx ANSYS Meshing & Geometry 25 August 15, 2012 12:37
[Commercial meshers] Native OpenFOAM interface in Pointwise cnsidero OpenFOAM Meshing & Mesh Conversion 41 May 20, 2012 18:30
[snappyHexMesh] Meshing a sphere with snappyHexMesh Cyberholmes OpenFOAM Meshing & Mesh Conversion 2 July 19, 2011 16:46
Native OpenFOAM interface in Pointwise Chris Sideroff Main CFD Forum 0 January 16, 2009 12:37
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37


All times are GMT -4. The time now is 15:58.