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 |
Dear nandi
just add like this to your solver Info<< "max-min rho: " << max(rho).value() |
Hi Niaz
Thanks for the reply. It works Vishal |
Hi,
I would like to know if we can change the timestep in the code during the runtime without manually tweeking it. Thanks Vishal |
Quote:
just use adjustableRunTime and keep maxCo on your desirable amount.:o |
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 |
Isn't it the boundary condition "slip"?
|
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.
|
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. |