|
[Sponsors] |
May 22, 2015, 08:52 |
implicit Source
|
#1 |
Senior Member
Join Date: Jan 2014
Posts: 179
Rep Power: 12 |
Hi,
I want to simulate an Vortex induced over a cellSet in my domain. Therefore, I added the momentoumSource() compatibility to my solver and recompiled it. So far so good. Question is about my SourceDict itself, I want to access the created faceZone and add there some velocity distribution over the cells. This is my Dictionary so far: Code:
vortexSource { { type vectorSwakImplicitSource; active true; timeStart 0; duration 5; selectionMode faceZone; cellZone vortexZone; variables ( "xMin=min(pos().x);" "xMax=max(pos().x);" "yMin=min(pos().y);" "yMax=max(pos().y);" "zMin=min(pos().z);" "zMax=max(pos().z);" "alpha=1;" "r=mag(pow(xMax/2,2)+pow(yMax/2,2));" "vx=-0.5*alpha*r;" "vy=alpha*r;" "vz=1;" ); dimensions [0 1 -2 0 0 0 0]; expression "vector(vx,vy,vz)"; } }; Where is my problem? Thanks in advance |
|
May 22, 2015, 16:29 |
|
#2 |
Senior Member
Join Date: Jan 2014
Posts: 179
Rep Power: 12 |
no one has an idea what is wrong?
|
|
May 25, 2015, 18:23 |
|
#3 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Which version of swak, which version of OF? Anyway: in my dev-version Examples/BasicSourceSubclasses/pitzDailyWithImplicitSource/constant/sourcesProperties looks like this
Code:
plug { type vectorSwakImplicitSource; active true; timeStart 0; duration 1e7; selectionMode all; vectorSwakImplicitSourceCoeffs { switchExplicitImplicit true; variables ( "xMin=0.05;" "xMax=0.075;" "resist=1e3;" ); expressions { U "(pos().x<xMax && xMin<pos().x ? -resist : 0)"; } dimensions [0 0 -1 0 0 0 0]; } }
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] difficulties installing swak4foam | newbie29 | OpenFOAM Community Contributions | 120 | October 21, 2022 05:01 |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X | gschaider | OpenFOAM Installation | 136 | October 10, 2017 18:25 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 18:18 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |