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

Residual Field OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2011, 08:55
Default Residual Field OpenFOAM
  #1
jms
Member
 
José
Join Date: Jan 2011
Posts: 73
Rep Power: 15
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: 64
Rep Power: 17
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: 15
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: 15
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: 23
maddalena will become famous soon enough
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: 15
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: 23
maddalena will become famous soon enough
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 http://www.cfd-online.com/Forums/ope...tml#post281861

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: 168
Rep Power: 15
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: 15
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: 168
Rep Power: 15
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: 15
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: 168
Rep Power: 15
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: 17
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, 15:19
Default simpleFoamResidual
  #14
New Member
 
Dan
Join Date: Nov 2013
Posts: 23
Rep Power: 12
Danubi 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
Danubi is offline   Reply With Quote

Old   August 18, 2017, 03:45
Default
  #15
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Dear Foamers,

I have worked out a (yet semi-manual) adaptive mesh refinement technique to use with cfMesh. It works pretty well, despite the issue that I can't seem to find a native OpenFOAM routine or way to output the SPATIAL residual fields. So yet, I have to restrict myself to adaptive refinement based on physical quantities, i.e gradients etc.

After an intense web search some questions arose:
  • Is there really only the option to work with the external extension simpleFoamResidual to obtain a 3D residual field?
  • If so, as the name suggests, is it only usable in conjunction with the incompressible simpleFoam solver or also rhoSimpleFoam and others?
  • Is something in the pipeline for future OpenFOAM releases to remedy this 'shortcoming'?
I'm using OFv 4.1.


Thanks in advance,


Martin
Attached Images
File Type: jpg origMesh.jpg (125.5 KB, 76 views)
File Type: jpg adaptiveRefinement.jpg (138.6 KB, 69 views)
NablaDyn 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
transsonic nozzle with rhoSimpleFoam Unseen OpenFOAM Running, Solving & CFD 8 July 1, 2022 06:54
Velocity blows up suddenly after 30,000+ iterations lordvon OpenFOAM Running, Solving & CFD 15 October 19, 2015 13:52
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 08:23.