Residual Field OpenFOAM
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é |
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 |
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. |
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é |
Hello,
is simpleFoamResiduals what you are looking for? mad |
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? |
Quote:
mad |
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. |
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é |
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? |
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é |
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. |
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 |
simpleFoamResidual
Hello everybody,
I have been trying to use the simpleFoamResidual but I had this error message: Code:
--> FOAM FATAL IO ERROR: 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 |
2 Attachment(s)
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 |
All times are GMT -4. The time now is 09:11. |