CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Find maximum value in the domain (https://www.cfd-online.com/Forums/openfoam/101508-find-maximum-value-domain.html)

nandiganavishal May 5, 2012 19:11

Find maximum value in the domain
 
Dear Foamers,

I would like to know if there is any command to to get the maximum
value of a dependent variable in the domain.

For instance, if I am solving dc/dt = d^2c/dx^2 in a rectangular domain, is it
possible to print the maximum value of "c" in the domain at every
time. However, I do nott know where the maximum occurs in the domain apriori. Kindly let
me know !!

Thanks

Vishal

niaz May 6, 2012 01:33

Dear nandi
just add like this to your solver
Info<< "max-min rho: " << max(rho).value()

nandiganavishal May 6, 2012 12:37

Hi Niaz

Thanks for the reply. It works

Vishal

nandiganavishal May 6, 2012 20:26

Hi,

I would like to know if we can change the timestep in the code during the runtime without manually tweeking it.

Thanks

Vishal

niaz May 7, 2012 06:57

Quote:

Originally Posted by nandiganavishal (Post 359611)
Hi,

I would like to know if we can change the timestep in the code during the runtime without manually tweeking it.

Thanks

Vishal

Some of solvers can do it based on corrunt number
just use adjustableRunTime and keep maxCo on your desirable amount.:o

nandiganavishal May 7, 2012 13:15

Thanks for the reply.

The final query I have is with respect to implementing one of the boundary conditions on the walls of the domain.

I have a rectangular domain and on one of the lateral walls of the domain I want to implement the following boundary condition for the velocity
u = 0
dv/dx = 0
where u is the normal velocity and v is the tangential velocity. How can we implement both these conditions on the wall.

Kindly let me know

Vishal

adhiraj May 7, 2012 15:40

Isn't it the boundary condition "slip"?

nandiganavishal May 7, 2012 17:35

It is not essentially a slip boundary condition, u = 0 is a slip boundary condition but dv/dx = 0 indicates a free stress boundary condition on the lateral walls.

nandiganavishal May 7, 2012 17:37

Dear adhiraj

Ignore my previous post. It is the slip boundary condition I needed in openfoam.

Thanks

Vishal


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