CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   adopting weirOverflow case (https://www.cfd-online.com/Forums/openfoam-solving/135501-adopting-weiroverflow-case.html)

twoofspade May 14, 2014 07:18

adopting weirOverflow case
 
2 Attachment(s)
Dear Friends,

I am OF beginner in the moment trying to solve my daily (1D) calculation of open channel hydraulics.

I am trying to solve a similar case by adopting the Example available in Tutorial folder --> Multiphase --> weirOverflow. It is a simple water flow to a channel that has some regulated obstructions. Well, name it a ecological pathway or precisely a fish ladder (Please see the picture attached). The geometry and mesh was built using salome meca. And during the first time steps, it stop runs.

Anyone would tell me, whether the tutorial's explanation for the specific case (weirOverflow) actually exist ? Or could anyone point me what I have done wrong to the model ?
Thank you very much for your time

Best Regards

Twoofspade

Attachment 30832

Attachment 30834

deniggo May 22, 2014 07:47

Hello,
I was working with similar open channel flows, but with OF 1.7. After a lot of fails, I discovered, that the interFoam solver is very sensitive to the mesh. For my case, the simulations ran stable with hexahedral mesh cells. So, try to not use tetrahedral cells. I suggest, to create your mesh with blockMesh by starting with a simple channel with some obstacles. Maybe that will help...

However, I wasn't working with OF 2.3. and I will transfer my old OF 1.7 cases to OF 2.3 by using the BCs of the weiroverflow.

Nico

nicolasastroza March 4, 2016 14:32

Reduce dimension of weirOverflow case
 
I need to modify the scale of this case to centimeters, and the boundary conditions according to expected values, but even refining the mesh, I failed the first iteration.
Please help me!

setFieldsDict:
PHP Code:

defaultFieldValues
(
    
volScalarFieldValue alpha.water 0
);

regions
(
    
boxToCell
    
{
        
box (-100 0 -100) (0 .2 100);

        
fieldValues
        
(
            
volScalarFieldValue alpha.water 1
        
);
    }
); 

initialConditions
PHP Code:

inletFlowRate        0.016;
pressure             0;
turbulentKE          1.04e-06;
turbulentEpsilon     1.25e-08;
#inputMode           merge 

blockMeshDict
PHP Code:

convertToMeters .01;
... 


vatavuk March 6, 2016 08:51

Hi Nicolás,

Perhaps I can help if you give more information:
Which version of openFOAM you are using? Are using the original weirOverflow tutorial or a modified one?

Best Regards,
Paulo

nicolasastroza March 6, 2016 13:20

Quote:

Originally Posted by vatavuk (Post 588280)
Hi Nicolás,

Perhaps I can help if you give more information:
Which version of openFOAM you are using? Are using the original weirOverflow tutorial or a modified one?

Best Regards,
Paulo

Hi Paulo, thanks for your help.
Well, i have OpenFoam 2.4.0 with the respective tutorials folder.
Thanks.


All times are GMT -4. The time now is 05:56.