CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Attempt to cast type dynamicOversetFvMesh to type dynamicMotionSolverFvMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2021, 00:35
Default Attempt to cast type dynamicOversetFvMesh to type dynamicMotionSolverFvMesh
  #1
New Member
 
Abhijit
Join Date: Aug 2020
Location: India
Posts: 27
Rep Power: 5
Redrakham is on a distinguished road
I am doing an OpenFoam case with two cylinders in tandem arrangement with overset mesh- a background mesh, one refinement zone and two cylinder mesh. I am using overPimpleDyMFoam but got this error: Attempt to cast type dynamicOversetFvMesh to type dynamicMotionSolverFvMesh.

This is my dynamicMeshDict:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus-overset |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

motionSolverLibs ("libsixDoFRigidBodyMotion.so");
dynamicFvMesh dynamicOversetFvMesh;
/*
dynamicOversetFvMeshCoeffs
{
// layerRelax 0.3;
}
*/

//motionSolverLibs ( "libfvMotionSolvers.so" );
//
//solver displacementLaplacian;
//
//displacementLaplacianCoeffs
//{
// diffusivity uniform 1;
//}


solver sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{
patches (cylinder1);
patches (cylinder2);


innerDistance 100.0;
outerDistance 101.0;

mass 1.5707963;
centreOfMass (0 0 0);
momentOfInertia (1 1 1);
orientation
(
1 0 0
0 1 0
0 0 1
);
velocity (0 0 0);
acceleration (0 0 0);
angularMomentum (0 0 0);
torque (0 0 0);

g (0 0 0);
rho rhoInf;
rhoInf 1;
accelerationRelaxation 0.9;
accelerationDamping 0.95;
report on;
reportToFile on;
solver
{
type Newmark;
}

constraints
{
yLine_1
{
sixDoFRigidBodyMotionConstraint line;
direction (0 1 0);
}

noAxis_1
{
sixDoFRigidBodyMotionConstraint orientation;
}
}

restraints
{
verticalSpring_1
{
sixDoFRigidBodyMotionRestraint linearSpring;

anchor (0 2 0);
refAttachmentPt (0 0 0);
stiffness 1.72257;
damping 0;
restLength 2;
}
}

}
************************************************** *********************** //

Last edited by Redrakham; March 8, 2021 at 06:04.
Redrakham is offline   Reply With Quote

Old   March 8, 2021, 06:08
Default
  #2
New Member
 
Abhijit
Join Date: Aug 2020
Location: India
Posts: 27
Rep Power: 5
Redrakham is on a distinguished road
This is my case files..
Attached Files
File Type: zip moving_cylinder.zip (163.1 KB, 11 views)
Redrakham is offline   Reply With Quote

Old   March 9, 2021, 16:35
Default Athanasios Niotis
  #3
New Member
 
Athanasios Niotis
Join Date: Aug 2018
Posts: 12
Rep Power: 7
thanosniotis is on a distinguished road
Hello there,

I do have the same problem with the overset. My case runs with version v1906 but not with version v1912. If you find any solution please post it.

Best regards,
Athanasios Niotis
thanosniotis is offline   Reply With Quote

Old   March 10, 2021, 00:21
Default
  #4
New Member
 
Abhijit
Join Date: Aug 2020
Location: India
Posts: 27
Rep Power: 5
Redrakham is on a distinguished road
You can refer to this thread: multiple patches in toposet and setfields overset problem for sixdofrigidbodymotion.
But the problem of writing the sixdofrigidbodystate still remains. I work around this problem by 'awk' command from log.solver.
Redrakham is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instability in buoyantSimpleFoam Avandri OpenFOAM Running, Solving & CFD 0 August 7, 2020 16:13
time step continuity problem in VAWT simulation lpz_michele OpenFOAM Running, Solving & CFD 5 February 22, 2018 19:50
inlet pressure is higher than outlet pressure for fan sivakumar OpenFOAM Pre-Processing 16 December 30, 2017 14:16
Divergent temperature in chtMultiRegion(Simple)Foam akrasemann OpenFOAM Running, Solving & CFD 13 March 24, 2014 02:54
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16


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