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

how to manipulate pointMotionU or pointdisplacement when running

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2017, 07:08
Default
  #21
New Member
 
An Zhang
Join Date: May 2017
Posts: 1
Rep Power: 0
angela521a is on a distinguished road
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?
angela521a is offline   Reply With Quote

Old   August 16, 2024, 06:07
Lightbulb
  #22
New Member
 
Zaki
Join Date: Aug 2024
Posts: 5
Rep Power: 2
ZakiLeon is on a distinguished road
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
ZakiLeon is offline   Reply With Quote

Old   October 11, 2024, 04:50
Default Error in pointDisplacement code
  #23
New Member
 
okay
Join Date: Jan 2022
Posts: 2
Rep Power: 0
Amrita_Dixit is on a distinguished road
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.
Amrita_Dixit is offline   Reply With Quote

Old   October 11, 2024, 05:04
Default
  #24
New Member
 
Zaki
Join Date: Aug 2024
Posts: 5
Rep Power: 2
ZakiLeon is on a distinguished road
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.
ZakiLeon is offline   Reply With Quote

Old   October 11, 2024, 05:45
Default
  #25
New Member
 
Zaki
Join Date: Aug 2024
Posts: 5
Rep Power: 2
ZakiLeon is on a distinguished road
I found the answer to my previous messages, in pointMotionUx, amplitude actually means speed.
ZakiLeon 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
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


All times are GMT -4. The time now is 23:09.