CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Cannot view arc edge in ParaView

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

Reply
 
LinkBack Thread Tools 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: 3
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,748
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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: 3
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,748
Blog Entries: 39
Rep Power: 103
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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: 3
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

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
Paraview User defined view prapanj ParaView 3 January 3, 2014 21:54
ParaView 3.6.1 & 3.7.0: Can't view STL files johannes OpenFOAM Paraview & paraFoam 2 December 3, 2009 15:07
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 01:07
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 07:09.