cfdOF install not detecting OpenFOAM install
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: cfdOF install not detecting OpenFOAM install
Hi attached with this reply should be the SIphon_v2.FCStd.
I created the geometry in FreeCAD using Sketcher, then padded it 10mm and opened the cfdOF workBench.
Create a new CFD Analysis, first set the PhysicsModel, then FluidProperties to water.
Next, I InitialiseFields setting pressure and velocity both to potential flow.
Then I proceed to mesh the geometry using cfMesh with an element size of 2mm (I keep getting a "Links go out of the allowed scope" error/warning over here)
Now I set the boundary conditions
Face7 and Face15 are both inlets with Uy = 1 mm/s
Face22: outlet
Face23 and Face24 are the front and back walls set to slip(inviscid)
The rest of the faces are wall with noSlip
I then run the solver and receive the output as shown in the code section in the previous reply on this thread.
Hope that is everything needed.
I created the geometry in FreeCAD using Sketcher, then padded it 10mm and opened the cfdOF workBench.
Create a new CFD Analysis, first set the PhysicsModel, then FluidProperties to water.
Next, I InitialiseFields setting pressure and velocity both to potential flow.
Then I proceed to mesh the geometry using cfMesh with an element size of 2mm (I keep getting a "Links go out of the allowed scope" error/warning over here)
Now I set the boundary conditions
Face7 and Face15 are both inlets with Uy = 1 mm/s
Face22: outlet
Face23 and Face24 are the front and back walls set to slip(inviscid)
The rest of the faces are wall with noSlip
I then run the solver and receive the output as shown in the code section in the previous reply on this thread.
Hope that is everything needed.
- Attachments
-
- Siphon_v2.FCStd
- (29.14 KiB) Downloaded 109 times
- oliveroxtoby
- Posts: 812
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: cfdOF install not detecting OpenFOAM install
Unfortunately I can't reproduce this error. I open your case, Write Mesh, Run Mesher, Write case, Run case, and everything runs fine. The simulation eventually diverges but this is recitifed by changing the sign of the inlet velocity so that it points inwards. Please verify you have the latest updated workbench and double-check the process from scratch when loading from your file.justJETZ wrote: ↑Mon Jun 21, 2021 10:00 am Hi attached with this reply should be the SIphon_v2.FCStd.
I created the geometry in FreeCAD using Sketcher, then padded it 10mm and opened the cfdOF workBench.
Create a new CFD Analysis, first set the PhysicsModel, then FluidProperties to water.
Next, I InitialiseFields setting pressure and velocity both to potential flow.
Then I proceed to mesh the geometry using cfMesh with an element size of 2mm (I keep getting a "Links go out of the allowed scope" error/warning over here)
Now I set the boundary conditions
Face7 and Face15 are both inlets with Uy = 1 mm/s
Face22: outlet
Face23 and Face24 are the front and back walls set to slip(inviscid)
The rest of the faces are wall with noSlip
I then run the solver and receive the output as shown in the code section in the previous reply on this thread.
Hope that is everything needed.
Re: cfdOF install not detecting OpenFOAM install
Started up Ubuntu today and randomly just tried running the simulation in the saved state I sent to you. Strangely, it ran .
The gremlins of software are beyond me. Anyway after 36 seconds into the simulation, it crashes for me as well. I then changed the sign for the inlet velocity as you mentioned and it converged after 743 iterations.
When running ParaView however, ParaView does not want to detect the residuals after loading the pv.foam file.
I then selected the Decomposed case and the residuals show up.
Any reason as to why the residuals would not be detected by Paraview in the Reconstructed case?
A quick fix would be to not run the simulation in parallel I guess.
The gremlins of software are beyond me. Anyway after 36 seconds into the simulation, it crashes for me as well. I then changed the sign for the inlet velocity as you mentioned and it converged after 743 iterations.
When running ParaView however, ParaView does not want to detect the residuals after loading the pv.foam file.
I then selected the Decomposed case and the residuals show up.
Any reason as to why the residuals would not be detected by Paraview in the Reconstructed case?
A quick fix would be to not run the simulation in parallel I guess.
- oliveroxtoby
- Posts: 812
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: cfdOF install not detecting OpenFOAM install
Selecting 'Decomposed case' instructs paraview to read the parallel case; 'Reconstructed case' reads the serial case. So if the case was run in parallel, you won't see serial results unless you explicitly reconstruct them using OpenFOAM. Simpler just to work with the parallel version directly. This will be automatically selected if you use the 'Paraview' button in CfdOF.justJETZ wrote: ↑Mon Jun 28, 2021 8:44 am
When running ParaView however, ParaView does not want to detect the residuals after loading the pv.foam file.
I then selected the Decomposed case and the residuals show up.
Any reason as to why the residuals would not be detected by Paraview in the Reconstructed case?
A quick fix would be to not run the simulation in parallel I guess.
Re: cfdOF install not detecting OpenFOAM install
Fair enough I will just go with the parallel case.
Thank you for all the help, I greatly appreciate it.
Thank you for all the help, I greatly appreciate it.
Re: cfdOF install not detecting OpenFOAM install
Hello everyone,justJETZ wrote: ↑Sun Jun 20, 2021 12:03 pm Ok
FreeCAD is detecting both OpenFOAM installations, and I have successfully installed cfMesh and HiSA. Running the dependency checker yields no errors.
Not sure if I can ask this here or if I should open another thread.
When clicking "Run" for the solver I get the following output in the Report view.
All the text under the "Calculating approximate pressure field" should be in red.Code: Select all
13:57:24 Solver run command: bash -c cd "/tmp/case" && ./Allrun 13:57:24 bash -c cd "/tmp/case" && ./Allrun 13:57:24 Raw command: ['bash', '-c', 'cd "/tmp/case" && ./Allrun'] 13:57:24 /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _e91649cfd8-20210420 OPENFOAM=2012 patch=210414 Arch : "LSB;label=32;scalar=64" Exec : createPatch -overwrite Date : Jun 20 2021 Time : 13:57:24 Host : jitish-linux PID : 32400 13:57:24 I/O : uncollated Case : /tmp/case nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create polyMesh for time = 0 13:57:24 Reading "system/createPatchDict" Adding new patch inlet1 as patch 1 from { type patch; } Adding new patch inlet2 as patch 2 from { type patch; } Adding new patch outlet as patch 3 from { type patch; } Adding new patch pipeWalls as patch 4 from { type wall; } Adding new patch slipWalls as patch 5 from { type wall; } Adding new patch defaultFaces as patch 6 from { type patch; } --> FOAM Warning : From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896 Cannot find any patch or group names matching "patch_1_.*" --> FOAM Warning : From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896 Cannot find any patch or group names matching "patch_2_.*" --> FOAM Warning : From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896 Cannot find any patch or group names matching "patch_3_.*" --> FOAM Warning : From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896 Cannot find any patch or group names matching "patch_4_.*" --> FOAM Warning : From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896 Cannot find any patch or group names matching "patch_5_.*" Moving faces from patch patch_0_0 to patch 6 Doing topology modification to order faces. Not synchronising points. Removing patches with no faces in them. Removing zero-sized patch patch_0_0 type patch at position 0 Removing patches. Writing repatched mesh to 0 13:57:24 End 13:57:24 /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _e91649cfd8-20210420 OPENFOAM=2012 patch=210414 Arch : "LSB;label=32;scalar=64" Exec : potentialFoam -initialiseUBCs -pName p -writep Date : Jun 20 2021 Time : 13:57:24 Host : jitish-linux PID : 32407 13:57:24 I/O : uncollated Case : /tmp/case nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 13:57:24 potentialFlow: Operating solver in PISO mode Reading velocity field U Constructing pressure field p Constructing velocity potential field Phi No MRF models present Calculating potential flow GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 13:57:24 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0 Continuity error = 0 Interpolated velocity error = 0 Calculating approximate pressure field 13:57:24 #0 Foam::error::printStack(Foam::Ostream&) at ??:? 13:57:24 #1 Foam::sigFpe::sigHandler(int) at ??:? #2 ? in /lib/x86_64-linux-gnu/libpthread.so.0 13:57:24 #3 ? in /usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/bin/potentialFoam #4 ? in /usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/bin/potentialFoam #5 ? in /usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/bin/potentialFoam #6 __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6 13:57:24 #7 ? in /usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/bin/potentialFoam 13:57:24 ./Allrun: line 4: 32407 Floating point exception(core dumped) "$@" > >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
I did notice the 5 FOAM Warnings above as well, but I am not sure how to fix this.
justJETZ, i have the same problem but i can't solve it yet, exactly, how do you solve the openfoam path install recognition?
Best.,
Ricardo
Re: cfdOF install not detecting OpenFOAM install
Code: Select all
Cannot find any patch or group names matching "patch_1_.*"
I suggest posting your FCStd file here so we can open it and see what is going on with your model.
Re: cfdOF install not detecting OpenFOAM install
I solved the opeanfoam installation path, using FreeCAD 0.19 version, and openfoam 2206 from openfoam.com.
Im trying to execute my first simulation but in the mesh step, when i Run mesher, i get the next error:
08:08:07 Executing: ./Allmesh in /tmp/meshCase
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
08:08:07 Could not determine OPENFOAM 'api' value
/usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
/usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
08:08:07 Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
/usr/lib/openfoam/openfoam2206/bin/foamCleanPath: 279: sed: not found
/usr/lib/openfoam/openfoam2206/bin/foamCleanPath: 279: sed: not found
/usr/lib/openfoam/openfoam2206/bin/foamCleanPath: 279: sed: not found
08:08:07 ./Allmesh: línea 20: basename: orden no encontrada
./Allmesh: línea 23: tee: orden no encontrada
./Allmesh: línea 23: tee: orden no encontrada
Maybe someone could help me?
Best.
Im trying to execute my first simulation but in the mesh step, when i Run mesher, i get the next error:
08:08:07 Executing: ./Allmesh in /tmp/meshCase
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
08:08:07 Could not determine OPENFOAM 'api' value
/usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
/usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
08:08:07 Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
08:08:07 /usr/lib/openfoam/openfoam2206/bin/foamEtcFile: 134: dirname: not found
Could not determine OPENFOAM 'api' value
/usr/lib/openfoam/openfoam2206/bin/foamCleanPath: 279: sed: not found
/usr/lib/openfoam/openfoam2206/bin/foamCleanPath: 279: sed: not found
/usr/lib/openfoam/openfoam2206/bin/foamCleanPath: 279: sed: not found
08:08:07 ./Allmesh: línea 20: basename: orden no encontrada
./Allmesh: línea 23: tee: orden no encontrada
./Allmesh: línea 23: tee: orden no encontrada
Maybe someone could help me?
Best.
Re: cfdOF install not detecting OpenFOAM install
When i run the dependency checker i get this result:
Checking dependencies...
System: Linux
Runtime: Posix
OpenFOAM directory: /usr/lib/openfoam/openfoam2206
OpenFOAM installation does not include 'wmake'. Installation of cfMesh and HiSA will not be possible.
MPI is not installed. Parallel execution will not be possible.
cfMesh (CfdOF version) not found
HiSA not found
Paraview executable: /home/cierhi/Paraview/bin/paraview
gmsh executable: /home/cierhi/gmsh/gmsh
Completed CFD dependency check
I don't know why the plugin can't read 'wmake' folder if its there in OpenFOAM directory.
Best.
Checking dependencies...
System: Linux
Runtime: Posix
OpenFOAM directory: /usr/lib/openfoam/openfoam2206
OpenFOAM installation does not include 'wmake'. Installation of cfMesh and HiSA will not be possible.
MPI is not installed. Parallel execution will not be possible.
cfMesh (CfdOF version) not found
HiSA not found
Paraview executable: /home/cierhi/Paraview/bin/paraview
gmsh executable: /home/cierhi/gmsh/gmsh
Completed CFD dependency check
I don't know why the plugin can't read 'wmake' folder if its there in OpenFOAM directory.
Best.
Re: cfdOF install not detecting OpenFOAM install
may be this can help:
viewtopic.php?p=667277#p667277
and, btw, switch to a up to date FC, - 0.19 is outdated...
Gruß Herbert