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

[blockMesh] trying to do a simple cylinder with the function arc but not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2018, 13:26
Default trying to do a simple cylinder with the function arc but not working
  #1
New Member
 
Carmelo Jesús Mentado Santana
Join Date: Aug 2018
Posts: 4
Rep Power: 7
Carmelo55 is on a distinguished road
I am trying to do a simple cylinder with the function arc but i don´t understand why it does not work.

error Foam
"
Create time

Creating block mesh from
"C:/OpenFOAM/18.06/Carmelo-dev/run/cavity/system/blockMeshDict"
Creating block edges


--> FOAM FATAL ERROR:
0

From function Foam::cylindricalCS Foam::blockEdges::arcEdge::calcAngle()
in file blockEdges/arcEdge/arcEdge.C at line 58.

FOAM aborting "

This is the code.

"
convertToMeters 0.1;

vertices
(
(0 0 0)
(1 0 0)
(1 1 0)
(0 1 0)
(0 0 0.1)
(1 0 0.1)
(1 1 0.1)
(0 1 0.1)
);

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

edges
( arc 0 1 (0.5 0 0)

);

boundary
(
movingWall
{
type wall;
faces
(
(3 7 6 2)
);
}
fixedWalls
{
type wall;
faces
(
(0 4 7 3)
(2 6 5 1)
(1 5 4 0)
);
}
frontAndBack
{
type empty;
faces
(
(0 3 2 1)
(4 5 6 7)
);
}
);

mergePatchPairs
(
); "


Thanks and Regards.
Carmelo55 is offline   Reply With Quote

Old   October 16, 2018, 03:53
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


I think because this "arc" you would like to define is a straight line. As I remember in the arc you have to define a point on the arc not the origin. If you define the origin and 2 points you still have 2 possibilities for the arc. So if I'm correct you have to define the 2 ends of the arc (this is correct in your case) and an additional point on the arc (your point will define a straight line).
simrego is offline   Reply With Quote

Old   October 17, 2018, 08:12
Default
  #3
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 7
yambanshee is on a distinguished road
as simrego said: the point specified with the arc command must be a point the arc passes through. In this case that would be (0.5 0.5 0).
Note; you also need to specify the arc between points 4 and 5 as (0.5 0.5 0.1)
yambanshee is offline   Reply With Quote

Old   October 17, 2018, 09:02
Thumbs up
  #4
New Member
 
Carmelo Jesús Mentado Santana
Join Date: Aug 2018
Posts: 4
Rep Power: 7
Carmelo55 is on a distinguished road
thanks all. i saw my mistake.
Carmelo55 is offline   Reply With Quote

Old   September 24, 2020, 15:27
Angry Same error
  #5
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Quote:
Originally Posted by Carmelo55 View Post
thanks all. i saw my mistake.
Please tell us your mistake.
HappyS5 is offline   Reply With Quote

Old   September 25, 2020, 00:11
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

The mistake was that all the 3 points [(0 0 0), (1 0 0) and (0.5 0 0)] all lie on the same straight line - you cannot get an arc out of them.

Instead of (0.5 0 0), it should be a point on the arc, for example (0.5 0.5 0)

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   September 26, 2020, 09:57
Default Input error
  #7
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
Hello,

For me, the error happened because my pointField.H programming was wrong, and my generated points were wrong.
HappyS5 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11


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