|
[Sponsors] |
[swak4Foam] give me an example for setting of a cell for run-time in swak type |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 26, 2013, 14:56 |
give me an example for setting of a cell for run-time in swak type
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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. |
|
April 26, 2013, 15:29 |
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
__________________
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 |
|
April 26, 2013, 19:12 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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
__________________
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. |
|
April 28, 2013, 17:51 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
April 28, 2013, 19:16 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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?
__________________
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. |
|
April 29, 2013, 09:53 |
|
#6 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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. |
|
April 29, 2013, 12:01 |
|
#7 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
April 29, 2013, 12:19 |
|
#8 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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 ) ); } }
__________________
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. |
|
|
|
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 |