CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Residual Field OpenFOAM (http://www.cfd-online.com/Forums/openfoam/86927-residual-field-openfoam.html)

jms April 6, 2011 08:55

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ť

elisabet April 7, 2011 12:26

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

kurne April 12, 2011 03: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.

jms April 12, 2011 03:41

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ť

maddalena April 12, 2011 03:57

Hello,
is simpleFoamResiduals what you are looking for?

mad

jms April 12, 2011 04:12

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?

maddalena April 12, 2011 04:28

Quote:

Originally Posted by jms (Post 303227)
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

Anne Lincke May 19, 2011 05:09

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.

jms May 19, 2011 08:10

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ť

Anne Lincke May 19, 2011 08:18

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?

jms May 19, 2011 08:24

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ť

Anne Lincke May 19, 2011 08:31

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.

florian_krause May 31, 2011 08:48

Quote:

Originally Posted by Anne Lincke (Post 308363)
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

Daniel Suarez Cambra January 27, 2015 16:19

simpleFoamResidual
 
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


All times are GMT -4. The time now is 16:26.