# simpleFoam for WATER

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

 March 5, 2014, 11:49 simpleFoam for WATER #1 Member   Join Date: Feb 2014 Posts: 57 Rep Power: 4 Hi, I want to simulate a water flow inside an injector by simpleFoam. I change nu => 1e-6 in constant/transportProperties. But the run failed! Do you have any explaination? Thanks T

 March 6, 2014, 05:54 #2 Senior Member   Alexey Matveichev Join Date: Aug 2011 Location: Nancy, France Posts: 1,419 Rep Power: 25 Hi, How to give enough info to get help Can you provide more details?

March 6, 2014, 12:54
simpleFoam - pressure driven water flow inside injector
#3
Member

Join Date: Feb 2014
Posts: 57
Rep Power: 4
Hi,

Here are the details I changed: BC and transportProperties in constant/

1/ The first thing is the BC:

for p
==================================

internalField uniform 0;

boundaryField
{
Inlet
{
type fixedValue;
value uniform 100;
// = P_inlet/rho_water = 100 000 Pa / 1000 kg/m3, is it right?
// or should I give 100 000 Pa instead?
}

Outlet
{
type fixedValue;
value uniform 0;
}

Symmetry
{
type symmetryPlane;
}

Wall
{
}
}

for U
==================================

internalField uniform (0 0 0);

boundaryField
{
Inlet
{
type pressureInletVelocity;
value uniform (0 0 0);
}

Outlet
{
}

Symmetry
{
type symmetryPlane;
}

Wall
{
type fixedValue;
value uniform (0 0 0);
}
}

2/ The second one is transportProperties

transportModel Newtonian;

nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;

// for the kinematic viscosity of water, right?

T

Quote:
 Originally Posted by alexeym Hi, How to give enough info to get help Can you provide more details?

 March 6, 2014, 13:07 #4 Senior Member   Alexey Matveichev Join Date: Aug 2011 Location: Nancy, France Posts: 1,419 Rep Power: 25 If you take a look at the units of pressure, they are m^2*s^-2, i.e. pressure/density, so you are right about value. Several things you forgot to mention: 0. Can you show the output of "But the run failed!"? 1. Are you sure that your mesh is OK? 2. What's in your fvSolution? 3. What's in your fvSchemes? 4. What's in your controlDict? In general "But the run failed!" can mean anything.

March 7, 2014, 04:46
#5
Member

Join Date: Feb 2014
Posts: 57
Rep Power: 4
Alexey,

The error I made was stupid: The value of epsilon in the initial conditions is wrong. That's why the simulation ran for several iterations and then stopped due to big discrepancies between time steps.

Hope this very "stupid experience" useful for new OpenFoamer like me!

Have a nice day!

T

Quote:
 Originally Posted by alexeym If you take a look at the units of pressure, they are m^2*s^-2, i.e. pressure/density, so you are right about value. Several things you forgot to mention: 0. Can you show the output of "But the run failed!"? 1. Are you sure that your mesh is OK? 2. What's in your fvSolution? 3. What's in your fvSchemes? 4. What's in your controlDict? In general "But the run failed!" can mean anything.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45 herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27 DanM OpenFOAM Running, Solving & CFD 11 January 5, 2013 07:21 spsb OpenFOAM 3 February 24, 2012 10:07 Pierpaolo OpenFOAM 1 May 8, 2010 03:08

All times are GMT -4. The time now is 00:51.