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

Opening blockmesh in paraFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By SHUBHAM9595

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2022, 02:42
Default Opening blockmesh in paraFoam
  #1
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
I have an openfoam 9 installed on my computer, and I successfully ran blockMesh of geometry created in openFoam 2 on my openFoam-9. When I tried to run paraFoam, I got an error shown below. I am thinking different version of openFoam may be causing the error, and I cant install openfoam 2 on my machine due to incompatibility with my machine. I will like to check if anyone has suggestion on what to do to fix the error.

Thanks.

I/O : uncollated
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libsimpleSwakFunctionObjects.so"
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libswakFunctionObjects.so"
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libgroovyBC.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libgroovyBC.so"
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libmarangoni.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libmarangoni.so"


--> FOAM FATAL IO ERROR:
Essential entry 'value' missing

file: /home/cmu-mail/OpenFOAM/OpenFOAM-9/foamDude1/Meltpool/0/T/boundaryField/ceiling from line 31 to line 34.

From function Foam::fvPatchField<Type>::fvPatchField(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&, bool) [with Type = double]
in file /home/ubuntu/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvPatchField.C at line 94.

FOAM exiting

Segmentation fault (core dumped)
Bodman06 is offline   Reply With Quote

Old   April 21, 2022, 08:34
Default
  #2
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8
SHUBHAM9595 is on a distinguished road
Hi Olabode,

The issue does not seem to occur because of 2 versions of FOAM. Instead as we can clearly follow, the error lies here
Code:
--> FOAM FATAL IO ERROR:
Essential entry 'value' missing
specifically at line 31 to line 34 of 0/T/boundaryField.

Maybe you already have fixedValue type BC like this in 0/T for ceiling

ceiling
{
type fixedValue;
value XXX;
}

But either the XXX is missing or a semi colon in both of the above lines.

P.S. Maybe if you post your T file then it will be much easier to find the cause.


Regards,
Shubham
SHUBHAM9595 is offline   Reply With Quote

Old   April 21, 2022, 09:43
Default
  #3
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
Thank you very much Shubham, for the 0/T file, its shown below

FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 300;

boundaryField
{
floor
{
type zeroGradient;
}

ceiling
{
type groovyBC;
variables "v=1;b=0.0001;P=150;n=0.2;s=pos().x-v*time();zi=pos().z;maxZ=max(pts().z);maxX=max(pts ().x);maxY=max(pts().y);yi=pos().y;";
gradientExpression "(1/10)*((1/(2*b*b*3.14))*P*n*exp(-pow(s-2*maxX/15,2)/(2*b*b)-pow(yi-maxY/2,2)/(2*b*b))-25*(T-300)-3e-8*(pow(T,4)-pow(300,4)))";
fractionExpression "0";
}

fixedWalls
{
type zeroGradient;
}

}
Bodman06 is offline   Reply With Quote

Old   April 21, 2022, 09:56
Default
  #4
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8
SHUBHAM9595 is on a distinguished road
try modifying

Code:
ceiling
{
type groovyBC;
variables "v=1;b=0.0001;P=150;n=0.2;s=pos().x-v*time();zi=pos().z;maxZ=max(pts().z);maxX=max(pts ().x);maxY=max(pts().y);yi=pos().y;";
gradientExpression "(1/10)*((1/(2*b*b*3.14))*P*n*exp(-pow(s-2*maxX/15,2)/(2*b*b)-pow(yi-maxY/2,2)/(2*b*b))-25*(T-300)-3e-8*(pow(T,4)-pow(300,4)))";
fractionExpression "0";
}
to

Code:
ceiling
{
type groovyBC;
variables "v=1;b=0.0001;P=150;n=0.2;s=pos().x-v*time();zi=pos().z;maxZ=max(pts().z);maxX=max(pts ().x);maxY=max(pts().y);yi=pos().y;";
gradientExpression "(1/10)*((1/(2*b*b*3.14))*P*n*exp(-pow(s-2*maxX/15,2)/(2*b*b)-pow(yi-maxY/2,2)/(2*b*b))-25*(T-300)-3e-8*(pow(T,4)-pow(300,4)))";
fractionExpression "0";
value           uniform 0;
}
SHUBHAM9595 is offline   Reply With Quote

Old   April 21, 2022, 10:11
Default
  #5
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
Thank you very much Shubham, I believe it get better with different error

I/O : uncollated
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libsimpleSwakFunctionObjects.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libsimpleSwakFunctionObjects.so"
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libswakFunctionObjects.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libswakFunctionObjects.so"
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libgroovyBC.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libgroovyBC.so"
--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : libmarangoni.so: cannot open shared object file: No such file or directory
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libmarangoni.so"


--> FOAM FATAL IO ERROR:
Essential entry 'value' missing

file: /home/cmu-mail/OpenFOAM/OpenFOAM-9/foamDude1/Meltpool/0/U/boundaryField/ceiling from line 32 to line 33.

From function Foam::fvPatchField<Type>::fvPatchField(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&, bool) [with Type = Foam::Vector<double>]
in file /home/ubuntu/OpenFOAM/OpenFOAM-9/src/finiteVolume/lnInclude/fvPatchField.C at line 94.

FOAM exiting

Segmentation fault (core dumped)
Bodman06 is offline   Reply With Quote

Old   April 21, 2022, 10:14
Default
  #6
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
The current ceiling line looks like this


internalField uniform 300;

boundaryField
{
floor
{
type zeroGradient;
}

ceiling
{
type groovyBC;
variables "v=1;b=0.0001;P=150;n=0.2;s=pos().x-v*time();zi=pos().z;maxZ=max(pts().z);maxX=max(pts ().x);maxY=max(pts().y);yi=pos().y;";
gradientExpression "(1/10)*((1/(2*b*b*3.14))*P*n*exp(-pow(s-2*maxX/15,2)/(2*b*b)-pow(yi-maxY/2,2)/(2*b*b))-25*(T-300)-3e-8*(pow(T,4)-pow(300,4)))";
fractionExpression "0";
value uniform 0;
Bodman06 is offline   Reply With Quote

Old   April 21, 2022, 11:06
Default
  #7
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
I believe the new error is coming 0/U

ceiling
{
type marangoni;
marangonicoeff 0.1; //(dsigma/dt)*1/mu
//value uniform (0 0 0);
}
Bodman06 is offline   Reply With Quote

Old   April 21, 2022, 11:11
Default
  #8
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8
SHUBHAM9595 is on a distinguished road
Yes, you need to uncomment the

Code:
ceiling
{
type marangoni;
marangonicoeff 0.1; //(dsigma/dt)*1/mu
//value uniform (0 0 0);
}

to

Code:
ceiling
{
type marangoni;
marangonicoeff 0.1; //(dsigma/dt)*1/mu
value uniform (0 0 0);
}
Bodman06 likes this.
SHUBHAM9595 is offline   Reply With Quote

Old   April 21, 2022, 11:12
Default
  #9
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
It works fine now, thank you very much Shubham, I uncomment the ceiling

//value uniform (0 0 0);

I could see the mesh
Bodman06 is offline   Reply With Quote

Old   April 21, 2022, 12:59
Default
  #10
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
I was able to generate the mesh, using Allrun file as shown below
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=`getApplication`

runApplication blockMesh
#cp 0/alpha.solid.orig 0/alpha.solid
runApplication topoSet -dict system/topoSetDict1
runApplication refineMesh -overwrite -dict system/refineMeshDict1
#rm log.topoSet
#rm log.refineMesh
#runApplication topoSet -dict system/topoSetDict2
#runApplication refineMesh -overwrite -dict system/refineMeshDict2
#runApplication setFields
runApplication decomposePar
runParallel `getApplication`


However, I will like to generate meltpool with laser moving across the bed. I have other files which may be useful in achieving that, just that they have to be arranged well and included in the Allrun file. I believe those other files can be in the system folder. I attached them with this message.
Attached Images
File Type: jpg image2.JPG (10.3 KB, 4 views)
File Type: jpg image1.JPG (18.5 KB, 4 views)
Bodman06 is offline   Reply With Quote

Old   April 23, 2022, 13:41
Default
  #11
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8
SHUBHAM9595 is on a distinguished road
Hi Olabode,

Unfortunately, I'm not able to understand what exactly u want to do....Can u please elaborate little bit....and maybe its better if you can put tthat in a new thread....as this new question might not go hand in hand with this thread title......this will also enable other much experienced folks than me to help u....
SHUBHAM9595 is offline   Reply With Quote

Old   April 27, 2022, 17:51
Default
  #12
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
I was getting this error message when I open up my solution in paraview. although I am still try to understand the error from the files which I attached

Generic Warning: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Rendering/Volume/vtkVolumeTextureMapper3D.cxx, line 680
vtkVolumeTextureMapper3D::vtkVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.

Generic Warning: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx, line 57
vtkOpenGLVolumeTextureMapper3D::vtkOpenGLVolumeTex tureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.
Bodman06 is offline   Reply With Quote

Old   April 27, 2022, 18:03
Default
  #13
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
I was getting this error message when I open up my solution in paraview. although I am still try to understand the error from the files

Generic Warning: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Rendering/Volume/vtkVolumeTextureMapper3D.cxx, line 680
vtkVolumeTextureMapper3D::vtkVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.

Generic Warning: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx, line 57
vtkOpenGLVolumeTextureMapper3D::vtkOpenGLVolumeTex tureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.
Bodman06 is offline   Reply With Quote

Old   April 28, 2022, 13:35
Default
  #14
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 8
SHUBHAM9595 is on a distinguished road
Not sure but might be related to the incorrect installation of paraview.

Anyways, as it seems a WARNING instead of ERROR......u should still be able to analyze all the fields in the paraview...
SHUBHAM9595 is offline   Reply With Quote

Old   April 29, 2022, 10:27
Default
  #15
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
Thank you Shubham, I attempted running blockmesh, but I was getting this error, Although I the folder in set it was locked.

From function bool Foam::rmDir(const Foam::fileName&)
in file POSIX.C at line 888
failed to remove file "refineCell1Set" while removing directory "/home/cmu-mail/AM1/additiveTestCase/constant/polyMesh/sets"
Killed
Bodman06 is offline   Reply With Quote

Old   May 1, 2022, 18:48
Default
  #16
New Member
 
Olabode Ajenifujah
Join Date: Apr 2022
Posts: 15
Rep Power: 4
Bodman06 is on a distinguished road
I was getting this error in my log.decomposePar file


Time = 0
marangoniFvPatchVectorField::snGrad(): object gradT not found!
Bodman06 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
[OpenFOAM.org] paraFoam command not working (installed openFoam from source + its Third-party) manle0312 OpenFOAM Installation 2 April 2, 2022 07:18
[OpenFOAM.org] paraFoam Fatal Error upon run Gallienus OpenFOAM Installation 2 April 14, 2020 19:23
[OpenFOAM] Trouble opening parafoam dsn ParaView 2 March 17, 2015 11:28
Opening blockMesh File With VTK Abbasi047 Main CFD Forum 0 August 22, 2013 06:41
ParaFoam, blockMesh etc in vnc SimonH. OpenFOAM 1 March 6, 2011 11:27


All times are GMT -4. The time now is 02:09.