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

How to change dimensionless value to dementioned type

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2009, 04: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: 21
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, 06: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: 20
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, 03: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: 21
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, 13:32
Default Hi, does this work in the oth
  #4
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
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, 13:35
Default what about myDimVariable.value
  #5
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
what about myDimVariable.value() to get at the value?
olesen is offline   Reply With Quote

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

thanks!
Fabian
braennstroem 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
change of cell type CFDuser Siemens 1 March 10, 2006 19:04
change cell type during calculation Torsten Siemens 1 May 27, 2005 07:16
Change Boundary type? ccc FLUENT 6 January 15, 2004 05:24
How to change the boundary type during computation Lee Siemens 2 November 28, 2003 21:01
is it possible to change cell type during calc? raymond Siemens 2 September 21, 2001 02:10


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