|
[Sponsors] |
May 5, 2012, 20:11 |
Find maximum value in the domain
|
#1 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
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 |
|
May 6, 2012, 02:33 |
|
#2 |
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17 |
Dear nandi
just add like this to your solver Info<< "max-min rho: " << max(rho).value() |
|
May 6, 2012, 13:37 |
|
#3 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Hi Niaz
Thanks for the reply. It works Vishal |
|
May 6, 2012, 21:26 |
|
#4 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Hi,
I would like to know if we can change the timestep in the code during the runtime without manually tweeking it. Thanks Vishal |
|
May 7, 2012, 07:57 |
|
#5 |
Senior Member
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 17 |
||
May 7, 2012, 14:15 |
|
#6 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
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 |
|
May 7, 2012, 16:40 |
|
#7 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
Isn't it the boundary condition "slip"?
|
|
May 7, 2012, 18:35 |
|
#8 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
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.
|
|
May 7, 2012, 18:37 |
|
#9 |
Senior Member
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18 |
Dear adhiraj
Ignore my previous post. It is the slip boundary condition I needed in openfoam. Thanks Vishal |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Interface between fluid domain and porous domain | windhair | CFX | 6 | May 10, 2018 15:26 |
Domain format problem on airfoil flow simulation | andrenonaka | CFX | 14 | December 7, 2015 01:42 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |
[Domain]Three different Domain | Young | CFX | 3 | April 27, 2008 15:11 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |