|
[Sponsors] | |||||
give me an example for setting of a cell for run-time in swak type |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
|
#1 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
could anyone send me an example on how a dictionary for obtaining a value in a cell by using swak4FOAM type during run?
|
|
|
|
|
|
|
|
|
#2 |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
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
|
|
|
|
|
|
|
|
|
#4 | |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
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 |
||
|
|
|
||
|
|
|
#5 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
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? |
|
|
|
|
|
|
|
|
#6 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
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;
}
|
|
|
|
|
|
|
|
|
#7 |
|
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,107
Rep Power: 30 ![]() ![]() |
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 |
|
|
|
|
|
|
|
|
#8 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
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 )
);
}
}
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using starToFoam | clo | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 33 | September 26, 2012 04:04 |
| plot over time | fferroni | OpenFOAM Post-Processing | 7 | June 8, 2012 07:56 |
| singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 17:18 |
| boundary conditions for simpleFoam calculation | foam_noob | OpenFOAM Running, Solving & CFD | 7 | March 3, 2010 20:17 |
| Warning 097- | AB | CD-adapco | 6 | November 15, 2004 04:41 |