CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Find maximum value in the domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2012, 19:11
Default 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
nandiganavishal is on a distinguished road
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
nandiganavishal is offline   Reply With Quote

Old   May 6, 2012, 01:33
Default
  #2
Senior Member
 
niaz's Avatar
 
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 16
niaz is on a distinguished road
Dear nandi
just add like this to your solver
Info<< "max-min rho: " << max(rho).value()
niaz is offline   Reply With Quote

Old   May 6, 2012, 12:37
Default
  #3
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Hi Niaz

Thanks for the reply. It works

Vishal
nandiganavishal is offline   Reply With Quote

Old   May 6, 2012, 20:26
Default
  #4
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Hi,

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

Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Old   May 7, 2012, 06:57
Default
  #5
Senior Member
 
niaz's Avatar
 
A_R
Join Date: Jun 2009
Posts: 122
Rep Power: 16
niaz is on a distinguished road
Quote:
Originally Posted by nandiganavishal View Post
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.
niaz is offline   Reply With Quote

Old   May 7, 2012, 13:15
Default
  #6
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
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
nandiganavishal is offline   Reply With Quote

Old   May 7, 2012, 15:40
Default
  #7
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15
adhiraj is on a distinguished road
Isn't it the boundary condition "slip"?
adhiraj is offline   Reply With Quote

Old   May 7, 2012, 17:35
Default
  #8
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
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 is offline   Reply With Quote

Old   May 7, 2012, 17:37
Default
  #9
Senior Member
 
Vishal Nandigana
Join Date: Mar 2009
Location: Champaign, Illinois, U.S.A
Posts: 208
Rep Power: 18
nandiganavishal is on a distinguished road
Dear adhiraj

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

Thanks

Vishal
nandiganavishal is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface between fluid domain and porous domain windhair CFX 6 May 10, 2018 14:26
Domain format problem on airfoil flow simulation andrenonaka CFX 14 December 7, 2015 00:42
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
[Domain]Three different Domain Young CFX 3 April 27, 2008 14:11
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 03:37.