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

how to scale volScalarField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2012, 17:39
Default how to scale volScalarField
  #1
Member
 
Join Date: Jun 2011
Posts: 42
Rep Power: 14
mikeP is on a distinguished road
I am trying to scale volScalarField with the following code:

Code:
nut = cmptMultiply(nut,scale);
forAll(nut.boundaryField(),patchi)
{
     forAll(nut.boundaryField()[patchi],facei)
     {
          nut.boundaryField()[patchi][facei] = cmptMultiply(nut.boundaryField()[patchi][facei],scale);
     }
}
It doesn't seem to work right at the boundaries, is there a problem with it?
mikeP is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 10:21
Turbulence length scale and integral length scale rizhang CFX 2 April 22, 2016 08:22
How to scale a volScalarField by cell volume? tgvosk OpenFOAM Running, Solving & CFD 2 July 9, 2012 11:25
How to find a good time scale strategy? StefanG CFX 19 June 8, 2012 09:41
advection time scale Tanveer ahmad Rubani CFX 1 February 24, 2009 17:16


All times are GMT -4. The time now is 11:50.