CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problem running pimpleFoam in magnus effect simulation (https://www.cfd-online.com/Forums/openfoam-solving/236789-problem-running-pimplefoam-magnus-effect-simulation.html)

boffin5 June 15, 2021 13:27

Problem running pimpleFoam in magnus effect simulation
 
1 Attachment(s)
First off, I am using openFoam8.
This is to do a simulation using pimpleFoam to simulate a rotating boundary layer around a cylinder in order to produce the magnus effect.


My goal is to eventually incorporate this into a car simulation, in lieu of rotating meshes at the wheels, but I digress.


I modelled the cylinder in solidworks, and get a nice mesh with 2 boundary layers via snappyHexMesh. PotentialFoam runs okay. But when I run pimpleFoam, I get this error:


Code:

                        Create time
 

 Create mesh for time = 0
 

 

 PIMPLE: No convergence criteria found
 

 

 PIMPLE: No corrector convergence criteria found
        Calculations will do 2 corrections
 

 

 PIMPLE: Operating solver in transient mode with 2 outer correctors
 

 

 Reading field p
 

 Reading field U
 

 Reading/calculating face flux field phi
 

 Selecting incompressible transport model Newtonian
 Selecting turbulence model type RAS
 Selecting RAS turbulence model kEpsilon
 [1] 
 [1] 
 [1] --> FOAM FATAL IO ERROR: 
 [1] Illegal dictionary entry or environment variable name "internalField"
 Valid dictionary entries are 1(type)
 [1] 
 [1] file: /home/boffin5/cfdaero/mag-cyl/processor1/0/k/cyclicACMI from line 21 to line 21.
 [1] 
 [1]    From function bool Foam::primitiveEntry::expandVariable(const Foam::variable&, const Foam::dictionary&)
 [1]    in file db/dictionary/primitiveEntry/primitiveEntry.C at line 92.
 [1] 
 FOAM parallel run exiting
  P { margin-bottom: 0.08in }

I read this as a problem with my 0/k file, and it is weird because nowhere in my code is "cyclicAMI." As a basis, I used the pimpleFoam tutorial for a propeller, but after many tries, as evidenced by the multiple // marks in the attached, still can't get it to work. My case files are included in the attached. Thanks again to all who have helped me in the past, and I hope that you might be able to do so once again.

boffin5 June 15, 2021 14:53

problem solved, I think
 
It turns out that I have to be careful to put the #includeEtc "caseDicts/setConstraintTypes" line just after 'boundaryField' line, and not before, in each of the 0/* files.
This always seems to happen, that after trying hard to solve a problem and then giving up and bothering people for help, I find the answer. Not Murphy's law, but there must be a name for it.
But I will assuredly have more problems!


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