CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] funkySetFields - how to set two "zones"? (https://www.cfd-online.com/Forums/openfoam-community-contributions/74815-funkysetfields-how-set-two-zones.html)

gwierink July 5, 2010 09:39

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"
Can you post your blockMeshDict, so I can have a go with it?

Disco_Caine July 5, 2010 09:45

1 Attachment(s)
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 :)

gwierink July 5, 2010 10:03

Aha great! Yeah, typos can be a lot of fun ;). Did it work now with the right command?

Disco_Caine July 5, 2010 10:10

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).

gwierink July 5, 2010 10:12

Haha, no worries, **** happens. I'm glad it works now! :D


All times are GMT -4. The time now is 17:09.