|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 642
Blog Entries: 4
Rep Power: 9 ![]() |
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 -------------------- NatHaz Modeling Laboratory, Department of Civil & Environmental Engineering & Earth Sciences at the University of Notre Dame Email || my-personal-website || my-New-CFD-Blog |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
|
Hi Daniel
try dimensionedScalar vsmall("small",dimensionSet(0,1,0,0,0,0,0),1e-8); Junwei |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Daniel WEI (老魏)
Join Date: Mar 2009
Location: South Bend, IN, USA
Posts: 642
Blog Entries: 4
Rep Power: 9 ![]() |
多谢多谢!
Thank you, it works. DW
__________________
Daniel WEI -------------------- NatHaz Modeling Laboratory, Department of Civil & Environmental Engineering & Earth Sciences at the University of Notre Dame Email || my-personal-website || my-New-CFD-Blog |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 8 ![]() |
Hi,
does this work in the other direction as well, i.e. remove the dimension of the wall-distance!? Regards! Fabian |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.com/
Posts: 766
Rep Power: 16 ![]() |
what about myDimVariable.value() to get at the value?
|
|
|
|
|
|
|
|
|
#6 |
|
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 8 ![]() |
Hi Mark,
thanks! Fabian |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change of cell type | CFDuser | CD-adapco | 1 | March 10, 2006 19:04 |
| change cell type during calculation | Torsten | CD-adapco | 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 | CD-adapco | 2 | November 28, 2003 21:01 |
| is it possible to change cell type during calc? | raymond | CD-adapco | 2 | September 21, 2001 02:10 |