CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Opening blockmesh in paraFoam (https://www.cfd-online.com/Forums/openfoam-pre-processing/242422-opening-blockmesh-parafoam.html)

Bodman06 April 21, 2022 02:42

Opening blockmesh in paraFoam
 
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::open(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::open(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::open(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::open(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::DimensionedField<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)

SHUBHAM9595 April 21, 2022 08:34

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

Bodman06 April 21, 2022 09:43

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;
}

}

SHUBHAM9595 April 21, 2022 09:56

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;
}


Bodman06 April 21, 2022 10:11

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::open(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::open(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::open(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::open(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::DimensionedField<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 April 21, 2022 10:14

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 April 21, 2022 11:06

I believe the new error is coming 0/U

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

SHUBHAM9595 April 21, 2022 11:11

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 April 21, 2022 11:12

It works fine now, thank you very much Shubham, I uncomment the ceiling

//value uniform (0 0 0);

I could see the mesh

Bodman06 April 21, 2022 12:59

2 Attachment(s)
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.

SHUBHAM9595 April 23, 2022 13:41

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....:)

Bodman06 April 27, 2022 17:51

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 April 27, 2022 18:03

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.

SHUBHAM9595 April 28, 2022 13:35

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...

Bodman06 April 29, 2022 10:27

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 May 1, 2022 18:48

I was getting this error in my log.decomposePar file


Time = 0
marangoniFvPatchVectorField::snGrad(): object gradT not found!


All times are GMT -4. The time now is 19:17.