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

Something wrong running rhoSimpleFoam (urgent!)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2017, 14:22
Default Something wrong running rhoSimpleFoam (urgent!)
  #1
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Dear all,

I am using rhoSimpleFoam to simulate the flow around NHLD-2D, which is a multi-element airfoil. The flow condition is Ma=0.197, Re=3.52e6, T=288, Pref=101755.6Pa, AOA=0 degree. And the version of my OpenFOAM is 4.1.

Now, the same error always occur, please see the picture attached below. And I have already tried many methods, but I still cannot get it done. I am not sure whether I set the wrong value, wrong schemes (stuffs in the fvScheme), or wrong solution method (stuffs in fvSolution).

As such, I upload my case folder, except the mesh file(it is too big, but if you need it, please let me know). Actually, the quality of my mesh is really good. It could not be caused by mesh.

As far as I am concerned, I think this error is related to thermodynamic parameters.

Please help me, it is a little bit urgent. Thanks in advance.

Best Regards,
Peter
Attached Images
File Type: png ERROR.png (83.1 KB, 50 views)
Attached Files
File Type: zip 0.zip (10.9 KB, 14 views)

Last edited by PeterShi; February 27, 2017 at 20:39.
PeterShi is offline   Reply With Quote

Old   February 28, 2017, 07:25
Default
  #2
Member
 
W.T
Join Date: Oct 2012
Posts: 35
Rep Power: 14
dybuk is on a distinguished road
Hi PeterShi
Often on early iterations of compressible solvers temperature/energy equation produces unphysical values(negative temperature) if fields are not physicly initialized. Almost always "soft start" helps with this issue.
Try set inlet velocity conditions to uniformFixedValue and set small velocity on first iterations ramping to desired velocity in 100-500 iteration.
Something like this:
Code:
inlet
{
    type            uniformFixedValue;
    uniformValue    table
    (
        (0 (1 0 0)
        (200  (67.014 0 0)
    );
}
dybuk is offline   Reply With Quote

Old   February 28, 2017, 07:39
Default
  #3
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by dybuk View Post
Hi PeterShi
Often on early iterations of compressible solvers temperature/energy equation produces unphysical values(negative temperature) if fields are not physicly initialized. Almost always "soft start" helps with this issue.
Try set inlet velocity conditions to uniformFixedValue and set small velocity on first iterations ramping to desired velocity in 100-500 iteration.
Something like this:
Code:
inlet
{
    type            uniformFixedValue;
    uniformValue    table
    (
        (0 (1 0 0)
        (200  (67.014 0 0)
    );
}
Hello Dybuk,

I copied your code and pasted it exactly as you showed. However, an error message came out:
--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'uniformValue' on line 29 and ending at line 58"

file: /home/peter/OpenFOAM/Peter-4.1/2017/NHLP/rhoSimpleFoamrevised/3rrr/0/0/U at line 58.

From function void Foam:rimitiveEntry::readEntry(const Foam::dictionary&, Foam::Istream&)
in file db/dictionary/primitiveEntry/primitiveEntryIO.C at line 189.

FOAM exiting

I am unfamiliared with this type of bc, what is going wrong?

Many thanks.

Best,
Peter
PeterShi is offline   Reply With Quote

Old   February 28, 2017, 08:19
Default
  #4
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
There is a bracket mis-match.
floquation is offline   Reply With Quote

Old   February 28, 2017, 08:22
Default
  #5
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by floquation View Post
There is a bracket mis-match.
Hi Kevin,

What do you mean by that? Could you please give me more details?

Thanks in advance, and nice to meet another guy form Delft!

Best,
Peter
PeterShi is offline   Reply With Quote

Old   February 28, 2017, 08:59
Default
  #6
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Hi,

I got it, the right form should be:
inlet
{
type uniformFixedValue;
uniformValue table
(
(0(1.0 0 0))
(200(67.0142924 0 0))
);
}

But the same error message as I showed at the very beginning came out again. And I tried other values instead of one, unfortunately, it still does not work out.

Any other advice?

Thanks.
Peter
PeterShi is offline   Reply With Quote

Old   March 1, 2017, 09:34
Default
  #7
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by dybuk View Post
Hi PeterShi
Often on early iterations of compressible solvers temperature/energy equation produces unphysical values(negative temperature) if fields are not physicly initialized. Almost always "soft start" helps with this issue.
Try set inlet velocity conditions to uniformFixedValue and set small velocity on first iterations ramping to desired velocity in 100-500 iteration.
Something like this:
Code:
inlet
{
    type            uniformFixedValue;
    uniformValue    table
    (
        (0 (1 0 0)
        (200  (67.014 0 0)
    );
}
Hello Dybuk,

Thanks. Do you have additional suggestions regarding to my case?

Best,
Peter
PeterShi is offline   Reply With Quote

Old   March 1, 2017, 10:21
Default
  #8
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
I don't know what is wrong with your case, but I do agree that dybuk's solution is a very plausible cause for an initial instability (assuming that your BC are not wrong etc.).
However, I have never worked with his method of achieving the ramping, and I'm not sure if it does the trick by just reading it. (For that purpose, I'd use groovyBC.)

I'd try the following:
  1. Set a very low writeInterval.
  2. In paraview, observe whether the inlet velocity does indeed ramp up, and not jump up after 200 iterations.
If yes (it does ramp), make the ramp slower.
If no (it jumps up), go for groovyBC for the same purpose.
floquation 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
[BEGINNER] Problems running tutorials (incompressible) in OF 2.xx Jaro OpenFOAM Running, Solving & CFD 8 March 16, 2016 08:27
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 08:52
Tutorial is not running on star-CD version 3.2 Arnab Siemens 0 August 30, 2004 16:43
star is not running the simulation in windows Arnab Siemens 1 August 2, 2004 03:40


All times are GMT -4. The time now is 20:59.