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

Choosing a solver.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2018, 06:10
Default Choosing a solver.
  #1
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
DANIEL NDIRANGU is on a distinguished road
I am a complete beginner. I am trying so simulate water flow in a simple y pipe whose branches are 90° apart. I have already drawn the geometry in Salome and exported it to Openfoam in unv format. I used ideasUnvToFoam to make it openFoam compatible. I tried using icoFoam but I got errors. I suspect it's the boundary conditions in the u and p files. Anyone with a tip on how to go about this? Thanks
DANIEL NDIRANGU is offline   Reply With Quote

Old   November 12, 2018, 07:59
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by DANIEL NDIRANGU View Post
Anyone with a tip on how to go about this? Thanks
Hey Daniel,
as in most cases when you want a helpful answer, provide more details. We know you tried icoFoam but failed, but what did the error message say? Do you try to simulate a transient flow or a steady one? Which boundary conditions do you use? Which fvSolution settings and which fvSchemes settings?

If you provide at least these infos you might get a more detailed answer and in a less amout of time. Either upload your files as an attachment or post their content in [code*][*/code] brackets (without the *).
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   November 16, 2018, 03:53
Default
  #3
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
DANIEL NDIRANGU is on a distinguished road
Thanks Robert.

I have attached a screenshot of the error message. I tried to simulate a transient flow. My boundary conditions were; Pressure Boundary Conditions(Inlet- fixedValue, Outlet-fixedValue, walls-zeroGradient) and Velocity Boundary Conditions(Inlet-pressureInletVelocity, Outlet-zeroGradient, Walls-fixedValue). As for the fvsolution and fvSchemes settings, what settings are appropriate for my case? I run my simulation with the fvsolution and fvschemes as copied directly from the cavity case in icoFoam.

Any help or correction will be appreciated. I am an undergrad doing my final year project and I need to use openfoam
DANIEL NDIRANGU is offline   Reply With Quote

Old   November 16, 2018, 06:01
Default
  #4
New Member
 
Batu
Join Date: Dec 2016
Location: Turkey
Posts: 5
Rep Power: 9
BM_CFD is on a distinguished road
Your screenshot is not shown here. You can use command icoFoam > log.Error and this will create a file named as log.Error. You can post that error in here then we can see your problem. I suspect that your problem is related to the boundary file located in the constant/polyMesh directory. After you converged your mesh into the OpenFOAM format, you should look into your boundary file. Name of your boundaries in 0/U and 0/p must be same with the boundary file in the constant directory.


Batu

Last edited by BM_CFD; November 16, 2018 at 06:01. Reason: -
BM_CFD is offline   Reply With Quote

Old   November 16, 2018, 06:03
Default
  #5
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by DANIEL NDIRANGU View Post
Thanks Robert.

I have attached a screenshot of the error message. I tried to simulate a transient flow. My boundary conditions were; Pressure Boundary Conditions(Inlet- fixedValue, Outlet-fixedValue, walls-zeroGradient) and Velocity Boundary Conditions(Inlet-pressureInletVelocity, Outlet-zeroGradient, Walls-fixedValue). As for the fvsolution and fvSchemes settings, what settings are appropriate for my case? I run my simulation with the fvsolution and fvschemes as copied directly from the cavity case in icoFoam.

Any help or correction will be appreciated. I am an undergrad doing my final year project and I need to use openfoam
Hi Daniel,
i can't see you screenshot, but we can start with the the more obvious parts:
Pressure boundary condition: Inlet shoud be zeroGradient, while the outlet ist fixedValue.
Velocity: For your outlet try:

Code:
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   November 24, 2018, 02:32
Default
  #6
New Member
 
Join Date: Nov 2018
Posts: 4
Rep Power: 7
DANIEL NDIRANGU is on a distinguished road
Hello guys,
Sorry for not getting back earlier but Robert's solution worked. I had edited the boundary file incorrectly.
Thanks a lot
DANIEL NDIRANGU 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
Population Balance Modeling (PBM) - Ansys Fluent chittipo FLUENT 164 November 18, 2023 11:54
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
3d vof Smaras FLUENT 2 February 19, 2013 06:58
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 14:08


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