Does anybody bring the simulation attached to run

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

Does anybody bring the simulation attached to run

Post by Sidemountyucatan »

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Switzerland (de_CH)


I suppose the interrupt of the simulation occurs because of "No MRF models present"- at least I suppose. What does it mean ?
Attachments
cleaningfluidtest.FCStd
(71.18 KiB) Downloaded 65 times
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Does anybody bring the simulation attached to run

Post by oliveroxtoby »

Sidemountyucatan wrote: Fri Feb 25, 2022 3:27 pm OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Switzerland (de_CH)
It runs fine for me. Uses around 4GB of memory - perhaps you are running out?
I suppose the interrupt of the simulation occurs because of "No MRF models present"- at least I suppose. What does it mean ?
No, this is a normal part of the output.
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: Does anybody bring the simulation attached to run

Post by NewJoker »

Sidemountyucatan wrote: Fri Feb 25, 2022 3:27 pm I suppose the interrupt of the simulation occurs because of "No MRF models present"- at least I suppose. What does it mean ?
MRF stands for Multiple Reference Frame. It's a technique used in OpenFOAM to simulate rotating machinery. It's not supported by the CfdOF workbench so the message you get is perfectly normal.
herbk
Veteran
Posts: 2657
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: Does anybody bring the simulation attached to run

Post by herbk »

Hi,
NewJoker wrote: Sat Feb 26, 2022 11:01 am MRF stands for Multiple Reference Frame. It's a technique used in OpenFOAM to simulate rotating machinery.
I#m very interessted at this technique, coud you point me to some informations how to release it ?
Gruß Herbert
User avatar
NewJoker
Veteran
Posts: 3014
Joined: Sun Oct 11, 2020 7:49 pm

Re: Does anybody bring the simulation attached to run

Post by NewJoker »

herbk wrote: Sun Feb 27, 2022 12:12 pm I#m very interessted at this technique, coud you point me to some informations how to release it ?
You would have to define this manually, using OpenFOAM syntax. The CfdOF module can help you with the initial setup but the rest would have to be done outside of FreeCAD. The solver used for MRF is just simpleFoam but you have to set the additional MRFProperties. Check the examples in OpenFOAM tutorials library. Also, here are some YouTube videos that can be useful:
https://www.youtube.com/watch?v=KccubqHQS-0
https://www.youtube.com/watch?v=8JDKLN1G6T8
Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

Re: Does anybody bring the simulation attached to run

Post by Sidemountyucatan »

oliveroxtoby wrote: Fri Feb 25, 2022 7:40 pm
Sidemountyucatan wrote: Fri Feb 25, 2022 3:27 pm OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Switzerland (de_CH)
It runs fine for me. Uses around 4GB of memory - perhaps you are running out?

I don't think so. There is 16 GB installed. Any other reason you might consider ?
I suppose the interrupt of the simulation occurs because of "No MRF models present"- at least I suppose. What does it mean ?
No, this is a normal part of the output.
Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

Re: Does anybody bring the simulation attached to run

Post by Sidemountyucatan »

Below I post the OPenFoam messages. Can anybody find the reason for the simulation error ? Too low RAM should not be the reason as Olivertoxoby mentioned. (16 GB installed).

OpenFoam output:

08:49:43 flag
08:49:43 flag2
08:49:43 During initialization the error "No module named 'DraftSnap'" occurred in C:\Users\Admin\AppData\Roaming\FreeCAD\Mod\flamingo\InitGui.py
08:49:43 Please look into the log file for further information
08:50:27 Adding selection Fusion001:Face19
08:50:27 Selection: Compound Fusion001:Face19 @ None
08:50:57 Adding selection Fusion001:Face20
08:50:57 Selection: Compound Fusion001:Face20 @ None
08:51:01 Adding selection Fusion001:Face20
08:51:01 Selection: Compound Fusion001:Face20 @ None
08:51:01 Fusion001:Face20 already in reference list
08:52:18 Writing case to folder C:\Users\Admin\AppData\Local\Temp
08:52:18 Matching boundary conditions ...
08:52:19 Populating createPatchDict to update BC names
08:52:19 Successfully wrote case to folder C:\Users\Admin\AppData\Local\Temp
08:52:21 Solver run command: C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\usr\bin\bash --login -O expand_aliases -c echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/Admin/AppData/Local/Temp/case" && ./Allrun
08:52:21 C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\usr\bin\bash --login -O expand_aliases -c echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/Admin/AppData/Local/Temp/case" && ./Allrun
08:52:21 Raw command: ['C:/Program Files/FreeCAD 0.19/bin\\python.exe', '-u', 'C:\\Users\\Admin\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/Admin/AppData/Local/Temp/case" && ./Allrun']
08:52:23 Sourcing OpenFOAM environment...
08:52:23 openfoam: windows support (mingw64) is runtime only
08:52:35 /*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 79e353b84e-20201222 OPENFOAM=2012
Arch : "LSB;label=32;scalar=64"
Exec : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\createPatch.exe -overwrite
Date : Feb 28 2022
Time : 08:53:06
Host : DESKTOP-IMUA8K5
PID : 9696
08:53:06 I/O : uncollated
Case : C:/Users/Admin/AppData/Local/Temp/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

08:53:06 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

08:53:06 Create polyMesh for time = 0

08:53:07 Reading "system/createPatchDict"

08:53:45 Adding new patch inlet as patch 2 from
{
type patch;
}

Adding new patch outlet as patch 3 from
{
type patch;
}

Adding new patch wall as patch 4 from
{
type wall;
}

Adding new patch defaultFaces as patch 5 from
{
type patch;
}

08:53:45
08:53:45 --> FOAM Warning :
From const Foam::HashTable<Foam::List<int> >& Foam::polyBoundaryMesh::groupPatchIDs() const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 510
Removed patchGroup 'wall' which clashes with patch 4 of the same name.
08:53:46 --> 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_.*"
Moving faces from patch patch_0_0 to patch 5
08:53:46 Moving faces from patch patch_0_1 to patch 5
08:53:46
Doing topology modification to order faces.

08:53:46 Not synchronising points.

Removing patches with no faces in them.

Removing zero-sized patch patch_0_0 type wall at position 0
Removing zero-sized patch patch_0_1 type wall at position 1
08:53:54 Removing patches.
08:53:54 Writing repatched mesh to 0

08:53:54 End

08:54:21 /*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 79e353b84e-20201222 OPENFOAM=2012
Arch : "LSB;label=32;scalar=64"
Exec : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\potentialFoam.exe -initialiseUBCs -pName p -writep
Date : Feb 28 2022
Time : 08:54:22
Host : DESKTOP-IMUA8K5
PID : 4160
I/O : uncollated
08:54:22 Case : C:/Users/Admin/AppData/Local/Temp/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

08:54:22 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

08:54:22 Create mesh for time = 0

08:54:22
potentialFlow: Operating solver in PISO mode

Reading velocity field U

08:54:54 Constructing pressure field p

08:54:56 Constructing velocity potential field Phi

08:54:56 No MRF models present


Calculating potential flow
08:54:56 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:54:59 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:00 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:02 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:03 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:04 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:05 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:06 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:07 GAMG: Solving for Phi, Initial residual = 0, Final residual = 0, No Iterations 0
08:55:08 Continuity error = 0
08:55:09 Interpolated velocity error = 0
08:55:10
Calculating approximate pressure field
08:55:10
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Does anybody bring the simulation attached to run

Post by chrisb »

Sidemountyucatan wrote: Mon Feb 28, 2022 7:59 am OpenFoam output:
Please edit your post above and include the output in code tags (instead of colour) for improved readability due to preserved spaces.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Does anybody bring the simulation attached to run

Post by oliveroxtoby »

Sidemountyucatan wrote: Mon Feb 28, 2022 7:59 am Below I post the OPenFoam messages. Can anybody find the reason for the simulation error ? Too low RAM should not be the reason as Olivertoxoby mentioned. (16 GB installed).

From your output it looks like you may have changed boundary conditions without re-generating the mesh. From the 'read this first' post:
oliveroxtoby wrote: Tue Jan 15, 2019 8:51 pm
  • Please re-do all steps from scratch to check the reproducibility of the problem from the saved state that you provide: Write mesh; Run mesher; Write case; Run solver. If changes are made to the model between generating the mesh and running the solver, the cases can get out of sync.
Sidemountyucatan
Posts: 114
Joined: Wed Apr 17, 2019 2:08 pm

Re: Does anybody bring the simulation attached to run

Post by Sidemountyucatan »

oliveroxtoby wrote: Mon Feb 28, 2022 8:09 am
Sidemountyucatan wrote: Mon Feb 28, 2022 7:59 am Below I post the OPenFoam messages. Can anybody find the reason for the simulation error ? Too low RAM should not be the reason as Olivertoxoby mentioned. (16 GB installed).

From your output it looks like you may have changed boundary conditions without re-generating the mesh. From the 'read this first' post:
Hm, might be. I do not remember all my actions in detail at this time but I will try to take care of that and try it once more.

oliveroxtoby wrote: Tue Jan 15, 2019 8:51 pm
  • Please re-do all steps from scratch to check the reproducibility of the problem from the saved state that you provide: Write mesh; Run mesher; Write case; Run solver. If changes are made to the model between generating the mesh and running the solver, the cases can get out of sync.
Post Reply