|
[Sponsors] |
April 6, 2011, 09:55 |
Residual Field OpenFOAM
|
#1 |
Member
José
Join Date: Jan 2011
Posts: 73
Rep Power: 15 |
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é |
|
April 7, 2011, 13:26 |
|
#2 |
Member
Elisabet Mas de les Valls
Join Date: Mar 2009
Location: Barcelona, Spain
Posts: 64
Rep Power: 17 |
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 |
|
April 12, 2011, 04:16 |
|
#3 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
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 |
|
April 12, 2011, 04:41 |
|
#4 |
Member
José
Join Date: Jan 2011
Posts: 73
Rep Power: 15 |
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é |
|
April 12, 2011, 04:57 |
|
#5 |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Hello,
is simpleFoamResiduals what you are looking for? mad |
|
April 12, 2011, 05:12 |
|
#6 |
Member
José
Join Date: Jan 2011
Posts: 73
Rep Power: 15 |
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? |
|
April 12, 2011, 05:28 |
|
#7 | |
Senior Member
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23 |
Quote:
mad |
||
May 19, 2011, 06:09 |
|
#8 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
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 09:32. |
|
May 19, 2011, 09:10 |
|
#9 |
Member
José
Join Date: Jan 2011
Posts: 73
Rep Power: 15 |
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é |
|
May 19, 2011, 09:18 |
|
#10 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
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? |
|
May 19, 2011, 09:24 |
|
#11 |
Member
José
Join Date: Jan 2011
Posts: 73
Rep Power: 15 |
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é |
|
May 19, 2011, 09:31 |
|
#12 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
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. |
|
May 31, 2011, 09:48 |
|
#13 | |
Senior Member
Florian Krause
Join Date: Mar 2009
Location: Munich
Posts: 103
Rep Power: 17 |
Quote:
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 |
||
January 27, 2015, 16:19 |
simpleFoamResidual
|
#14 |
New Member
Dan
Join Date: Nov 2013
Posts: 27
Rep Power: 13 |
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 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 |
|
August 18, 2017, 04:45 |
|
#15 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
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:
Thanks in advance, Martin |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transsonic nozzle with rhoSimpleFoam | Unseen | OpenFOAM Running, Solving & CFD | 8 | July 1, 2022 07:54 |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 14:52 |
lift and drag on ship superstructures | vaina74 | OpenFOAM Running, Solving & CFD | 3 | June 8, 2010 13:30 |
ForcesCoeffs | ronaldo | OpenFOAM | 4 | September 14, 2009 08:11 |
Automatic Mesh Motion solver | michele | OpenFOAM Running, Solving & CFD | 10 | September 26, 2005 09:21 |