CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] implicit Source

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2015, 07:52
Default implicit Source
  #1
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
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)";
    }    
};
The code runs but no Source is induced over the cellSet, it only gives the regular flow results of the internal Field calculated by the solver.

Where is my problem?

Thanks in advance
hxaxtma is offline   Reply With Quote

Old   May 22, 2015, 15:29
Default
  #2
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
no one has an idea what is wrong?
hxaxtma is offline   Reply With Quote

Old   May 25, 2015, 17:23
Default
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by hxaxtma View Post
no one has an idea what is wrong?
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
gschaider 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
[swak4Foam] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 120 October 21, 2022 04:01
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


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