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

SimpleFoam and Time Step continuity errors

Register Blogs Community New Posts Updated Threads Search

Like Tree29Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2009, 13:53
Default Your run is converged. The cum
  #21
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Your run is converged. The cumulative error is just that, the sum of all errors over previous iterations. For a steady state run, you don't have to worry about it. As long as the local and global errors are small, you will be fine.
fede32 and Cris Sarmiento like this.
eugene is offline   Reply With Quote

Old   March 3, 2009, 14:28
Default Hello Eugene, Thanks for yo
  #22
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Hello Eugene,

Thanks for your reply. ok I understand that I shouldn't consider the cumulative error. But is there anyway to automatically ignore this sum and only consider that the convergence is dependent on the residuals for U and p? I would like that the run would precisely stop at the moment in which the residual are bellow the limit so I could get information about the number of iterations needed, and ClockTime.

Thanks again,
Eduarda
eduardasilva is offline   Reply With Quote

Old   March 4, 2009, 05:37
Default Good morning, Can someone g
  #23
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Good morning,

Can someone give me a suggestion on how to overcome the problem posted previously by me?

Thank you very much for your time.

Eduarda
eduardasilva is offline   Reply With Quote

Old   March 4, 2009, 06:25
Default Hi, there was a good exampl
  #24
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17
tian is on a distinguished road
Hi,

there was a good example for convergence dependet on the residuals for U, p and T in the forum but you need to change the main code of simpleFoam.

Search for "BoussinesqBuoyantSimpleFoam":

http://openfoamwiki.net/index.php/Co...yantSimpleFoam

The excample used the file "fvSolution" for convergence:

SIMPLE
{
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
UConvergenceCriterion 1e-3;
pConvergenceCriterion 1e-2;
TConvergenceCriterion 1e-3;
}

You need to include 2 files in the main code: "convergenceCheck.H" and "initConvergenceCheck.H".

I do not know how to attach the files here. So if you need help give me your email...

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   March 4, 2009, 11:24
Default Dear thomas, I am also
  #25
Member
 
Leonardo Honfi Camilo
Join Date: Mar 2009
Location: Delft, Zuid Holland, The Netherlands
Posts: 60
Rep Power: 17
lhcamilo is on a distinguished road
Dear thomas,


I am also interest in those files, could you perhaps send them to me at lhcamilo@gmail.com .

At your discretion you might want to consider posting them on a file hosting website such as rapidshare.

anyway thanks in a advance

leo
lhcamilo is offline   Reply With Quote

Old   March 4, 2009, 11:59
Default Thanks Thomas. My e-mail: ana
  #26
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Thanks Thomas. My e-mail:
anaeduardasilva@gmail.com

Can you please tell me what changes do I need to make in the main code of simpleFoam?

Eduarda
eduardasilva is offline   Reply With Quote

Old   March 4, 2009, 16:32
Default Hi, The standard simpleFoam
  #27
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 215
Rep Power: 18
santos is on a distinguished road
Send a message via Skype™ to santos
Hi,

The standard simpleFoam solver already includes the files mentioned by Tian (lines 57 and 75 of simpleFoam.C).

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   March 4, 2009, 17:05
Default Hi, I upload my solver:
  #28
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17
tian is on a distinguished road
Hi,

I upload my solver:

http://rapidshare.com/files/20536685...eFoam.tar.html

in fvSolution you can use:

SIMPLE
{
nNonOrthogonalCorrectors 0;
UConvergenceCriterion 1e-2;
pConvergenceCriterion 1e-1;
}

Jose, that is true but I made some modifications.

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   March 4, 2009, 17:57
Default Hi Tian, I was going throug
  #29
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Hi Tian,

I was going through the code in this site
http://openfoamwiki.net/index.php/Co...yantSimpleFoam

I would like to know what is the exact difference between

TEqn().relax();

and T.relax();

I know former is Implicit relaxing the matrix.. But how exactly this is being done in OpenFOAM and the latter is explicit form relaxing the solution using previous iteration value...

I would like to know which of the two we should usually choose ...what is the advantages of the respective relaxation techniques...

Kindly throw some light on this...

Thanks

Regards

Vishal
SHUBHAM9595 likes this.
nandiganavishal is offline   Reply With Quote

Old   March 5, 2009, 06:40
Default Hello again, Thank you very
  #30
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Hello again,

Thank you very much Thomas. I was trying to compile the solver you sent using wmake nut I got an error saying.
make: *** No rule to make target `/home/USER/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/dimensionedDiagTensor.H ', needed by `simpleConvergenceFoam.dep'.

Any suggestion?

Thanks again.
Eduarda
eduardasilva is offline   Reply With Quote

Old   March 5, 2009, 07:29
Default Hi Eduarda, first use 'wcle
  #31
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Eduarda,

first use 'wclean' and then try again compiling the solver by 'wmake'.

Maybe that helps.

Kerstin
kbr is offline   Reply With Quote

Old   March 5, 2009, 07:36
Default Thanks, Now I have a new er
  #32
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Thanks,

Now I have a new error coming.

-lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -llduSolvers -lOpenFOAM -ldl -lm -o /home/eduarda/OpenFOAM/USER-1.5/applications/bin/linuxGccDPOpt/simpleConvergence Foam
/usr/bin/ld: cannot find -llduSolvers
collect2: ld returned 1 exit status
make: *** [/home/eduarda/OpenFOAM/USER/applications/bin/linuxGccDPOpt/simpleConvergenceFoa m] Error 1

Any help?
eduardasilva is offline   Reply With Quote

Old   March 5, 2009, 08:08
Default Hi Eduarda, I think it tell
  #33
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Eduarda,

I think it tells you that your lduSolver-library is missing or can't be found. Another possibility might be that in 'Make/options' there is a wrong source given, i.e. have a look at your file 'options' under 'EXE_INC'. There you should find '-I$(LIB_SRC)/lduSolvers'. Is it there? And under 'EXE_LIBS' you should find '-llduSolvers'.

Kerstin
kbr is offline   Reply With Quote

Old   March 5, 2009, 08:22
Default Thank you so much Kerstin.
  #34
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Thank you so much Kerstin.

The file "options" looks like:

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/turbulenceModels/RAS \
-I$(LIB_SRC)/transportModels

EXE_LIBS = \
-lincompressibleRASModels \
-lincompressibleTransportModels \
-lfiniteVolume \
-lmeshTools \
-llduSolvers \
/* $(LIB_WM_OPTIONS_DIR)/libfbsdmalloc.o */
eduardasilva is offline   Reply With Quote

Old   March 5, 2009, 08:25
Default Just to add that the options f
  #35
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Just to add that the options file is exactly the same as in simpleFoam.

Thanks.
eduardasilva is offline   Reply With Quote

Old   March 5, 2009, 08:45
Default Hi Eduarda, is in your '/ho
  #36
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Eduarda,

is in your '/home/eduarda/OpenFOAM/USER-1.5/lib/linux**GccDPOpt/' directory a file available with name 'liblduSolvers.so'? If not it's missing, if yes, I have no other idea which problem it could be.

Kerstin
kbr is offline   Reply With Quote

Old   March 5, 2009, 08:53
Default hello again Kerstion, And t
  #37
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
hello again Kerstion,

And thanks.

The directory '~/OpenFOAM/USER-1.5/lib/linuxGccDPOpt$' is empty.

The directory '~/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt' doesn't include that file either.

How can I get the file?

Eduarda
eduardasilva is offline   Reply With Quote

Old   March 5, 2009, 09:30
Default Hi Eduarda, I think I under
  #38
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
Hi Eduarda,

I think I understand now the problem. I'm working under OF 1.4.1 and there this library exists. In OF 1.5 this library doesn't exist anymore. The solver you've got is possibly written in another version. I think that's the reason why you can't compile it without some modifications.

I'm sorry I can't help you really.

Kerstin

Kerstin
kbr is offline   Reply With Quote

Old   March 5, 2009, 09:46
Default Hi Eduarda, can you compile
  #39
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 122
Rep Power: 17
tian is on a distinguished road
Hi Eduarda,

can you compile the original simpleFoam solver without trouble? If yes, you can replace four files from the simpleConvergenceFoam to the original folder (make a copy before):

initConvergenceCheck.H
convergenceCheck.H
pEqn.H
UEqn.H

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   March 5, 2009, 13:54
Default Hello Kerstin and Thomas, T
  #40
New Member
 
Ana Eduarda Sa Silva
Join Date: Mar 2009
Posts: 13
Rep Power: 17
eduardasilva is on a distinguished road
Hello Kerstin and Thomas,

Thank you very much for your help! It is working perfectly now.

Eduarda
eduardasilva 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
Time step size and max iterations per time step pUl| FLUENT 31 October 23, 2020 23:50
Time step continuity anja OpenFOAM Running, Solving & CFD 37 June 22, 2020 12:16
SELECTING TIME STEP SIZE, NUMBER OF TIME STEP NITUL KALITA FLUENT 2 November 22, 2012 09:28
Speedup with GAMG for simplefoam forward Step tutlhino OpenFOAM Running, Solving & CFD 9 June 24, 2007 22:44
Relation of computational time step with real time Salman Main CFD Forum 2 August 3, 2005 15:13


All times are GMT -4. The time now is 17:06.