CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] ideasUnvToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/254638-ideasunvtofoam.html)

onurcanpiskin February 22, 2024 02:13

ideasUnvToFoam
 
Hello, I made a mesh via Salome and when I want to import it, I get the error "controldict file not found". What do you think is the reason for this? How can I solve this problem?



MONSTER@DESKTOP-4N7IFAP MINGW64 OpenFOAM-4.x /c/Users/MONSTER/Desktop/serbest
$ ideasUnvToFoam.exe Mesh_1.unv
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt *\
| Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com |
\*---------------------------------------------------------------------------*/
Build : 4.x-f59a08eaaf41
Exec : C:/PROGRA~1/BLUECF~1/OpenFOAM-4.x/platforms/mingw_w64GccDPInt32Opt/bin/ideasUnvToFoam.exe Mesh_1.unv
Date : Feb 22 2024
Time : 10:03:37
Host : "DESKTOP-4N7IFAP"
PID : 23228
Case : C:/Users/MONSTER/Desktop/serbest
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

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



--> FOAM FATAL IO ERROR:
cannot find file

file: C:/Users/MONSTER/Desktop/serbest/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 72.

Yann February 22, 2024 03:01

Hello,

You need to run the command from a directory using the OpenFOAM case structure, i.e. with a system directory containing a controlDict file.

onurcanpiskin February 22, 2024 03:14

Quote:

Originally Posted by Yann (Post 865111)
Hello,

You need to run the command from a directory using the OpenFOAM case structure, i.e. with a system directory containing a controlDict file.

Hello sir, I have a small problem. I will tell you everything. I would really appreciate it if you could help me.

My boundary volume is a cylinder and there is a sphere inside this cylinder. I want this sphere to fall to the ground under the influence of gravity. This is my problem.

Cylinder Radius: 15, Height: 50 , Sphere radius: 2.5

https://lens.google.com/search?ep=su...ROQ1p3PT0iXQ==

Can you help me write my dynamicMeshDict file

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solver displacementLaplacian;

displacementLaplacianCoeffs
{
diffusivity uniform;
}

solidBodyMotionFvMeshCoeffs
{
cellZone innerCylinderSmall;

solidBodyMotionFunction freeFallMotion;
freeFallMotionCoeffs
{
origin (0 0 0);
velocity (0 0 -9.81); // 9.81 m/s^2 yerçekimi ivmesi kullanarak düşme hızını belirtir
}
}

onurcanpiskin February 22, 2024 03:16

Quote:

Originally Posted by onurcanpiskin (Post 865113)
Hello sir, I have a small problem. I will tell you everything. I would really appreciate it if you could help me.

My boundary volume is a cylinder and there is a sphere inside this cylinder. I want this sphere to fall to the ground under the influence of gravity. This is my problem.

Cylinder Radius: 15, Height: 50 , Sphere radius: 2.5

https://lens.google.com/search?ep=su...ROQ1p3PT0iXQ==

Can you help me write my dynamicMeshDict file

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solver displacementLaplacian;

displacementLaplacianCoeffs
{
diffusivity uniform;
}

solidBodyMotionFvMeshCoeffs
{
cellZone innerCylinderSmall;

solidBodyMotionFunction freeFallMotion;
freeFallMotionCoeffs
{
origin (0 0 0);
velocity (0 0 -9.81); // 9.81 m/s^2 yerçekimi ivmesi kullanarak düşme hızını belirtir
}
}

I solved the controldict error

Yann February 22, 2024 03:33

Where did you get "freeFallMotion"?
AFAIK there is no such thing in solidBodyMotionFunction.

If you want to model a free fall, you should use sixDoFRigidBodyMotion instead. Have a look at the tutorials using it.
You can find it using this command:
Code:

grep -r "sixDoFRigidBodyMotion" $FOAM_TUTORIALS


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