CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Cannot view arc edge in ParaView

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2010, 15:47
Default Cannot view arc edge in ParaView
  #1
New Member
 
Erlend Grotle
Join Date: Jan 2010
Posts: 2
Rep Power: 0
erlendg is on a distinguished road
I have tried several blockMesDict files trying to make a cylinder using arc. blockMesh seems to go fine, but the arc is not visible in paraview (version 3.6.1). Anyone experienced this ? I used an example from the user manual so I recon the use of arc should be ok.
erlendg is offline   Reply With Quote

Old   November 13, 2015, 13:09
Default
  #2
New Member
 
Ivan
Join Date: Oct 2015
Posts: 4
Rep Power: 11
iper88 is on a distinguished road
I had the same problem with paraview 4.1.0

It is at the moment just a 1 cell try.
BlockMesh code runs but it doesn't show any arc.

Code:
L 288;
D 88;
R 100;
B 722;
C 222;
alpha 35.0;
CapL 50;
Dd 50;
nzp -50;
zp 50;

//declaración de distancias

Fd #calc "10*$L";
Bd #calc "20*$L";
Ud #calc "8*$L";

Ax #calc "$Fd-$CapL";
Bx #calc "$Fd+$R-($R+$CapL)*cos(45.0)";
Cx #calc "$Fd+$R-$R*cos(45.0)";

//Dx #calc "$Fd+$R";
//Ex #calc "$Fd+$R+$B";

Cy #calc "$Dd+$R+$D";
Dy #calc "$Dd+$R+$D+($R+$CapL)*sin(45.0)";

//Gy #calc "$Dd+$L";

Hy #calc "$Dd+$D+$R+$R*sin(45.0)";

//Ly #calc "$Dd+$L+$CapL";


convertToMeters 0.001;

vertices
(
    ($Ax $Cy $nzp)
    ($Fd $Cy $nzp)
    ($Cx $Hy $nzp)
    ($Bx $Dy $nzp)
    ($Ax $Cy $zp)
    ($Fd $Cy $zp)
    ($Cx $Hy $zp)
    ($Bx $Dy $zp)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) //0

);

edges
(   arc 1 2 (#calc "$Fd+($R-$R*cos(20.0))" #calc "$Cy+$R*sin(20.0)" $nzp)
    
);

boundary
(

);

mergePatchPairs
(
);
I don't understand why this occurs.
Moreover, after perform checkMesh got 1 failure:
Code:
  ***Number of edges not aligned with or perpendicular to non-empty directions: 6
  <<Writing 8 points on non-aligned edges to set nonAlignedEdges
Can anyone help? thanks in advance.

Last edited by wyldckat; November 13, 2015 at 15:46. Reason: Changed [QUOTE][/QUOTE] to [CODE][/CODE]
iper88 is offline   Reply With Quote

Old   November 13, 2015, 15:50
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. Arcs, splines and other complex edges are only meshed when there are enough discretization points. In other words, with only 2 points, the arc cannot exist:
    Code:
    blocks
    (
        hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) //0
    
    );
  2. The error message refers to the fact that no patch was defined here:
    Code:
    boundary
    (
    
    );
    Therefore there is only one default patch, defined by default as of type "empty". Therefore, all 3 major directions are all empty and therefore there are no dimensions over which to solve the domain
My advice: start with a working mesh from a tutorial and gradually make changes and test what each change does to the mesh.
wyldckat is offline   Reply With Quote

Old   November 14, 2015, 11:37
Default
  #4
New Member
 
Ivan
Join Date: Oct 2015
Posts: 4
Rep Power: 11
iper88 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answers:
  1. Arcs, splines and other complex edges are only meshed when there are enough discretization points. In other words, with only 2 points, the arc cannot exist:
    Code:
    blocks
    (
        hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) //0
    
    );
  2. The error message refers to the fact that no patch was defined here:
    Code:
    boundary
    (
    
    );
    Therefore there is only one default patch, defined by default as of type "empty". Therefore, all 3 major directions are all empty and therefore there are no dimensions over which to solve the domain
My advice: start with a working mesh from a tutorial and gradually make changes and test what each change does to the mesh.
Thanks for your quick answer Bruno.

Your explanation has been very useful because I realized that just changing the number of cells per each direction (x' y'), arcs are drawn.
so I changed like this:

hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) //0

Thanks a lot.
Best regards
Ivan
iper88 is offline   Reply With Quote

Old   November 14, 2015, 11:44
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
Quote:
Originally Posted by iper88 View Post
hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (20 20 1) //0
That affects only the way the cells are distributed along their directions.
I hope you wanted to write this:
Code:
 hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) //0
Because this defines that 20 cells are to be used along the first 2 main directions of the block, and only 1 cell along the 3rd direction.
wyldckat is offline   Reply With Quote

Old   November 14, 2015, 12:22
Default
  #6
New Member
 
Ivan
Join Date: Oct 2015
Posts: 4
Rep Power: 11
iper88 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer:

That affects only the way the cells are distributed along their directions.
I hope you wanted to write this:
Code:
 hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) //0
Because this defines that 20 cells are to be used along the first 2 main directions of the block, and only 1 cell along the 3rd direction.
Of course, just a mistake while writing the post. I've already corrected. Thanks!
iper88 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
[blockMesh] Openfoam: Meshing, where do my defaultFaces come from syntex OpenFOAM Meshing & Mesh Conversion 19 December 10, 2018 08:21
[blockMesh] meshing a cylinder Nico A. OpenFOAM Meshing & Mesh Conversion 6 June 19, 2017 15:12
Help -> Meshing of a Cylinder for Pouseuille Flow fisherman05 Mesh Generation & Pre-Processing 0 February 18, 2013 00:14
Multiblocks Rider OpenFOAM 16 April 12, 2012 04:00
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 04:25.