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 with interDyMFoam (https://www.cfd-online.com/Forums/openfoam-solving/81859-problem-interdymfoam.html)

afo3 November 9, 2010 07:20

problem with interDyMFoam
 
hello everybody,

I'm trying to run a case like the floating object tutorial,just with another object floating, made by me.
I compile of files, but when I try to run the simulation , I have the following error :


Selecting motion solver: displacementLaplacian

FOAM FATAL IO ERROR:
Unknown patchField type sixDoFRigidBodyDisplacement for patch type wall

Valid patchField types are :

21
(
angularOscillatingDisplacement
angularOscillatingVelocity
calculated
cyclic
empty
fixedNormalSlip
fixedValue
global
mixed
oscillatingDisplacement
oscillatingVelocity
processor
slip
surfaceDisplacement
surfaceSlipDisplacement
symmetryPlane
timeVaryingUniformFixedValue
uniformFixedValue
value
wedge
zeroGradient
)


file: /media/3C981ADB981A940C/kubtestDYN/0/pointDisplacement::boundaryField::cube_region0 from line 56 to line 63.

From function PointPatchField<Type>::New(const pointPatch&, const Field<Type>&, const dictionary&)
in file /home/roma/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/newPointPatchField.C at line 110.

FOAM exiting



any idea?

thanks!!

colinB November 9, 2010 10:35

Thats an easy one.

It says you have the patchField type: sixDoFRigidBodyDisplacement
for the patch:
wall

where it is just allowed to use one of these:

angularOscillatingDisplacement
angularOscillatingVelocity
calculated
cyclic
empty
fixedNormalSlip
fixedValue
global
mixed
oscillatingDisplacement
oscillatingVelocity
processor
slip
surfaceDisplacement
surfaceSlipDisplacement
symmetryPlane
timeVaryingUniformFixedValue
uniformFixedValue
value
wedge
zeroGradient


so you have to change your patchField type to one of the 21 above mentioned types.
But I guess you probably want to have something different with 6DOFs but don't ask me how that one works.

hope that helps ;)
regards Colin

afo3 November 9, 2010 10:53

thank you ColinB : in effect, I could have explained better my issue. :)

I don't want to change patchField, I want exactly sixDoFRigidBodyDisplacement , that is the one used in the floatingObject tutorial. What I can't understand is why I have this error, while running the tutorial this patchField gives no problems.
The most I could "discover" is that the 21 patchFields mentioned are in the folder OpenFoam-1.7.x/src/OpenFoam/fields/pointPatchFields ,
while
sixDoFRigidBodyDisplacement is in the folder OpenFoam-1.7.x/src/postProcessing/functionObjects/forces/pointPatchFields ...

anyone can help please??

maybe can help to know that I made the object starting from a stl file with snappyHexMesh


Ralph M November 10, 2010 13:03

I think you'd better spend your time on the shipFoam-problem? The code runs now at my computer; however it's exploding at the moment. Not sure about the cause at this stage but it could be because of the transformation from OF 1.6 to 1.7.1.

Maybe you'd have a better look in snappyHexMesh (sHM) to create the grid that YOU want? Then you can start right away with a good grid when the ShipFoam becomes available.

Cheers,

Ralph

afo3 November 10, 2010 13:20

Quote:

Originally Posted by Ralph M (Post 282975)
I think you'd better spend your time on the shipFoam-problem? The code runs now at my computer; however it's exploding at the moment. Not sure about the cause at this stage but it could be because of the transformation from OF 1.6 to 1.7.1.

Maybe you'd have a better look in snappyHexMesh (sHM) to create the grid that YOU want? Then you can start right away with a good grid when the ShipFoam becomes available.

Cheers,

Ralph

yes Ralph, you're definitely right.
this is a post I wrote before you answered me in the other topic.
what do you mean exactly when you say "the code is exploding"?
and why do you think the grid I have is not the grid I want? :)
I have a VOF divided into two phases (air and water) with the "shape" of the ship in the middle :)

anyway, thank you very much for your advices!!
you're doing a work that will be precious! (obviulsy not just for me and you ;))

Cheers,

Michele

Ralph M November 10, 2010 13:36

Quote:

Originally Posted by afo3 (Post 282980)
yes Ralph, you're definitely right.
this is a post I wrote before you answered me in the other topic.
what do you mean exactly when you say "the code is exploding"?
and why do you think the grid I have is not the grid I want? :)
I have a VOF divided into two phases (air and water) with the "shape" of the ship in the middle :)

anyway, thank you very much for your advices!!
you're doing a work that will be precious! (obviulsy not just for me and you ;))

Cheers,

Michele

Haha, the courant number went to infinity during the calculation and the solver stopped because the solution blew up.

About the meshing: I'm working on OF for a couple of weeks now and used to be very pleased with the "standard" result of sHM. However, due to computational cost it may be effective to have a thorough look at your mesh, i.e. a HO grid (circular from the front view, rectangular from the top) and more cell refinements near the ship. Send me an email and I'll show you what I have in mind.

OT: code is now working with a smaller "maxCo" and seems to be doing fine (for the moment :P)

pvreis April 18, 2020 00:26

Hey guys!
Have you solved that problem? I have the same issue. I want to run sixDoFRigidBody using pimpleDyMFoam for two bodies.

"
Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: displacementLaplacian
[4]
[4]
[4] --> FOAM FATAL IO ERROR:
[4] Unknown patchField type sixDoFRigidBodyDisplacement for patch type wall

Valid patchField types are :

30
(
angularOscillatingDisplacement
angularOscillatingVelocity
calculated
codedFixedValue
cyclic
cyclicACMI
cyclicAMI
cyclicSlip
empty
fixedNormalSlip
fixedValue
nonuniformTransformCyclic
oscillatingDisplacement
oscillatingVelocity
processor
processorCyclic
slip
solidBodyMotionDisplacement
surfaceDisplacement
surfaceSlipDisplacement
symmetry
symmetryPlane
timeVaryingMappedFixedValue
timeVaryingUniformFixedValue
uniformFixedValue
uniformInterpolatedDisplacement
value
waveDisplacement
wedge
zeroGradient
)
"


All times are GMT -4. The time now is 03:19.