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

[swak4Foam] give me an example for setting of a cell for run-time in swak type

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2013, 14:56
Default give me an example for setting of a cell for run-time in swak type
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
could anyone send me an example on how a dictionary for obtaining a value in a cell by using swak4FOAM type during run?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   April 26, 2013, 15:29
Default
  #2
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 immortality View Post
could anyone send me an example on how a dictionary for obtaining a value in a cell by using swak4FOAM type during run?
That is called probes and you don't need swak for this. Have a look in the tutorials: OpenFOAM-2.2.x/tutorials/incompressible/pisoFoam/les/pitzDaily/system/controlDict
immortality likes this.
__________________
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

Old   April 26, 2013, 19:12
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
thanks.but the outputs of swak4FOAM functions I use are better arrange(I have nine probes)
current output is like so:
Code:
#               x                 0            0.0345             0.069                 0            0.0345             0.069                 0            0.0345             0.069
#               y            0.0005            0.0005            0.0005             0.002             0.002             0.002            0.0035            0.0035            0.0035
#               z                 0                 0                 0                 0                 0                 0                 0                 0                 0
#            Time
   0.000426862069       987181.4852       698132.3896       633736.7367       950725.3402       703586.8724       646703.9776       951830.3411       700223.3411        658090.757
  0.0004268965517       985009.8388       698252.7202       633416.7212       950890.0759       703619.4702       646555.4819       951794.7584       700263.6999       658309.2365
  0.0004269310345        982514.794        698373.076        633100.808       950940.2137       703648.8231       646405.8917       951652.2234       700308.5671       658522.4797
  0.0004269655172       979719.7081        698493.238       632789.0162       950881.6356       703674.9236        646255.249       951420.4468        700357.748       658730.3369
         0.000427       976648.2616       698612.9871       632481.3656       950720.3204       703697.7661       646103.5983       951117.1498       700411.0356         658932.66
  0.0004270344828        973324.461       698732.1054       632177.8757       950462.3539       703717.3466       645950.9872       950760.0485       700468.2697       659129.3023
  0.0004270689655       969772.5792       698850.3774       631878.5627       950113.8371       703733.6617       645797.4667       950365.6594       700528.7386       659320.1189
at not a good order.there isn't any swak function for probes?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   April 28, 2013, 17:51
Default
  #4
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 immortality View Post
thanks.but the outputs of swak4FOAM functions I use are better arrange(I have nine probes)
current output is like so:
Code:
#               x                 0            0.0345             0.069                 0            0.0345             0.069                 0            0.0345             0.069
#               y            0.0005            0.0005            0.0005             0.002             0.002             0.002            0.0035            0.0035            0.0035
#               z                 0                 0                 0                 0                 0                 0                 0                 0                 0
#            Time
   0.000426862069       987181.4852       698132.3896       633736.7367       950725.3402       703586.8724       646703.9776       951830.3411       700223.3411        658090.757
  0.0004268965517       985009.8388       698252.7202       633416.7212       950890.0759       703619.4702       646555.4819       951794.7584       700263.6999       658309.2365
  0.0004269310345        982514.794        698373.076        633100.808       950940.2137       703648.8231       646405.8917       951652.2234       700308.5671       658522.4797
  0.0004269655172       979719.7081        698493.238       632789.0162       950881.6356       703674.9236        646255.249       951420.4468        700357.748       658730.3369
         0.000427       976648.2616       698612.9871       632481.3656       950720.3204       703697.7661       646103.5983       951117.1498       700411.0356         658932.66
  0.0004270344828        973324.461       698732.1054       632177.8757       950462.3539       703717.3466       645950.9872       950760.0485       700468.2697       659129.3023
  0.0004270689655       969772.5792       698850.3774       631878.5627       950113.8371       703733.6617       645797.4667       950365.6594       700528.7386       659320.1189
at not a good order.there isn't any swak function for probes?
Not sure what your problem with this output is. The only similar thing that swak offers is set with the type cloud. But that "only" allows you calculations and one output (or output with the dumpVariables-functionObject)
__________________
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

Old   April 28, 2013, 19:16
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
its like the attachment not arranged like in CODE tag.
and I dont know how to plot variables for each point.
couldn't it be in separated folders like swak's?
Attached Files
File Type: gz 0.000106.tar.gz (18.2 KB, 3 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   April 29, 2013, 09:53
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
do you mean it doesn't have an output of value lists?just one result number in each time step or what?
isn't it appropriate by adding a expression?
Code:
createThrePointSet
    {
        type createSampledSet;
        outputControl timeStep;
        outputInterval 1;
        setName threePoints;
        set {
            type cloud;
            axis x;
            points (
                (0.1 0.14 0.0001)
                (0.0 0.02 0.0001)
                (-0.1 0.02 0.0001)
            );
        }
        writeSetOnConstruction true;
        autoWriteSet true;
        setFormat vtk;
    }
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   April 29, 2013, 12:01
Default
  #7
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 immortality View Post
its like the attachment not arranged like in CODE tag.
and I dont know how to plot variables for each point.
couldn't it be in separated folders like swak's?
I don't understand you obsession with separate files for each point. You can always have a probe for each point separately .... done. Otherwise: load the file with all nine points into the Spreadsheet and delete the columns you don't need.
__________________
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

Old   April 29, 2013, 12:19
Default
  #8
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
ok.resolved.thanks.
how can write in each time step like what swak does not each writing time?
Code:
probes
    {
        type            probes;
        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl   outputTime;
        outputInterval  1;

        fields
        (
            p
            T
            U
        );

        probeLocations
        (
            ( 0 0.0005 0 )
            ( 0.0345 0.0005 0 )
            ( 0.069 0.0005 0 )
            ( 0 0.002 0 )
            ( 0.0345 0.002 0)
            ( 0.069 0.002 0 )
            ( 0 0.0035 0 )
            ( 0.0345 0.0035 0 )
            ( 0.069 0.0035 0 )
        );

    }

}
could you tell me a bit about type cloud?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality 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
interFoam/kOmegaSST tank filling with printStackError/Mules simpomann OpenFOAM Running, Solving & CFD 3 February 17, 2014 18:06
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
T Junction Stability ignacio OpenFOAM Running, Solving & CFD 5 May 2, 2013 11:44
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 03:22.