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] question in updateForces class of fluidSolidInterface.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2020, 23:21
Default question in updateForces class of fluidSolidInterface.C
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Foamer
In fluidSolidInterface.C, in line 2115 (class updateForce), after transferring fluid forces to solid, it mentioned "Set interface pressure for elasticWallPressure boundary condition" as:
Quote:
forAll(fluid().globalPatches(), i)
{
if
(
isA<elasticWallPressureFvPatchScalarField>
(
fluid().p().boundaryField()[fluidPatchIndices()[i]]
)
)
{
const_cast<elasticWallPressureFvPatchScalarField&>
(
refCast<const elasticWallPressureFvPatchScalarField>
(
fluid().p().boundaryField()[fluidPatchIndices()[i]]
)
).prevPressure() = fluid().patchPressureForce(fluidPatchIndices()[i]);
}
}
My question is why ".prevPressure()" is mentioned here?
what is aim of this part?
similar case is in updateMovingWallPressureAcceleration class "prevAcceleration()".
Thanks,

Last edited by Hgholami; January 10, 2020 at 01:13.
Hgholami is offline   Reply With Quote

Old   January 10, 2020, 01:13
Default
  #2
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
This part of code relative to elasticWallPressure boundary condition, so in its boundary condition, we need prevPressure_ and prevAcceleration_ in line 334 and 342.
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
The udf.h headers are unable to open- in VISUAL STUDIO 13 sanjeetlimbu Fluent UDF and Scheme Programming 4 May 2, 2016 05:38
tailor made class, wmake libso successfully, but run failed. sharonyue OpenFOAM Programming & Development 1 November 20, 2014 21:49
OF-2.2.x: Derived class from cellZone and "undefined symbol error" A_Pete OpenFOAM Programming & Development 6 April 28, 2014 01:53
Possible bug in OpenFoam Interpolation class MMC15 OpenFOAM Bugs 2 March 23, 2014 12:55
Nested class and inheritance permissions MMC15 OpenFOAM Programming & Development 0 December 20, 2013 10:16


All times are GMT -4. The time now is 08:36.