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

Residual Field OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 6, 2011, 08:55
Default Residual Field OpenFOAM
  #1
jms
Member
 
JosÚ
Join Date: Jan 2011
Posts: 73
Rep Power: 6
jms is on a distinguished road
Dear all,

Is it possible with OpenFOAM to plot the residual Field as it can be done with other solvers? i.e.--> plot the residuals all over the domain to see where the case is not converging very well.

Thanks,

JosÚ
jms is offline   Reply With Quote

Old   April 7, 2011, 12:26
Default
  #2
Member
 
Elisabet Mas de les Valls
Join Date: Mar 2009
Location: Barcelona, Spain
Posts: 61
Rep Power: 8
elisabet is on a distinguished road
Hi JosÚ,

I'm sure it's possible but I don't know the answer right now.

I usually evaluate my own defined errors (as volScalarField) and write them to see what happens.

elisabet
elisabet is offline   Reply With Quote

Old   April 12, 2011, 03:16
Default
  #3
Member
 
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 7
kurne is on a distinguished road
Dear JosÚ

Yes, you can plot the residual which you are getting in the OpenFOAM.Look at the page number U-174 of the user guide.

You can plot the residuals with the help of gnu plot.First you have to install it and then use syntax of it, to plot the graph of residuals.
__________________
Simulation Is Determination Of Imagination Towards Approximation «


Best Regards

Mubeen K Kurne
kurne is offline   Reply With Quote

Old   April 12, 2011, 03:41
Default
  #4
jms
Member
 
JosÚ
Join Date: Jan 2011
Posts: 73
Rep Power: 6
jms is on a distinguished road
Dear Kurne,

This page of the user guide talks about the graph residual vs time step. I am referring to a field (to be viewed in Paraview for instance) so one can see where the higher residuals are.

Thanks anyway.

Best Regards,

JosÚ
jms is offline   Reply With Quote

Old   April 12, 2011, 03:57
Default
  #5
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 12
maddalena is on a distinguished road
Hello,
is simpleFoamResiduals what you are looking for?

mad
maddalena is offline   Reply With Quote

Old   April 12, 2011, 04:12
Default
  #6
jms
Member
 
JosÚ
Join Date: Jan 2011
Posts: 73
Rep Power: 6
jms is on a distinguished road
I can not find anything in OF 1.7.1 called simpleFoamResiduals...
I have read in one thread that it was in v 1.5, is it also in 1.7.1?
jms is offline   Reply With Quote

Old   April 12, 2011, 04:28
Default
  #7
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 12
maddalena is on a distinguished road
Quote:
Originally Posted by jms View Post
I can not find anything in OF 1.7.1 called simpleFoamResiduals...
I have read in one thread that it was in v 1.5, is it also in 1.7.1?
You can download it for OF 1.5 and than modify it to make it compatible with 1.7.1. It is straight forward, see Local residuals

mad
maddalena is offline   Reply With Quote

Old   May 19, 2011, 05:09
Default
  #8
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 152
Rep Power: 7
Anne Lincke is on a distinguished road
Here is also a link with the changes due to the change of turbulenceModels from Henrik Rusche.

http://openfoam-extend.svn.sourcefor...eFoamResidual/
####EDIT####
I meant this link

http://openfoam-extend.git.sourcefor...leFoamResidual
###############

I copied the changes and compiled with ./Allwmake in the main Openfoam 1.7.0 directory. Everything works now.

Last edited by Anne Lincke; May 19, 2011 at 08:32.
Anne Lincke is offline   Reply With Quote

Old   May 19, 2011, 08:10
Default
  #9
jms
Member
 
JosÚ
Join Date: Jan 2011
Posts: 73
Rep Power: 6
jms is on a distinguished road
Hi Anne!

Thanks for the link. I have downloaded the files and recompiled them but I get an error related with the turbulenceModel. I change some lines in the "options" file in order to try to fix it but it does not work. Could you please upload the folder where you have simpleFoamResiduals defined?

Which version of OpenFOAM are you using? I am using OF 1.7.1

Thanks a lot in advance.

Greetings,

JosÚ
jms is offline   Reply With Quote

Old   May 19, 2011, 08:18
Default
  #10
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 152
Rep Power: 7
Anne Lincke is on a distinguished road
Hey JosÚ,

I added simpleFoamResiduals to the folder

~/OpenFOAM/OpenFOAM-1.7.0/applications/utilities/errorEstimation

So as you can see I am using OpenFOAM-1.7.0

What kind of error do you get when compiling?
How do you compile?
Anne Lincke is offline   Reply With Quote

Old   May 19, 2011, 08:24
Default
  #11
jms
Member
 
JosÚ
Join Date: Jan 2011
Posts: 73
Rep Power: 6
jms is on a distinguished road
Hi Anne,
Thank you for the fast answer.

I compile with wclean - wmake. I cannot add it to the folder you specify because I am running using the cluster of the university. Then I can not edit files there.

The error I get is "turbulenceModel is not declared in this scope"

I try to check how simpleFoam is defined as Maddalena says. So I change turbulenceModel.h by RASModel.H and it does not work.
I also try to add the aprent folder of turbulentModel.h without success.

Any other ideas?

Thanks!

JosÚ
jms is offline   Reply With Quote

Old   May 19, 2011, 08:31
Default
  #12
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 152
Rep Power: 7
Anne Lincke is on a distinguished road
Hey,
I think I copied the wrong link. I will edit it as soon as possible.

At this link

http://openfoam-extend.git.sourcefor...leFoamResidual

is the change of the code fitting to OpenFOAM 1.6

You have to change Make/options and a path and some lines in the main file simpleFoamResiduals.C as it is described in the link.
When I compiled with wclean and wmake, I got some errors, but when I ran ./Allwmake, everything worked.

I hope this will help.
Anne Lincke is offline   Reply With Quote

Old   May 31, 2011, 08:48
Default
  #13
Senior Member
 
Florian Krause
Join Date: Mar 2009
Location: Munich
Posts: 103
Rep Power: 8
florian_krause is on a distinguished road
Quote:
Originally Posted by Anne Lincke View Post
Hey,
I think I copied the wrong link. I will edit it as soon as possible.

At this link

http://openfoam-extend.git.sourcefor...leFoamResidual

is the change of the code fitting to OpenFOAM 1.6

You have to change Make/options and a path and some lines in the main file simpleFoamResiduals.C as it is described in the link.
When I compiled with wclean and wmake, I got some errors, but when I ran ./Allwmake, everything worked.

I hope this will help.
Hey Jose,
I just downloaded the simpleFoamResidual code you can find following the above link (Thanks Anne!) and compiled it with wmake. I am using OpenFOAM-1.7.x. The only thing I had to do, was to create a ./Make/files file

simpleFoamResidual.C
EXE = $(FOAM_USER_APPBIN)/simpleFoamResidual


I have OpenFOAM also installed on a server, so just I put it in florian/OpenFOAM/florian-1.7.x/.../simpleFoamResidual directory and compiled it.

Best,
Florian
florian_krause is offline   Reply With Quote

Old   January 27, 2015, 16:19
Default simpleFoamResidual
  #14
New Member
 
Dan
Join Date: Nov 2013
Posts: 4
Rep Power: 3
Daniel Suarez Cambra is on a distinguished road
Hello everybody,

I have been trying to use the simpleFoamResidual but I had this error message:

Code:
 --> FOAM FATAL IO ERROR: 
cannot find file

file: /home/dan/OpenFOAM/.../TUR6/constant/turbulenceProperties at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
I have read there is as issue with the 'turbulence' that somehow changed its syntaxis. I got the utility from here:

http://sourceforge.net/p/openfoam-ex...eFoamResidual/

I dont know whether the error message is due to some code arrangement that I have to do or instead I need to configure something in my case.

Thanks in advance

Dan
Daniel Suarez Cambra is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
transsonic nozzle with rhoSimpleFoam Unseen OpenFOAM Running, Solving & CFD 7 April 16, 2014 03:38
Velocity blows up suddenly after 30,000+ iterations lordvon OpenFOAM 14 October 27, 2010 11:13
lift and drag on ship superstructures vaina74 OpenFOAM Running, Solving & CFD 3 June 8, 2010 12:30
ForcesCoeffs ronaldo OpenFOAM 4 September 14, 2009 07:11
Automatic Mesh Motion solver michele OpenFOAM Running, Solving & CFD 10 September 26, 2005 08:21


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