Thanks for the testing! Both issues hopefully resolved.thschrader wrote: ↑Mon Mar 28, 2022 3:31 pm Just updated the
cfdof-wb, hisa-solver, cfmesh
Hisa:
when running this file
capsule_hisa.FCStd
this happens:Code: Select all
--> FOAM FATAL IO ERROR: Cannot find patchField entry for inlet file: C:/GA-NT/Anwendungen/TS_513538/CFD/case/0/epsilon/boundaryField from line 26 to line 18. From function void Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::readField(const Foam::DimensionedField<TypeR, GeoMesh>&, const Foam::dictionary&) [with Type = double; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh] in file X:/OpenFOAM-8/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C at line 184. FOAM exiting
keps.JPG
I wanted to run the new k-epsilon turbulence model with this file:
naca2412_k_epsilon.FCStd
this happens:Code: Select all
Traceback (most recent call last): File "C:\Users\thomas.schrader\AppData\Roaming\FreeCAD\Mod\CfdOF\.\_TaskPanelCfdPhysicsSelection.py", line 180, in accept FreeCADGui.doCommand("obj.TurbulenceModel = '{}'".format( File "<string>", line 1, in <module> <class 'ValueError'>: 'kEpsilon' is not part of the enumeration in naca2412_k_epsilon#PhysicsModel.TurbulenceModel
Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Tested the naca-profile from above, works.oliveroxtoby wrote: ↑Mon Mar 28, 2022 9:52 pm ...
Thanks for the testing! Both issues hopefully resolved.
But you must edit the epsilon file. The epsilon value is too low
in the written file, simplefoam crashes. However...
But interesting result. k-omega model converges, k-epsilon not
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Did you not mean to enter 2.5 m^2/s^3 = 2.5e6 mm^2/s^3? 2.5e3 mm^2/s^3 as shown is equal to 0.0025 m^2/s^3, as written. Or am I missing something?thschrader wrote: ↑Tue Mar 29, 2022 4:01 pmTested the naca-profile from above, works.oliveroxtoby wrote: ↑Mon Mar 28, 2022 9:52 pm ...
Thanks for the testing! Both issues hopefully resolved.
But you must edit the epsilon file. The epsilon value is too low
in the written file, simplefoam crashes. However...
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
oliveroxtoby wrote: ↑Tue Mar 29, 2022 7:09 pm ...
Did you not mean to enter 2.5 m^2/s^3 = 2.5e6 mm^2/s^3?
Yes, you are right, exponent must be 6, because of m^2. Tricky unit gambling...
I guess there will be some more users in the future posting a question about this
Maybe switching to m^2 input in epsilon? Like in k.
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Yes, I plan to put in a pull request to the FreeCAD base code to address this. There are a few places in CfdOF where similar illogical units are displayed. It would be good to fix them all at the same time, so if you encounter any others please let me know here. So far I have:thschrader wrote: ↑Wed Mar 30, 2022 5:41 am:oops:oliveroxtoby wrote: ↑Tue Mar 29, 2022 7:09 pm ...
Did you not mean to enter 2.5 m^2/s^3 = 2.5e6 mm^2/s^3?
Yes, you are right, exponent must be 6, because of m^2. Tricky unit gambling...
I guess there will be some more users in the future posting a question about this :)
Maybe switching to m^2 input in epsilon? Like in k.
mm^2/s^3 -> m^2/s^3 (epsilon)
mm^3/s -> m^3/s (or l/s - it can be adaptive) (volumetric flow rate)
1/mm -> 1/m (Darcy-Forchheimer inertial coeff)
1/mm^2 -> 1/m^2 (Darcy-Forchheimer viscous coeff)
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
some more...oliveroxtoby wrote: ↑Wed Mar 30, 2022 7:20 am ... so if you encounter any others please let me know here. So far I have:
mm^2/s^3 -> m^2/s^3 (epsilon)
mm^3/s -> m^3/s (or l/s - it can be adaptive) (volumetric flow rate)
1/mm -> 1/m (Darcy-Forchheimer inertial coeff)
1/mm^2 -> 1/m^2 (Darcy-Forchheimer viscous coeff)
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Thanks. The first three will actually change as you request if you set your unit system to m/kg/s. We unfortunately can't change them under mm/kg/s as they are used globally and defined this way already. The places where you requested mm should be fine as they are adaptive and should show up as the appropriate unit whether under m/kg/s or mm/kg/s.
-
- Veteran
- Posts: 3158
- Joined: Sat May 20, 2017 12:06 pm
- Location: Germany
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Thanks for this add.
- Crossleyuk
- Posts: 165
- Joined: Wed Jun 20, 2018 7:47 am
- Location: United Kingdom
- Contact:
Re: Computational Fluid Dynamics (CFD) workbench using OpenFOAM
Hello All,
Moved back to my old Forum page to keep my new VXA page tidy. I have a request for a little help on the next step of my CFD equiries on a new CFD model. This is the failure I received and the report text.
Hope you can help, realy keen to make progress
Thank you again
Michael
Moved back to my old Forum page to keep my new VXA page tidy. I have a request for a little help on the next step of my CFD equiries on a new CFD model. This is the failure I received and the report text.
Hope you can help, realy keen to make progress
Thank you again
Michael
- Attachments
-
- Body_Cyl_Axial_Complete_Rev_P2_Error_05-22-22.docx
- (29 KiB) Downloaded 48 times