CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[solids4Foam] newMovingWallVelocityFvPatch algorithm

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2020, 03:26
Default newMovingWallVelocityFvPatch algorithm
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Foamer
In the source code of newMovingWallVelocityFvPatch, I saw
Quote:
forAll(Fc_, i)
{
Fc_[i] = patch().patch()[i].centre(points);
}
That seen save position of each center of patch boundary in Fc variable, then base on ddtScheme "Euler" calculate velocity base on difference of two position in old time and present time divided to deltaT.
Quote:
Up = (Fc_ - oldFc_)/mesh.time().deltaT().value();
For ddtScheme "backward", it also use old.old.Time.
finally replace normal direction of velocity with phi
Quote:
scalarField phip =
p.patchField<surfaceScalarField, scalar>(fvc::meshPhi(U));

vectorField n = p.nf();
const scalarField& magSf = p.magSf();
scalarField Un = phip/(magSf + VSMALL);

Up += n*(Un - (n & Up));
Do you confirm my realize?
Hgholami 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
Development of PISO Algorithm Roger9318 Main CFD Forum 1 September 12, 2018 08:51
rhoSimplecFoam - which algorithm is implemented - references Manuel CFD OpenFOAM Programming & Development 7 September 8, 2014 08:28
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 11:45
About Phase Coupled SIMPLE (PC-SIMPLE) algorithm Yan Kai Main CFD Forum 0 April 18, 2007 04:48
About Phase Coupled SIMPLE (PC-SIMPLE) algorithm Yan Kai FLUENT 0 April 14, 2007 00:17


All times are GMT -4. The time now is 22:59.