CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] Difficulties in creating different relaxation zones

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2016, 03:43
Default Difficulties in creating different relaxation zones
  #1
New Member
 
CH Xu
Join Date: Jan 2013
Posts: 6
Rep Power: 14
neytirilover is on a distinguished road
Hi Niels,

I've been trying to modify the tutorial case "waveFlume", and encounterred this problem:

I was trying to use a larger mesh size for the relaxation zones, i.e.: the entire length of the domain was 18m and the first and last 5m was relaxation zone, I was trying to use a mesh size of 1cm*0.5cm in the section of 5 to 13m, and use a mesh size of 2cm*0.5cm inside the relaxation zones. I did this using three mesh blocks in blockMeshDict (please see attached).

The problem is now waves2Foam seemed to recognize the end of the first block, or the beginning of the second block (at x=5m) as the outlet relaxation zone, and no wave can propagate into x=5 to 13m domain. Can you help me to determine where the problem is? I attached the blockMeshDict file for your reference.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices        
(
    (  0 -0.4 0 )	//0
    ( 10 -0.4 0 )	//1
    (  0  0.2 0 )	//2
    ( 10  0.2 0 )	//3
                 
    (  0 -0.4 0.1 )	//4
    ( 10 -0.4 0.1 )	//5
    (  0  0.2 0.1 )	//6
    ( 10  0.2 0.1 )  	//7

    (  10 -0.4 0 )	//8
    ( 11 -0.4 0 )	//9
    (  10  0.2 0 )	//10
    ( 11  0.2 0 )	//11
                 
    (  10 -0.4 0.1 )	//12
    ( 11 -0.4 0.1 )	//13
    (  10  0.2 0.1 )	//14
    ( 11  0.2 0.1 ) 	//15

    (  11 -0.4 0 )	//16
    ( 18 -0.4 0 )	//17
    (  11  0.2 0 )	//18
    ( 18  0.2 0 )	//19
                 
    (  11 -0.4 0.1 )	//20
    ( 18 -0.4 0.1 )	//21
    (  11  0.2 0.1 )	//22
    ( 18  0.2 0.1 )     //23               
);

blocks          
(
    hex (0 1 3 2 4 5 7 6) ( 1000 120 1 ) simpleGrading (1 1 1)
    hex (8 9 11 10 12 13 15 14) ( 200 120 1 ) simpleGrading (1 1 1)
    hex (16 17 19 18 20 21 23 22) ( 700 120 1 ) simpleGrading (1 1 1)
);

edges           
(
);

patches         
(
    patch inlet
    (
        (0 4 6 2)
    )
    wall bottom 
    (
        (0 1 5 4)
	(8 9 13 12)
	(16 17 21 20)
    )
    patch outlet
    (
        (17 21 23 19)
    )

    patch atmosphere 
    (
        (2 3 7 6)
	(10 11 15 14)
	(18 19 23 22)
    )
    
    empty frontBack
    (
        (0 1 3 2)
	(8 9 11 10)
	(16 17 19 18)
        (4 5 7 6)
        (12 13 15 14)
        (20 21 23 22)
    )
);

mergePatchPairs
(
);

// ************************************************************************* //
Best Regards,

Conghao
neytirilover is offline   Reply With Quote

Old   March 24, 2016, 03:51
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 38
ngj will become famous soon enoughngj will become famous soon enough
Hallo Conghao,

Your blockMeshDict does not match what you describe in terms of coordinates. Please use relaxationLayout to visualise your relaxation zones. That would enable you to debug the problem.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lets talk about relaxation factor optimization chriss85 OpenFOAM Running, Solving & CFD 36 April 3, 2025 16:45
[waves2Foam] Trying to implement relaxation zones in waveDyMFoam gautami OpenFOAM Community Contributions 4 March 3, 2017 11:10
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
[ICEM] Problem in creating different zones in ICEM-CFD samurai_01 ANSYS Meshing & Geometry 2 November 28, 2012 13:41
Creating Zones from the stl file johnchang OpenFOAM 0 June 3, 2010 09:39


All times are GMT -4. The time now is 21:03.