|
[Sponsors] | |||||
|
|
|
#1 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
what does this warnining mean?
Code:
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Already got a surface named normal_Plane_1. There is a specification for the surface here which is ignored. It is:
{
type plane;
basePoint ( 0.01725 0.002 0 );
normalVector ( 1 0 0 );
interpolate true;
}
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Already got a surface named normal_Plane_1. There is a specification for the surface here which is ignored. It is:
{
type plane;
basePoint ( 0.01725 0.002 0 );
normalVector ( 1 0 0 );
interpolate true;
}
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Already got a surface named normal_Plane_1. There is a specification for the surface here which is ignored. It is:
{
type plane;
basePoint ( 0.01725 0.002 0 );
normalVector ( 1 0 0 );
interpolate true;
}
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Code:
surfacePlane_n1_velocity
{
type swakExpression;
valueType surface;
surfaceName normal_Plane_1;
verbose true;
surface {
type plane;
basePoint (0.01725 0.002 0);
normalVector (1 0 0);
interpolate true;
}
expression "mag(U)";
accumulations (
min
max
average
);
}
surfacePlane_n1_pressure
{
$surfacePlane_n1_velocity;
expression "p";
}
surfacePlane_n1_Temperature
{
$surfacePlane_n1_velocity;
expression "T";
}
surfacePlane_n1_totalPressure
{
$surfacePlane_n1_velocity;
expression "p+.5*rho*magSqr(U)";
}
Last edited by immortality; April 30, 2013 at 06:08. |
|
|
|
|
|
|
|
|
#2 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
it displayes a warning error that "the plane is specified".
I think its because of $surfacePlane_n1_velocity; that defines the plane again.how can I except it to not repeat in other functions? a hint? |
|
|
|
|
|
|
|
|
#3 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
which lines should be mentioned since this warning not to be displayed and also avoid repeated things?
|
|
|
|
|
|
|
|
|
#4 | |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Ehsan,
I got the private message you sent me. You could have told me which thread you were talking about, so that I wouldn't have to look for it .And sorry, but this is a bit too obvious So I'm going to answer in a playful way ![]() I'm going to do a magic trick... You have this: Quote:
Code:
surfacePlane_n1_pressure
{
$surfacePlane_n1_velocity;
expression "p";
surfaceName normal_Plane_2;
}
Code:
expression "p"; Code:
expression "mag(U)"; Best regards, Bruno
__________________
|
||
|
|
|
||
|
|
|
#5 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
thanks for answer.I'm sorry for that.I forgot it again!
I had tested it before.but the warning persists: Code:
swak4Foam: Allocating new repository for sampledSurfaces
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Already got a surface named normal_Plane_1. There is a specification for the surface here which is ignored. It is:
{
type plane;
basePoint ( 0.01725 0.002 0 );
normalVector ( 1 0 0 );
interpolate true;
}
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Already got a surface named normal_Plane_1. There is a specification for the surface here which is ignored. It is:
{
type plane;
basePoint ( 0.01725 0.002 0 );
normalVector ( 1 0 0 );
interpolate true;
}
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Already got a surface named normal_Plane_1. There is a specification for the surface here which is ignored. It is:
{
type plane;
basePoint ( 0.01725 0.002 0 );
normalVector ( 1 0 0 );
interpolate true;
}
--> FOAM Warning :
From function SampledSurface &SurfacesRepository::getSurface
in file repositories/SurfacesRepository.C at line 130
Code:
surfacePlane_n1_velocity
{
type swakExpression;
valueType surface;
surfaceName normal_Plane_1;
verbose true;
surface {
type plane;
basePoint (0.01725 0.002 0);
normalVector (1 0 0);
interpolate true;
}
expression "mag(U)";
accumulations (
min
max
average
);
}
surfacePlane_n1_pressure
{
$surfacePlane_n1_velocity;
surfaceName normal_Plane_1;
expression "p";
}
surfacePlane_n1_Temperature
{
$surfacePlane_n1_velocity;
surfaceName normal_Plane_1;
expression "T";
}
surfacePlane_n1_totalPressure
{
$surfacePlane_n1_velocity;
surfaceName normal_Plane_1;
expression "p+.5*rho*magSqr(U)";
}
![]() (all functions are on one surface) |
|
|
|
|
|
|
|
|
#6 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
and how can i delete a repeated post of mine like above?
i can't find any button in edit! |
|
|
|
|
|
|
|
|
#7 | ||
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Hi Ehsan,
It looks like you're getting pretty tired... didn't you notice something different in the line I added? Quote:
Quote:
If you need a post to be deleted, report your own post through the triangle on the lower left corner of the post: ![]() The other possibility is to edit the second post, remove all of the content and replace with something like "sorry, accidental double-post". Best regards, Bruno edit: I forgot to mention that I've deleted the repeated post.
__________________
Last edited by wyldckat; April 30, 2013 at 17:42. Reason: see "edit:" |
|||
|
|
|
|||
|
|
|
#8 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
i thought you have mistakenly understand it.so you mean introduce a different name for the same plane(only due to field difference)?
i thought that was only related to threads not the poor posts! |
|
|
|
|
|
|
|
|
#10 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
you mean different names for one plane.do i understand truely?
its fine now.without warning. ![]() but a question:is there any way to put all folders to a single folder and organizing them ?because its a lot of crowd there!
Last edited by immortality; May 1, 2013 at 05:31. |
|
|
|
|
|
|
|
|
#12 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
no their names are different due to different function names.
I only wanted a little more arrangement. if its not simple I guess its so its not important at all.never mind dear Bruno.thank you. ![]()
|
|
|
|
|
|
|
|
|
#13 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Well, if the names are different, then you can follow this example:
__________________
|
|
|
|
|
|
|
|
|
#14 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
then should not be vwey difficult!
![]() folders are like Code:
ehsan@Ehsan-com:~/Desktop/WR_pimple_p/swakExpression_pressure_left$ tree
.
├── 0
│ └── pressure_left
├── 0.000124
│ └── pressure_left
├── 0.000231
│ └── pressure_left
├── 0.000239
│ └── pressure_left
├── 0.0003
│ └── pressure_left
├── 0.000475
│ └── pressure_left
├── 0.00049
│ └── pressure_left
├── 0.00053
│ └── pressure_left
├── 0.000539
│ └── pressure_left
├── 0.000544
│ └── pressure_left
├── 0.000558
│ └── pressure_left
├── 0.000563
│ └── pressure_left
├── 0.000616
│ └── pressure_left
├── 0.000652
│ └── pressure_left
├── 0.000666
│ └── pressure_left
├── 0.000668
│ └── pressure_left
├── 0.000696
│ └── pressure_left
└── 0.000699
└── pressure_left
Code:
ehsan@Ehsan-com:~/Desktop/WR_pimple_p/swakExpression_surfacePlane_h1_totalPressure$ tree
.
├── 0
│ └── surfacePlane_h1_totalPressure
├── 0.000124
│ └── surfacePlane_h1_totalPressure
├── 0.000231
│ └── surfacePlane_h1_totalPressure
├── 0.000239
│ └── surfacePlane_h1_totalPressure
├── 0.0003
│ └── surfacePlane_h1_totalPressure
├── 0.000475
│ └── surfacePlane_h1_totalPressure
├── 0.00049
│ └── surfacePlane_h1_totalPressure
├── 0.00053
│ └── surfacePlane_h1_totalPressure
├── 0.000539
│ └── surfacePlane_h1_totalPressure
├── 0.000544
│ └── surfacePlane_h1_totalPressure
├── 0.000558
│ └── surfacePlane_h1_totalPressure
├── 0.000563
│ └── surfacePlane_h1_totalPressure
├── 0.000616
│ └── surfacePlane_h1_totalPressure
├── 0.000652
│ └── surfacePlane_h1_totalPressure
├── 0.000666
│ └── surfacePlane_h1_totalPressure
├── 0.000668
│ └── surfacePlane_h1_totalPressure
├── 0.000696
│ └── surfacePlane_h1_totalPressure
└── 0.000699
└── surfacePlane_h1_totalPressure
Code:
swakExpression_surfacePlane_n2_Temperature │ ├── 0 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000124 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000231 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000239 │ │ └── surfacePlane_n2_Temperature │ ├── 0.0003 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000475 │ │ └── surfacePlane_n2_Temperature │ ├── 0.00049 │ │ └── surfacePlane_n2_Temperature │ ├── 0.00053 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000539 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000544 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000558 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000563 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000616 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000652 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000666 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000668 │ │ └── surfacePlane_n2_Temperature │ ├── 0.000696 │ │ └── surfacePlane_n2_Temperature │ └── 0.000699 │ └── surfacePlane_n2_Temperature ├── swakExpression_surfacePlane_n2_totalPressure │ ├── 0 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000124 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000231 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000239 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.0003 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000475 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.00049 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.00053 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000539 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000544 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000558 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000563 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000616 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000652 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000666 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000668 │ │ └── surfacePlane_n2_totalPressure │ ├── 0.000696 │ │ └── surfacePlane_n2_totalPressure │ └── 0.000699 │ └── surfacePlane_n2_totalPressure ├── swakExpression_surfacePlane_n2_velocity │ ├── 0 │ │ └── surfacePlane_n2_velocity │ ├── 0.000124 │ │ └── surfacePlane_n2_velocity │ ├── 0.000231 │ │ └── surfacePlane_n2_velocity │ ├── 0.000239 │ │ └── surfacePlane_n2_velocity │ ├── 0.0003 │ │ └── surfacePlane_n2_velocity │ ├── 0.000475 │ │ └── surfacePlane_n2_velocity │ ├── 0.00049 │ │ └── surfacePlane_n2_velocity │ ├── 0.00053 │ │ └── surfacePlane_n2_velocity │ ├── 0.000539 │ │ └── surfacePlane_n2_velocity │ ├── 0.000544 │ │ └── surfacePlane_n2_velocity │ ├── 0.000558 │ │ └── surfacePlane_n2_velocity │ ├── 0.000563 │ │ └── surfacePlane_n2_velocity │ ├── 0.000616 │ │ └── surfacePlane_n2_velocity │ ├── 0.000652 │ │ └── surfacePlane_n2_velocity │ ├── 0.000666 │ │ └── surfacePlane_n2_velocity │ ├── 0.000668 │ │ └── surfacePlane_n2_velocity │ ├── 0.000696 │ │ └── surfacePlane_n2_velocity │ └── 0.000699 │ └── surfacePlane_n2_velocity ├── swakExpression_surfacePlane_n3_pressure │ ├── 0 │ │ └── surfacePlane_n3_pressure │ ├── 0.000124 │ │ └── surfacePlane_n3_pressure │ ├── 0.000231 │ │ └── surfacePlane_n3_pressure │ ├── 0.000239 │ │ └── surfacePlane_n3_pressure │ ├── 0.0003 │ │ └── surfacePlane_n3_pressure │ ├── 0.000475 │ │ └── surfacePlane_n3_pressure │ ├── 0.00049 │ │ └── surfacePlane_n3_pressure │ ├── 0.00053 │ │ └── surfacePlane_n3_pressure │ ├── 0.000539 │ │ └── surfacePlane_n3_pressure │ ├── 0.000544 │ │ └── surfacePlane_n3_pressure │ ├── 0.000558 │ │ └── surfacePlane_n3_pressure │ ├── 0.000563 │ │ └── surfacePlane_n3_pressure │ ├── 0.000616 │ │ └── surfacePlane_n3_pressure │ ├── 0.000652 │ │ └── surfacePlane_n3_pressure │ ├── 0.000666 │ │ └── surfacePlane_n3_pressure │ ├── 0.000668 │ │ └── surfacePlane_n3_pressure │ ├── 0.000696 │ │ └── surfacePlane_n3_pressure │ └── 0.000699 │ └── surfacePlane_n3_pressure ├── swakExpression_surfacePlane_n3_Temperature │ ├── 0 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000124 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000231 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000239 │ │ └── surfacePlane_n3_Temperature │ ├── 0.0003 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000475 │ │ └── surfacePlane_n3_Temperature │ ├── 0.00049 │ │ └── surfacePlane_n3_Temperature │ ├── 0.00053 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000539 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000544 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000558 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000563 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000616 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000652 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000666 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000668 │ │ └── surfacePlane_n3_Temperature │ ├── 0.000696 │ │ └── surfacePlane_n3_Temperature │ └── 0.000699 │ └── surfacePlane_n3_Temperature
|
|
|
|
|
|
|
|
|
#15 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
I forgot you probably had something complicated like that... where you have not just one time folder per sample, but in fact dozens of time folders per sample...
![]() Well, it's both simple and completely different from my previous answer . The following instructions depend on the script made on the other thread how to calculate mass flow rate on patches and summation of that during the run? (both posts #68 and #71):
__________________
|
|
|
|
|
|
|
|
|
#16 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
thank you.how is it possible to do this on probes in that is in postProcessing folder?
|
|
|
|
|
|
|
|
|
#18 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
like before folders but some difference in arrangement.each time folder has 3 files
,T,U.I want to accumulate all times in 0 folder like other post processing folders we had until now.summarily its better to have only one folder with p,T and U files that are from time 0 till end of the run.
|
|
|
|
|
|
|
|
|
#19 |
|
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 4,228
Blog Entries: 31
Rep Power: 45 ![]() ![]() |
Is this what you mean?
Code:
./mergeOutputFolderWith0 probes U > myNeatResults/U Code:
./mergeOutputFolderWith0 postProcessing/probes U > myNeatResults/U
__________________
|
|
|
|
|
|
|
|
|
#20 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
thanks.that works fine now.
it has became this if someone wants to use such a verbose output in future :Code:
#!/bin/bash mkdir myNeatResults ./merge swakExpression_flowInlet flowInlet > myNeatResults/flowInlet ./merge swakExpression_flowOutlet flowOutlet > myNeatResults/flowOutlet ./merge swakExpression_pressure_right pressure_right > myNeatResults/pressure_right ./merge swakExpression_Temperature_right Temperature_right > myNeatResults/Temperature_right ./merge swakExpression_total_pressure_right total_pressure_right > myNeatResults/total_pressure_right ./merge swakExpression_velocity_right velocity_right > myNeatResults/velocity_right ./merge swakExpression_pressure_left pressure_left > myNeatResults/pressure_left ./merge swakExpression_Temperature_left Temperature_left > myNeatResults/Temperature_left ./merge swakExpression_total_pressure_left total_pressure_left > myNeatResults/total_pressure_left ./merge swakExpression_velocity_left velocity_left > myNeatResults/velocity_left ./merge swakExpression_sP_h1_pressure sP_h1_pressure > myNeatResults/sP_h1_pressure ./merge swakExpression_sP_h1_Temperature sP_h1_Temperature > myNeatResults/sP_h1_Temperature ./merge swakExpression_sP_h1_totalPressure sP_h1_totalPressure > myNeatResults/sP_h1_totalPressure ./merge swakExpression_sP_h1_velocity sP_h1_velocity > myNeatResults/sP_h1_velocity ./merge swakExpression_sP_h2_pressure sP_h2_pressure > myNeatResults/sP_h2_pressure ./merge swakExpression_sP_h2_Temperature sP_h2_Temperature > myNeatResults/sP_h2_Temperature ./merge swakExpression_sP_h2_totalPressure sP_h2_totalPressure > myNeatResults/sP_h2_totalPressure ./merge swakExpression_sP_h2_velocity sP_h2_velocity > myNeatResults/sP_h2_velocity ./merge swakExpression_sP_h3_pressure sP_h3_pressure > myNeatResults/sP_h3_pressure ./merge swakExpression_sP_h3_Temperature sP_h3_Temperature > myNeatResults/sP_h3_Temperature ./merge swakExpression_sP_h3_totalPressure sP_h3_totalPressure > myNeatResults/sP_h3_totalPressure ./merge swakExpression_sP_h3_velocity sP_h3_velocity > myNeatResults/sP_h3_velocity ./merge swakExpression_sP_n1_pressure sP_n1_pressure > myNeatResults/sP_n1_pressure ./merge swakExpression_sP_n1_Temperature sP_n1_Temperature > myNeatResults/sP_n1_Temperature ./merge swakExpression_sP_n1_totalPressure sP_n1_totalPressure > myNeatResults/sP_n1_totalPressure ./merge swakExpression_sP_n1_velocity sP_n1_velocity > myNeatResults/sP_n1_velocity ./merge swakExpression_sP_n2_pressure sP_n2_pressure > myNeatResults/sP_n2_pressure ./merge swakExpression_sP_n2_Temperature sP_n2_Temperature > myNeatResults/sP_n2_Temperature ./merge swakExpression_sP_n2_totalPressure sP_n2_totalPressure > myNeatResults/sP_n2_totalPressure ./merge swakExpression_sP_n2_velocity sP_n2_velocity > myNeatResults/sP_n2_velocity ./merge swakExpression_sP_n2_Maxp sP_n2_Maxp > myNeatResults/sP_n2_Maxp ./merge swakExpression_sP_n2_MaxU sP_n2_MaxU > myNeatResults/sP_n2_MaxU ./merge swakExpression_sP_n3_pressure sP_n3_pressure > myNeatResults/sP_n3_pressure ./merge swakExpression_sP_n3_Temperature sP_n3_Temperature > myNeatResults/sP_n3_Temperature ./merge swakExpression_sP_n3_totalPressure sP_n3_totalPressure > myNeatResults/sP_n3_totalPressure ./merge swakExpression_sP_n3_velocity sP_n3_velocity > myNeatResults/sP_n3_velocity ./merge postProcessing/probes U > myNeatResults/U ./merge postProcessing/probes T > myNeatResults/T ./merge postProcessing/probes p > myNeatResults/p |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ansys Post processing | ano999 | ANSYS | 1 | May 27, 2011 16:24 |
| NO model vs post processing in coal combustion,CFX | sakalido | CFX | 1 | April 15, 2011 14:07 |
| post processing for KIVA | dirga | Main CFD Forum | 5 | April 23, 2009 10:58 |
| Post Processing in FEM | Abhijit Tilak | Main CFD Forum | 0 | April 26, 2004 11:59 |