CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to change dimensionless value to dementioned type

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 23, 2009, 05:16
Default Hi dear Foamers, Could anyo
  #1
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
Hi dear Foamers,

Could anyone give me a hand?
How to change dimensionless value to dementioned type? As in the following sentence:

max(VSMALL, wallDist(mesh_).y())

where, wallDist(mesh_).y() is [0 1 0 0 0 0 0].
How can I change VSMALL from [0 0 0 0 0 0 0] to [0 1 0 0 0 0 0]?

Thanks in advance!


Daniel WEI
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   February 23, 2009, 07:53
Default Hi Daniel try dime
  #2
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 10
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Hi Daniel

try
dimensionedScalar vsmall("small",dimensionSet(0,1,0,0,0,0,0),1e-8);

Junwei
su_junwei is offline   Reply With Quote

Old   February 24, 2009, 04:35
Default 多谢多谢! Thank you, it
  #3
Senior Member
 
lakeat's Avatar
 
Daniel WEI (老魏)
Join Date: Mar 2009
Location: Beijing, China
Posts: 689
Blog Entries: 9
Rep Power: 12
lakeat is on a distinguished road
Send a message via Skype™ to lakeat
多谢多谢!
Thank you, it works.

DW
__________________
~
Daniel WEI
-------------
Boeing Research & Technology - China
Beijing, China
Email
lakeat is offline   Reply With Quote

Old   March 2, 2009, 14:32
Default Hi, does this work in the oth
  #4
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
Hi,
does this work in the other direction as well, i.e. remove the dimension of the wall-distance!?

Regards!
Fabian
braennstroem is offline   Reply With Quote

Old   March 2, 2009, 14:35
Default what about myDimVariable.value
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 779
Rep Power: 18
olesen will become famous soon enough
what about myDimVariable.value() to get at the value?
olesen is offline   Reply With Quote

Old   March 2, 2009, 14:53
Default Hi Mark, thanks! Fabian
  #6
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 10
braennstroem is on a distinguished road
Hi Mark,

thanks!
Fabian
braennstroem is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change of cell type CFDuser CD-adapco 1 March 10, 2006 20:04
change cell type during calculation Torsten CD-adapco 1 May 27, 2005 07:16
Change Boundary type? ccc FLUENT 6 January 15, 2004 06:24
How to change the boundary type during computation Lee CD-adapco 2 November 28, 2003 22:01
is it possible to change cell type during calc? raymond CD-adapco 2 September 21, 2001 02:10


All times are GMT -4. The time now is 15:23.