|
[Sponsors] |
[swak4Foam] Foam warnings - related to swak4Foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2013, 16:59 |
Foam warnings - related to swak4Foam
|
#1 |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
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 |
|
November 26, 2013, 17:05 |
|
#2 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
|
||
November 29, 2013, 09:26 |
Swak4Foam
|
#3 |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
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" } 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$ Last edited by wyldckat; November 29, 2013 at 18:07. Reason: Added [CODE][/CODE] |
|
November 29, 2013, 19:14 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
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 Code:
cd beerBottle ./Allrun
Code:
./Allclean ./Allrun Best regards, Bruno
__________________
|
|
November 29, 2013, 19:20 |
|
#5 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
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. |
||
November 29, 2013, 20:19 |
|
#6 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
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 |
||
November 30, 2013, 07:21 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Salam,
Check the links at http://openfoamwiki.net/index.php/Main_Page - section "3.1 Training". Best regards, Bruno
__________________
|
|
November 30, 2013, 07:30 |
|
#8 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
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$ Salam Last edited by Salam-H; November 30, 2013 at 08:38. |
||
November 30, 2013, 07:34 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
In addition, if you run the script "fillLevel.plot": Code:
./fillLevel.plot
__________________
|
||
November 30, 2013, 07:49 |
|
#10 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
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$ Salam |
||
November 30, 2013, 07:53 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Bruno
__________________
|
|
November 30, 2013, 08:21 |
|
#12 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
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 Regards, Salam |
||
November 30, 2013, 09:04 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
December 1, 2013, 14:52 |
|
#14 |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
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 Salam |
|
December 1, 2013, 15:06 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
December 1, 2013, 15:52 |
|
#16 |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
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 Best regards, Salam |
|
December 1, 2013, 15:57 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
December 1, 2013, 16:17 |
|
#18 | |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
Quote:
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 |
||
December 2, 2013, 20:48 |
|
#19 |
Member
Salam Hassan
Join Date: Nov 2013
Posts: 46
Rep Power: 13 |
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 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 |
|
December 3, 2013, 07:37 |
|
#20 | |
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 |
||
|
|
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 |