CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

No change in domain parameters(u,p_rgh, alphawater) after simulation getting executed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2024, 04:44
Default No change in domain parameters(u,p_rgh, alphawater) after simulation getting executed
  #1
New Member
 
S Shobhit
Join Date: Sep 2024
Posts: 2
Rep Power: 0
shobhit21 is on a distinguished road
Hello

I have recently started learning openFoam. After a few tutorials I tried to simulate a test case of my own. I am trying to simulate a dam spill way. I was able to generate mesh using gmsh and used it with openFoam interFoam solver using k-Epsilon turbulence model. I have setup 0, constant and system files.

I checked the mesh using "checkMesh" which gave me the output "Mesh OK"

Then i set up the alpha.water to initiate the simulation from a predefined state where the water will be filled behind the spillway using "setFields". Analyzing the flow using paraFoam, I could visualize the alpha.water in the desired zone.

With decomposePar, I was able to divide the work into 4 processors and then execute the simulation using: "mpirun -np 4 interFoam -parallel" and then "reconstructPar" to reconstruct the outputs.

Observations:
1. During simulation, max and min courant No is 0.
2. The simulation ends in few minutes when the deltaT :0.005
3. paraFoam Analysis shows no changes in any parameter with time.

I am attaching the files for reference.
https://drive.google.com/drive/folde...usp=drive_link
shobhit21 is offline   Reply With Quote

Old   Yesterday, 08:41
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 722
Rep Power: 14
Tobermory will become famous soon enough
Looking at your setFields:

Code:
regions
(
    boxToCell
    {
        box (-15500 0 0) (15500 25000 45000);
        fieldValues
        (
            volScalarFieldValue alpha.water 1
        );
    }
);
you are setting your initial water column to be 45km tall, and you have an initial time step of 0.02s. The simulation is working just fine - you wouldn't see any effects of gravity at that lengthscale in that time scale.

Go back to your gmsh mesh and rescale it so that the mesh is in metres, and not millimetres, then try run again (after adjusting your setFieldsDict).

Note that in 99.9999% of the cases, you should assume that OpenFOAM can only work in a fixed unit system (kg, m, s etc.)
Tobermory is offline   Reply With Quote

Old   Yesterday, 22:58
Default
  #3
New Member
 
S Shobhit
Join Date: Sep 2024
Posts: 2
Rep Power: 0
shobhit21 is on a distinguished road
Thanks for pointing that out.
I have scaled the mesh and rerun the simulation but still I could not see any changes in the flow. Now during the run there is a change in Courant number but no velocity or pressure changes or observable flow changes at different time intervals. I believe that I am making some mistake in the boundary conditions. In the image,the flow after 30 seconds of simulations the flow should come out of the spill way due to the initial velocity at the inlet. I would like to understand what mistake I am making here. I am uploading the case after the run for your reference.

https://drive.google.com/drive/folders/1wbkOT2a90v0qmttTw-8WWAVwy8r8ijCB?usp=drive_link
Thanks in advance.
Attached Images
File Type: png Screenshot from 2024-09-24 08-35-08.png (19.6 KB, 6 views)

Last edited by shobhit21; Yesterday at 23:12. Reason: Adding an image for clarification and correcting spellings
shobhit21 is offline   Reply With Quote

Old   Today, 12:09
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 722
Rep Power: 14
Tobermory will become famous soon enough
A couple of quick observations. Firstly your mesh is awful - for free surface modelling, you want good resolution across the surface, and typically this means using a hex mesh, not tets. This shouldn't prevent you getting a solution, although I have found that OpenFOAM doesn't deal well with tet meshes - it becomes rather unstable. If you want to persist with tets, then google to find more info on the fvSchemes and fvSolution settings that you'll need to use.

Coming back to your boundary conditions, you have set a fixedValue of 1 for alpha on the full height of your inlet plane ... which is not physical. That's why the contour in your attached picture jumps at the inlet plane. You need to use something else - eg variableHeightFlowRate. Check out the interFoam weirOverflow tutorial, which is basically doing the same flow scenario as yours.

Good luck!
Tobermory 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
VAWT simulation rotation domain steve20024 Main CFD Forum 0 March 2, 2015 03:37
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Help on simulation domain Derek Jing Main CFD Forum 3 June 6, 2002 20:21
Help on simulation domain Derek Jing CFX 0 June 5, 2002 08:35


All times are GMT -4. The time now is 16:32.