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

[swak4Foam] Foam warnings - related to swak4Foam

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2013, 16:59
Default Foam warnings - related to swak4Foam
  #1
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Hi ever one. I am trying to run a case where all the files can be found in the following link
:https://www.hpc.ntnu.no/display/hpc/...Postprocessing
I followed every single steps as described. However, when I try to run blockMesh I get warnings , I have attached all the warning I get , the first document is the warning I get from running the blockMesh, the second is from setFields and the third is from decompose. After decomposing , I tried to run it in parallel but then I get errors which I have attached to this quote. I have also attached controlDict file where I have the libs and functions added to it.

Why I want to run this case? I have to model a case which is very similar to this one. I know how to model it and how to run it successfully but with out adding any thing to the controlDict file.. the only reason I want to model the case is to find out how alpha1 (Volume of Fluid ) decreases with time.

blockMesh.doc

setFields.doc

decompose.doc

parallel.doc

controlDict.doc

The link, has a graph in it, I have attached the graph to this quote as well. This is want I need to produce , but I cannot without your help. So please someone help me I really need to solve the problem and learn it. I do really appreciate your help a lot.

Best regards,

Salam
Salam-H is offline   Reply With Quote

Old   November 26, 2013, 17:05
Default
  #2
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by Salam-H View Post
Hi ever one. I am trying to run a case where all the files can be found in the following link
:https://www.hpc.ntnu.no/display/hpc/...Postprocessing
I followed every single steps as described. However, when I try to run blockMesh I get warnings , I have attached all the warning I get , the first document is the warning I get from running the blockMesh, the second is from setFields and the third is from decompose. After decomposing , I tried to run it in parallel but then I get errors which I have attached to this quote. I have also attached controlDict file where I have the libs and functions added to it.

Why I want to run this case? I have to model a case which is very similar to this one. I know how to model it and how to run it successfully but with out adding any thing to the controlDict file.. the only reason I want to model the case is to find out how alpha1 (Volume of Fluid ) decreases with time.

Attachment 27015

Attachment 27016

Attachment 27017

Attachment 27018

Attachment 27019

The link, has a graph in it, I have attached the graph to this quote as well. This is want I need to produce , but I cannot without your help. So please someone help me I really need to solve the problem and learn it. I do really appreciate your help a lot.

Best regards,

Salam
The graph that I need to produce is :
Attached Images
File Type: png fillLevel.png (13.4 KB, 30 views)
Salam-H is offline   Reply With Quote

Old   November 29, 2013, 09:26
Default Swak4Foam
  #3
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Hi people. I hope I get some help here.

I have added the following lines to my controlDict file, Please can you have a look at the attachments :
Code:
libs (
          "libOpenFOAM.so"
          "libsimpleSwakFunctionObjects.so"
          "libswakFunctionObjects.so"
      );

functions
{
     #include "sampledSets"
     #include "sampledSurf"
}
And when I run blockMesh I get the following warning :

Code:
 Create time  
 

 --> FOAM Warning :  
     From function dlOpen(const fileName&, const bool)  
     in file POSIX.C at line 1179  
     dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory  
 --> FOAM Warning :  
     From function dlLibraryTable::open(const fileName&, const bool)  
     in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99  
     could not load "libsimpleSwakFunctionObjects.so"  
 --> FOAM Warning :  
     From function dlOpen(const fileName&, const bool)  
     in file POSIX.C at line 1179  
     dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory  
 --> FOAM Warning :  
     From function dlLibraryTable::open(const fileName&, const bool)  
     in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99  
     could not load "libswakFunctionObjects.so"  
 Creating block mesh from  
     "/home/salam/OpenFOAM/salam-2.2.x/run/tutorials/multiphase/interFoam/laminar/beerBottle/constant/polyMesh/blockMeshDict" 
 Creating curved edges  
 Creating topology blocks  
 Creating topology patches  
 

 Creating block mesh topology  
 --> FOAM Warning :  
     From function polyMesh::polyMesh(... construct from shapes...)  
     in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 901  
     Found 2 undefined faces in mesh; adding to default patch.  
 

 Check topology  
 

     Basic statistics  
         Number of internal faces : 0  
         Number of boundary faces : 6  
         Number of defined boundary faces : 6  
         Number of undefined boundary faces : 0  
     Checking patch -> block consistency 
 

 Creating block offsets  
 Creating merge list .  
 

 Creating polyMesh from blockMesh  
 Creating patches  
 Creating cells  
 Creating points with scale 1  
 

 Writing polyMesh  
 ----------------  
 Mesh Information  
 ----------------  
   boundingBox: (-0.04 -0.005 0) (0.04 0.005 0.16)  
   nPoints: 90522  
   nCells: 44800  
   nFaces: 179660  
   nInternalFaces: 89140  
 ----------------  
 Patches  
 ----------------  
   patch 0 (start: 89140 size: 140) name: inletOutlet  
   patch 1 (start: 89280 size: 780) name: walls  
   patch 2 (start: 90060 size: 89600) name: defaultFaces  
 

 End  
 

 salam@salam:~/OpenFOAM/salam-2.2.x/run/tutorials/multiphase/interFoam/laminar/beerBottle$
Thanks for your help in advance.
Attached Files
File Type: doc controlDict.doc (1.5 KB, 3 views)
File Type: doc Warning.doc (25.4 KB, 2 views)

Last edited by wyldckat; November 29, 2013 at 18:07. Reason: Added [CODE][/CODE]
Salam-H is offline   Reply With Quote

Old   November 29, 2013, 19:14
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Salam,

In reference to you posts on this thread: http://www.cfd-online.com/Forums/ope...trol-dict.html - we can gather a full picture of the problem.

The main issue is whether swak4Foam is properly installed or not. From what I can see, you're using OpenFOAM 2.2.2. Here are the steps I suggest that you follow:
  1. If I'm guessing correctly, you probably have installed the Deb package of OpenFOAM 2.2.2 for Ubuntu. This means that you might be missing some essential build tools, so I suggest that you make sure they are installed, by running:
    Code:
    sudo apt-get install build-essential flex bison zlib1g-dev libreadline-dev libncurses-dev
  2. Next, let's get into a good work folder and download (git clone and checkout) the version of swak4Foam that I know for certain that will build with success:
    Code:
    mkdir -p $FOAM_RUN
    cd $FOAM_RUN
    cd ..
    git clone https://github.com/wyldckat/swak4foam.git
    cd swak4foam
    git checkout OF22X
  3. Now build swak4Foam, by running:
    Code:
    ./Allwmake > make.log 2>&1
    It will take a while to build everything. All of the usual output will be written into the file "make.log".
  4. Now run the same command again:
    Code:
    ./Allwmake > make.log 2>&1
    This will make a summary of whether all of the libraries and utilities were built properly. Once it's done, check the contents written into the file "make.log", which should look something like this:
    Code:
    No 'swakConfiguration'. Python etc won't work
    Checking swak4Foam-version and generating file
    abort: no repository found in '/home/ofuser/OpenFOAM/ofuser-2.2.2/swak4foam' (.hg not found)!
    Swak version is 0.2.4
    Bison is version 2.5
    Flex is version 2.5.35 (Minor version: 35)
    OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x)
    No change to swak4FoamParsers/foamVersion4swak.H
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
    SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
    
    
    If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ofuser/OpenFOAM/ofuser-2.2.2/swak4foam/Libraries (most people will be fine without setting that variable)
  5. If the content of the "make.log" file is substantially different from the one above, please search and replace any sensitive information, zip the file and attach it to your next post.


Now comes the part regarding the aforementioned case, available at the end of this page: https://www.hpc.ntnu.no/display/hpc/...Postprocessing
I ran the following commands to download and unpack the package:
Code:
cd $FOAM_RUN
wget "https://www.hpc.ntnu.no/download/attachments/4587593/beerBottle.tar.gz?version=1&modificationDate=1344854891000&api=v2" -O beerBottle.tar.gz
tar -xzf beerBottle.tar.gz
To run the case, I did these commands:
Code:
cd beerBottle
./Allrun
There seems to be several outdated definitions:
  • Edit the file "fillLevel.plot" and change these lines:
    Code:
    plot 'volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
    To this:
    Code:
    plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
  • Get a fresh copy of the fvSchemes file from the original tutorial:
    Code:
    cp $FOAM_TUTORIALS/multiphase/interFoam/laminar/damBreak/system/fvSchemes system/fvSchemes
Now, to run the case again, do it like this:
Code:
./Allclean
./Allrun
And I think that solves all of the reported problems!

Best regards,
Bruno
rafa13 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 29, 2013, 19:20
Default
  #5
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Salam,

In reference to you posts on this thread: http://www.cfd-online.com/Forums/ope...trol-dict.html - we can gather a full picture of the problem.

The main issue is whether swak4Foam is properly installed or not. From what I can see, you're using OpenFOAM 2.2.2. Here are the steps I suggest that you follow:
  1. If I'm guessing correctly, you probably have installed the Deb package of OpenFOAM 2.2.2 for Ubuntu. This means that you might be missing some essential build tools, so I suggest that you make sure they are installed, by running:
    Code:
    sudo apt-get install build-essential flex bison zlib1g-dev libreadline-dev libncurses-dev
  2. Next, let's get into a good work folder and download (git clone and checkout) the version of swak4Foam that I know for certain that will build with success:
    Code:
    mkdir -p $FOAM_RUN
    cd $FOAM_RUN
    cd ..
    git clone https://github.com/wyldckat/swak4foam.git
    cd swak4foam
    git checkout OF22X
  3. Now build swak4Foam, by running:
    Code:
    ./Allwmake > make.log 2>&1
    It will take a while to build everything. All of the usual output will be written into the file "make.log".
  4. Now run the same command again:
    Code:
    ./Allwmake > make.log 2>&1
    This will make a summary of whether all of the libraries and utilities were built properly. Once it's done, check the contents written into the file "make.log", which should look something like this:
    Code:
    No 'swakConfiguration'. Python etc won't work
    Checking swak4Foam-version and generating file
    abort: no repository found in '/home/ofuser/OpenFOAM/ofuser-2.2.2/swak4foam' (.hg not found)!
    Swak version is 0.2.4
    Bison is version 2.5
    Flex is version 2.5.35 (Minor version: 35)
    OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x)
    No change to swak4FoamParsers/foamVersion4swak.H
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
    SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
    '/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
    make[1]: `/home/ofuser/OpenFOAM/ofuser-2.2.2/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
    
    
    If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/ofuser/OpenFOAM/ofuser-2.2.2/swak4foam/Libraries (most people will be fine without setting that variable)
  5. If the content of the "make.log" file is substantially different from the one above, please search and replace any sensitive information, zip the file and attach it to your next post.


Now comes the part regarding the aforementioned case, available at the end of this page: https://www.hpc.ntnu.no/display/hpc/...Postprocessing
I ran the following commands to download and unpack the package:
Code:
cd $FOAM_RUN
wget "https://www.hpc.ntnu.no/download/attachments/4587593/beerBottle.tar.gz?version=1&modificationDate=1344854891000&api=v2" -O beerBottle.tar.gz
tar -xzf beerBottle.tar.gz
To run the case, I did these commands:
Code:
cd beerBottle
./Allrun
There seems to be several outdated definitions:
  • Edit the file "fillLevel.plot" and change these lines:
    Code:
    plot 'volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
    To this:
    Code:
    plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
  • Get a fresh copy of the fvSchemes file from the original tutorial:
    Code:
    cp $FOAM_TUTORIALS/multiphase/interFoam/laminar/damBreak/system/fvSchemes system/fvSchemes
Now, to run the case again, do it like this:
Code:
./Allclean
./Allrun
And I think that solves all of the reported problems!

Best regards,
Bruno
Dear Bruno,

Thank you very much for all of the help and effort, I have no words strong enough to express how thankful I am for your help. I will follow the steps, and hopefully it works. Thank you again.
Salam-H is offline   Reply With Quote

Old   November 29, 2013, 20:19
Default
  #6
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by Salam-H View Post
Dear Bruno,

Thank you very much for all of the help and effort, I have no words strong enough to express how thankful I am for your help. I will follow the steps, and hopefully it works. Thank you again.
I can't believe it !! wow , it is running now, can't wait to see the graphs . I feel like I am on the moon. Thank you so much, if there is any thing that I could do for you in return please let me know.

Do you think that I can find someone as good as yourself to teach me how to learn OpenFOAM ? Of course not for free.

Best regards

Salam
rafa13 likes this.
Salam-H is offline   Reply With Quote

Old   November 30, 2013, 07:21
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Salam,

Check the links at http://openfoamwiki.net/index.php/Main_Page - section "3.1 Training".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 30, 2013, 07:30
Default
  #8
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Salam,

Check the links at http://openfoamwiki.net/index.php/Main_Page - section "3.1 Training".

Best regards,
Bruno
Hi Bruno,

Thanks for the reply, I will check the website . About the above case, I could run it successfully , but when I tried to do the graph I got the following message and never got the graph. Can I ask for some help with this please?

Code:
salam@salam:~$ cd OpenFOAM/salam-2.2.2/run/beerBottle/
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ plot  'volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title  'Volume of liquid', \
>      'swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
plot: volumeIntegrate_totalLiquid/0/alpha1: No such file or directory
plot: ignoring this file
plot: axes: No such file or directory
plot: ignoring this file
plot: x1y1: No such file or directory
plot: ignoring this file
plot: with: No such file or directory
plot: ignoring this file
plot: lines: No such file or directory
plot: ignoring this file
plot: title: No such file or directory
plot: ignoring this file
plot: Volume of liquid,: No such file or directory
plot: ignoring this file
plot: swakExpression_volFlow/0/volFlow: No such file or directory
plot: ignoring this file
plot: axes: No such file or directory
plot: ignoring this file
plot: x1y2: No such file or directory
plot: ignoring this file
plot: with: No such file or directory
plot: ignoring this file
plot: lines: No such file or directory
plot: ignoring this file
plot: title: No such file or directory
plot: ignoring this file
plot: Flow rate: No such file or directory
plot: ignoring this file
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$
Best regards,

Salam
Attached Files
File Type: doc plot.doc (14.9 KB, 4 views)

Last edited by Salam-H; November 30, 2013 at 08:38.
Salam-H is offline   Reply With Quote

Old   November 30, 2013, 07:34
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by wyldckat View Post
There seems to be several outdated definitions:
  • Edit the file "fillLevel.plot" and change these lines:
    Code:
    plot 'volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
    To this:
    Code:
    plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid', \
         'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
If you notice, when I wrote the instructions above, I added before the path to each file the path "postProcessing/".

In addition, if you run the script "fillLevel.plot":
Code:
./fillLevel.plot
It will runs the plot commands.
__________________
wyldckat is offline   Reply With Quote

Old   November 30, 2013, 07:49
Default
  #10
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
If you notice, when I wrote the instructions above, I added before the path to each file the path "postProcessing/".

In addition, if you run the script "fillLevel.plot":
Code:
./fillLevel.plot
It will runs the plot commands.
Hi again,

I did the change to the line, and I got a fresh copy of fvScheme manually. When I run allclean it goes through, but when I run allrun I get this :

Code:
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./Allclean
Cleaning /home/salam/OpenFOAM/salam-2.2.2/run/beerBottle case
Clearing ./constant/polyMesh
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./Allrun
./Allrun: ./meshgen.m: /usr/bin/octave: bad interpreter: No such file or directory

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1  with lines title 'Volume of liquid',       'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines  title 'Flow rate'
                                                                                      ^
"./fillLevel.plot", line 15: warning: Skipping data file with no valid points

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1  with lines title 'Volume of liquid',       'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines  title 'Flow rate'
                                                                                                                                                                                              ^
"./fillLevel.plot", line 15: warning: Skipping data file with no valid points

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1  with lines title 'Volume of liquid',       'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines  title 'Flow rate'
                                                                                                                                                                                                         ^
"./fillLevel.plot", line 15: x range is invalid

salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./Allclean
Cleaning /home/salam/OpenFOAM/salam-2.2.2/run/beerBottle case
Clearing ./constant/polyMesh
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./Allrun
./Allrun: ./meshgen.m: /usr/bin/octave: bad interpreter: No such file or directory

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1  with lines title 'Volume of liquid',       'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines  title 'Flow rate'
                                                                                      ^
"./fillLevel.plot", line 16: warning: Skipping data file with no valid points

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1  with lines title 'Volume of liquid',       'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines  title 'Flow rate'
                                                                                                                                                                                              ^
"./fillLevel.plot", line 16: warning: Skipping data file with no valid points

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1  with lines title 'Volume of liquid',       'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines  title 'Flow rate'
                                                                                                                                                                                                         ^
"./fillLevel.plot", line 16: x range is invalid

salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$
Thank you.

Salam
Salam-H is offline   Reply With Quote

Old   November 30, 2013, 07:53
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Salam,

Please follow the instructions from the second link on my signature, for posting code and terminal output. And, please, also edit your previous posts as well, to wrap the outputs into the "[CODE]" markers.

As for the error at the beginning of Allrun, that's because Octave is not installed. If you are using Ubuntu, run:
Code:
sudo apt-get install octave
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 30, 2013, 08:21
Default
  #12
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Salam,

Please follow the instructions from the second link on my signature, for posting code and terminal output. And, please, also edit your previous posts as well, to wrap the outputs into the "[CODE]" markers.

As for the error at the beginning of Allrun, that's because Octave is not installed. If you are using Ubuntu, run:
Code:
sudo apt-get install octave
Best regards,
Bruno
Hi Bruno,

Thank you for the reply, I will do as you said. I have installed octave, but I still get the following warning:

Code:
salam@salam:~$ cd OpenFOAM/salam-2.2.2/run/beerBottle/
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./Allclean
Cleaning /home/salam/OpenFOAM/salam-2.2.2/run/beerBottle case
Clearing ./constant/polyMesh
salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./Allrun


plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid',      'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
                                                                                      ^
"./fillLevel.plot", line 16: warning: Skipping data file with no valid points

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid',      'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
                                                                                                                                                                                            ^
"./fillLevel.plot", line 16: warning: Skipping data file with no valid points

plot 'postProcessing/volumeIntegrate_totalLiquid/0/alpha1' axes x1y1 with lines title 'Volume of liquid',      'postProcessing/swakExpression_volFlow/0/volFlow' axes x1y2 with lines title 'Flow rate'
                                                                                                                                                                                                       ^
"./fillLevel.plot", line 16: x range is invalid

salam@salam:~/OpenFOAM/salam-2.2.2/run/beerBottle$ ./fillLevel.plot
I have booked a traing course in London.

Regards,

Salam
Salam-H is offline   Reply With Quote

Old   November 30, 2013, 09:04
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Salam,

Check the contents of the files located in the folder "output". They should give a clear idea of what happened.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2013, 14:52
Default
  #14
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Hi Bruno,

Thanks a lot for your valuebale comments.

I did run my case. At the final step , where I to run ./Allrun , I get the following error message, do you have any ideas on how to solve this please?

Code:
salam@salam:~/OpenFOAM/salam-2.2.2/run/mycase$ paraFoam 
created temporary 'mycase.OpenFOAM'
salam@salam:~/OpenFOAM/salam-2.2.2/run/mycase$ ./Allclean
Cleaning /home/salam/OpenFOAM/salam-2.2.2/run/mycase case
Clearing ./constant/polyMesh
salam@salam:~/OpenFOAM/salam-2.2.2/run/mycase$ ./Allrun
"./fillLevel.plot", line 15: warning: Skipping unreadable file "postProcessing/volumeIntegrate_totalLiquid/0/alpha1"
"./fillLevel.plot", line 15: warning: Skipping unreadable file "postProcessing/swakExpression_volFlow/0/volFlow"
"./fillLevel.plot", line 15: No data in plot
Best regards,

Salam
Salam-H is offline   Reply With Quote

Old   December 1, 2013, 15:06
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Salam,

Once again, you need to check the contents of the files located in the folder "output", because they can give a better idea as to what went wrong.

You should also check the contents of the folder "postProcessing", since the Allrun script is indicating that the aforementioned files were not accessible.

Best regards,
Bruno
Salam-H likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2013, 15:52
Default
  #16
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Hi Bruno,

I am terribly sorry for bothering, but your help means a lot to me. I did check the output folder, and I found error messages there . One of the errors is due to polyMesh , I don't know why there should be any errors. The error is :

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.2                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9240f8b967db
Exec   : setFields
Date   : Dec 01 2013
Time   : 19:43:53
Host   : "salam"
PID    : 4720
Case   : /home/salam/OpenFOAM/salam-2.2.2/run/mycase
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0



--> FOAM FATAL ERROR: 
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

    From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
    in file db/Time/findInstance.C at line 203.

FOAM exiting
I have more error files , but I believe if this error gets fixed the rest will be fixed along with it.

Best regards,

Salam
Salam-H is offline   Reply With Quote

Old   December 1, 2013, 15:57
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Salam,

You need to check the output files by the order they are created, according to the script file Allrun.
The very first output file is the one to check, namely "output/1-blockMesh.log". If it shows you an error message, then that's the one that needs to be fixed first.

Best regards,
Bruno
Salam-H likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2013, 16:17
Default
  #18
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Salam,

You need to check the output files by the order they are created, according to the script file Allrun.
The very first output file is the one to check, namely "output/1-blockMesh.log". If it shows you an error message, then that's the one that needs to be fixed first.

Best regards,
Bruno
Hi Bruno,

Thank you so much for your help. I would never be able to solve this without your help. I think the problem is fixed now, and I get the graphs . Thank you again.

Best regards,

Salam
wyldckat likes this.
Salam-H is offline   Reply With Quote

Old   December 2, 2013, 20:48
Default
  #19
Member
 
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13
Salam-H is on a distinguished road
Hi Bruno,

I hope you are doing well. I am sorry for taking your time again. I did run my case, and in the output folder, I always get the following warning in the interFoam.log file, but the simulation still goes through:
can you help me to fix it please? .

Code:
    'outputInterval' not found in totalLiquid
Assuming: 1
--> FOAM Warning : 
    From function simpleFunctionObject::simpleFunctionObject
    in file simpleFunctionObject/simpleFunctionObject.C at line 108
    'outputControlMode' not found in volFlow
Assuming: timestep
--> FOAM Warning : 
    From function simpleFunctionObject::simpleFunctionObject
    in file simpleFunctionObject/simpleFunctionObject.C at line 116
    'outputInterval' not found in volFlow
Assuming: 1
swak4Foam: Setting default mesh
surfaces cuttingPlane: Reading surface description:
    neckCut
    freeSurface

Courant Number mean: 0 max: 0
Interface Courant Number mean: 0 max: 0
deltaT = 0.00119048
Time = 0.00119048
The graph that I get for Alpha1 (Volume of fluid) against Time (from controlDict ) , End time. Is the EndTime represents the actual real life time? If it is not a real life time, then how can I find the real life time? If it is a real life time then:

Why when I go for finer mesh , the volume of fluid (Alpha1) runs slower , I mean lesser fluid leaves the domain with finer mesh (even though I don't change the EndTime), can you please kindly explain this to me?

I would be grateful for your help. I know you have already helped me more than enough , I really appreciate it.

Best regards,

Salam
Salam-H is offline   Reply With Quote

Old   December 3, 2013, 07:37
Default
  #20
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 Salam-H View Post
Hi Bruno,

I hope you are doing well. I am sorry for taking your time again. I did run my case, and in the output folder, I always get the following warning in the interFoam.log file, but the simulation still goes through:
can you help me to fix it please? .

Code:
    'outputInterval' not found in totalLiquid
Assuming: 1
--> FOAM Warning : 
    From function simpleFunctionObject::simpleFunctionObject
    in file simpleFunctionObject/simpleFunctionObject.C at line 108
    'outputControlMode' not found in volFlow
Assuming: timestep
--> FOAM Warning : 
    From function simpleFunctionObject::simpleFunctionObject
    in file simpleFunctionObject/simpleFunctionObject.C at line 116
    'outputInterval' not found in volFlow
Assuming: 1
swak4Foam: Setting default mesh
surfaces cuttingPlane: Reading surface description:
    neckCut
    freeSurface

Courant Number mean: 0 max: 0
Interface Courant Number mean: 0 max: 0
deltaT = 0.00119048
Time = 0.00119048
I think the warnings are pretty clear: you have not set outputInterval. But instead of failing swak makes an assumption for you. Either set the described parameters to the values that swak reports (then everything will behave the way it did before. Just without warnings) or set them to different values (for instance to report less frequently)
Salam-H 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

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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
Incompatible dimensions for operation ruben23 OpenFOAM Running, Solving & CFD 2 June 12, 2015 05:14
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 08:53
gmsh2ToFoam sarajags_89 OpenFOAM 0 November 24, 2009 23:50
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 13:16.