|
[Sponsors] |
September 19, 2014, 17:23 |
Patchfield error
|
#1 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type zeroGradient; } outlet { type fixedValue; value uniform 0; } top { type zeroGradient; } bottom { type zeroGradient; } cylinder { type zeroGradient; } sides { type empty; } } // ************************************************************************* // Last edited by wyldckat; September 21, 2014 at 16:19. Reason: Added [CODE][/CODE] |
|
September 20, 2014, 01:44 |
|
#2 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13 |
Could you post your test case?
|
|
September 20, 2014, 01:56 |
|
#3 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
Hi kmefun,
The test case is simple flow past a circular cylinder to observe laminar vortex shedding. I am using pisoFoam solver for this. 0>>p file I have given in older thread. 0>>U Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type fixedValue; value uniform (1 0 0); } outlet { type zeroGradient; } top { type slip; } bottom { type slip; } cylinder { type fixedValue; value uniform (0 0 0); } sides { type empty; } } // ************************************************************************* // Many thanks! Last edited by wyldckat; September 21, 2014 at 16:19. Reason: Added [CODE][/CODE] |
|
September 20, 2014, 02:01 |
|
#4 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
blockMeshDict
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( (-23 -25 0) //0 ( 23 -25 0) //1 (40 -25 0) //2 (-0.7071 -0.7071 0) //3 ( 0.7071 -0.7071 0) //4 (-0.7071 0.7071 0) //5 ( 0.7071 0.7071 0) //6 (-23 25 0) //7 ( 23 25 0) //8 (40 25 0) //9 (-23 -25 1) ( 23 -25 1) (40 -25 1) (-0.7071 -0.7071 1) ( 0.7071 -0.7071 1) (-0.7071 0.7071 1) ( 0.7071 0.7071 1) (-23 25 1) ( 23 25 1) (40 25 1) ); blocks ( hex (0 3 5 7 10 13 15 17) (200 60 1) simpleGrading (0.20 1 1) hex (1 4 3 0 11 14 13 10) (200 60 1) simpleGrading (0.20 1 1) hex (4 1 8 6 14 11 18 16) (200 100 1) simpleGrading (5 1 1) hex (6 8 7 5 16 18 17 15) (200 60 1) simpleGrading (5 1 1) hex (1 2 9 8 11 12 19 18) (100 100 1) simpleGrading (1 1 1) ); edges ( arc 3 5 (-1 0 0) arc 13 15 (-1 0 1) arc 4 6 (1 0 0) arc 14 16 (1 0 1) arc 5 6 (0 1 0) arc 15 16 (0 1 1) arc 3 4 (0 -1 0) arc 13 14(0 -1 1) ); boundary ( inlet { type wall; faces ( (17 7 0 10) ); } outlet { type wall; faces ( (9 19 12 2) ); } top { type wall; faces ( (8 7 17 18) (9 8 18 19) ); } bottom { type wall; faces ( (0 1 11 10) (1 2 12 11) ); } cylinder { type wall; faces ( (5 6 16 15) (16 6 4 14) (4 3 13 14) (3 5 15 13) ); } sides { type empty; faces ( (7 8 6 5) (7 5 3 0) (3 4 1 0) (8 1 4 6) (8 9 2 1) (18 17 15 16) (15 17 10 13) (14 13 10 11) (18 16 14 11) (19 18 11 12) ); } ); mergePatchPairs ( ); // ************************************************************************* // Any help would be appreciated Last edited by wyldckat; September 21, 2014 at 16:20. Reason: Added [CODE][/CODE] |
|
September 20, 2014, 12:38 |
|
#5 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13 |
blockMeshDict
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object blockMeshDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // convertToMeters 1; vertices ( (-23 -25 0) //0 ( 23 -25 0) //1 (40 -25 0) //2 (-0.7071 -0.7071 0) //3 ( 0.7071 -0.7071 0) //4 (-0.7071 0.7071 0) //5 ( 0.7071 0.7071 0) //6 (-23 25 0) //7 ( 23 25 0) //8 (40 25 0) //9 (-23 -25 1) ( 23 -25 1) (40 -25 1) (-0.7071 -0.7071 1) ( 0.7071 -0.7071 1) (-0.7071 0.7071 1) ( 0.7071 0.7071 1) (-23 25 1) ( 23 25 1) (40 25 1) ); blocks ( hex (0 3 5 7 10 13 15 17) (200 60 1) simpleGrading (0.20 1 1) hex (1 4 3 0 11 14 13 10) (200 60 1) simpleGrading (0.20 1 1) hex (4 1 8 6 14 11 18 16) (200 100 1) simpleGrading (5 1 1) hex (6 8 7 5 16 18 17 15) (200 60 1) simpleGrading (5 1 1) hex (1 2 9 8 11 12 19 18) (100 100 1) simpleGrading (1 1 1) ); edges ( arc 3 5 (-1 0 0) arc 13 15 (-1 0 1) arc 4 6 (1 0 0) arc 14 16 (1 0 1) arc 5 6 (0 1 0) arc 15 16 (0 1 1) arc 3 4 (0 -1 0) arc 13 14(0 -1 1) ); boundary ( inlet { type patch; faces ( (17 7 0 10) ); } outlet { type patch; faces ( (9 19 12 2) ); } Last edited by wyldckat; September 21, 2014 at 16:21. Reason: Added [CODE][/CODE] |
|
September 21, 2014, 15:41 |
|
#6 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
Thanks for the reply.... Tried this but we are getting the same error
|
|
September 21, 2014, 16:26 |
|
#7 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
Could you please take a look at this site. They have given a tutorial video and codes there. We are trying to run their exact code but getting this error.
http://www.comflics.de/2014/08/openf...-shedding.html Thanks! |
|
September 22, 2014, 17:32 |
|
#9 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
I don't know why I am getting this error.
Could you help me with a few points? 1. Which version of OpenFOAM did you use? 2. Did you clone it from GitHub or did you download the zip file? I am unable to do both so I opened every file and copy-pasted the content of all the files. Thanks a lot for your time! |
|
September 22, 2014, 17:54 |
|
#10 |
Member
Kaufman
Join Date: Jul 2013
Posts: 55
Rep Power: 13 |
I use OF 2.3
https://www.dropbox.com/s/ehb1f3hmub...dding.zip?dl=0 You can dowload the test case I ran above. |
|
September 22, 2014, 18:11 |
|
#11 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
This works! You are awesome!!
Thank you once again Now I will try to find why earlier it was not working. |
|
October 14, 2014, 05:25 |
|
#12 |
New Member
Vineet
Join Date: Sep 2014
Location: India
Posts: 10
Rep Power: 12 |
I have been trying to simulate the case for flow over oscillating rectangular cylinder. In the blockMeshdict file, I removed the arc commands and changed the dimensions so as to make the bluff body and ran the same code for stationary rectangular cylinder. It ran for a time step of 0.025 second and then exited with an error. Any ideas regarding this?
Thanks in advance |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |