|
[Sponsors] |
[swak4Foam] funkySetFields - how to set two "zones"? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 5, 2010, 10:39 |
|
#21 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Ah ok, I understand .
It seems your expression and condition work, because I tested it on the icoFoam cavity case by setting an alpha1 to 1 for x <= 0.05 (took a bigger value than you to see something clearly) and it worked. Half the domain was set to 1 and the rest to 0. The command I used was Code:
funkySetFields -field alpha1 -expression "52.96281*(pow(pos().z,0.262054))+273" -time 0 -keepPatches -condition "pos().x <= 0.05"
__________________
Regards, Gijs |
|
July 5, 2010, 10:45 |
|
#22 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
I think i found my error in the line you just wrote. I have conditionS instead of condition... I mustve read that wiki 1000 times and i still manage to make that kind of mistake. Thanks for you help Gijs and sorry for all this trouble! Ill post it anyways
|
|
July 5, 2010, 11:03 |
|
#23 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Aha great! Yeah, typos can be a lot of fun . Did it work now with the right command?
__________________
Regards, Gijs |
|
July 5, 2010, 11:10 |
|
#24 |
Member
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 16 |
Yes, it worked perfectly. Thanks again! And im sorry about all this commotion. I'll be back with more problems soon enough, hopefully not as silly as this one turned out to be (however, im glad it was something silly and of my own fault! :P).
|
|
July 5, 2010, 11:12 |
|
#25 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Haha, no worries, **** happens. I'm glad it works now!
__________________
Regards, Gijs |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 09:00 |
set BC mass-flow-inlet via UDF and via GUI perform different result | sawa25 | FLUENT | 1 | February 25, 2015 01:51 |
error with icoDyMFOAM; how to set face extrusion zones | kiyono | OpenFOAM | 1 | June 17, 2011 16:07 |
[swak4Foam] Problem with funkySetFields: How to set field on patch? | DanielPT | OpenFOAM Community Contributions | 4 | May 6, 2011 10:45 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |