|
[Sponsors] |
how to manipulate pointMotionU or pointdisplacement when running |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 23, 2017, 07:08 |
|
#21 |
New Member
An Zhang
Join Date: May 2017
Posts: 1
Rep Power: 0 |
Hi fredo490
I want to run a 2-D moving mesh case with the top and bottom walls moving inside while the left and right walls moving outside. Unfortunately, the mesh node motion is not correct,and the mesh can only move in one direction.The key options are list below: /////dynamicMeshDict dynamicFvMesh dynamicMotionSolverFvMesh; motionSolverLibs ("libfvMotionSolvers.so"); solver velocityComponentLaplacian; velocityComponentLaplacianCoeffs { component x; diffusivity directional (1 200 0); component y; diffusivity directional (1 200 0); } //////dynamicMeshDict /////pointMotionUx boundaryField { leftWall { type uniformFixedValue; uniformValue constant 50; } rightWall { type uniformFixedValue; uniformValue constant -50; } upwall { type slip; } downwall { type slip; } frontAndBack { type empty; } } /////pointMotionUx /////pointMotionUy boundaryField { leftWall { type slip; } rightWall { type slip; } upwall { type uniformFixedValue; uniformValue constant 50; } downwall { type uniformFixedValue; uniformValue constant -50; } frontAndBack { type empty; } } /////pointMotionUy can you help me with this? |
|
August 16, 2024, 06:07 |
|
#22 |
New Member
Zaki
Join Date: Aug 2024
Posts: 5
Rep Power: 2 |
Hi,
To provide a movement to a certain boundary, you need to define a movement function, and then apply this movement to certain boundary. But I still don't understand what the parameters means in the pointMotionU file. We're suppose to define a speed for the boundary but the tutorial movingCone provides only an amplitude and a frequency which one is about speed? Any answer would be appreciated |
|
October 11, 2024, 04:50 |
Error in pointDisplacement code
|
#23 |
New Member
okay
Join Date: Jan 2022
Posts: 2
Rep Power: 0 |
Hello Everyone!!
I am using he same pointDisplacement code.Since I am new to dynamicMesh implementation.I am not able to understand the error.It says " /home/dell/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/typeInfo.H:110:16: error: cannot dynamic_cast ‘r’ (of type ‘const class Foam:ointPatchField<Foam::Vector<double> >’) to type ‘class Foam::Field<Foam::Vector<double> >&’ (conversion casts away constness) 110 | return dynamic_cast<To&>(r);" How can I rectify it.I am simulating shrinkage during solidification in openfoam. |
|
October 11, 2024, 05:04 |
|
#24 |
New Member
Zaki
Join Date: Aug 2024
Posts: 5
Rep Power: 2 |
Hi,
I don't have enough information to understand your case. Are you trying to move a boundary of a fluid domain? If so, you need a dynamicMeshDict in case/constant to specify the type of movement (let say displacementLaplacian in your case) and then a file called pointDisplacement in case/0 to specify the details of the movement (frequency, amplitude). If the movement is not only for a boundary but also for a whole fluid domain, you can specify the movement directly in constant/dynamicMeshDict. Have you done all of this? Make sure to use the right solver (rhoPimpleFoam if compressible, pimpleFoam if not) as well as specifying the right one in system/controlDict. |
|
October 11, 2024, 05:45 |
|
#25 |
New Member
Zaki
Join Date: Aug 2024
Posts: 5
Rep Power: 2 |
I found the answer to my previous messages, in pointMotionUx, amplitude actually means speed.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
License trouble: ANSLIC_ADMIN, FLEXlm not running, but two lmgrd processes running! | dancoz87 | ANSYS | 17 | November 14, 2016 02:10 |
Something weird encountered when running OpenFOAM in parallel on multiple nodes | xpqiu | OpenFOAM Running, Solving & CFD | 2 | May 2, 2013 05:59 |
What do you CFD guys do during a long simulation running? | bearcat | Main CFD Forum | 5 | July 23, 2009 09:08 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 10:38 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 08:52 |