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] Case setup for solids4Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2023, 16:04
Default Case setup for solids4Foam
  #1
New Member
 
habaw
Join Date: Feb 2023
Posts: 7
Rep Power: 3
habaw is on a distinguished road
Hello

I have been utilizing the solids4Foam toolbox to simulate turbulent flow(Water) through a 2D channel with flexible obstructions using RANS model Kepsilon and sstKomega. Specifically, I have successfully loaded solids4Foam version 2 in conjunction with OpenFOAM/9

I am using the perpendicular flap as an example to setup my case. the velocity is 1.5m/s with Re 42000 the channel has a height of 5cm and a square obstruction(fixed at the bottom of the wall) 2.5cm is located 37.5cm downstream of the inlet and 125cm u/s of the outlet. Fully developed flow at the inlet.

My first issue is How can i setup the mechanical property of the interface I was using rubber type linearElastic; so that I can visualize a deflection because when ever I use a smaller E the simulation crashes with floatingpointexception I see that its because the deflection is very big and the K values become very big.

I need to know how I can set up the mechanical property properly.

Thank you
Attached Files
File Type: zip constant.zip (86.7 KB, 0 views)
File Type: zip system.zip (11.0 KB, 0 views)
File Type: zip 0.zip (6.4 KB, 1 views)
habaw is offline   Reply With Quote

Old   October 10, 2023, 12:37
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
What do you mean by "how I can set up the mechanical property properly"?

This depends on what solid material you want to simulate. For example, if you are simulating aluminium and if it is expected to stay in the elastic regime, then you would look up the Young's modulus (E) and Poisson's ratio (nu) for your particular aluminium alloy.
bigphil is offline   Reply With Quote

Old   October 10, 2023, 21:28
Default
  #3
New Member
 
habaw
Join Date: Feb 2023
Posts: 7
Rep Power: 3
habaw is on a distinguished road
Hello
Thank you for the replay

What I mean is I set up my case and my simulation works when I use a rigid material with higher modulus of elasticity there is no visible deflection. Whenever I reduce the elasticity the simulation fails with following error and the simulation stops after running for some time . All the values diverge (logsolids4Foam)
What could be the reason for this?


ERROR:
[0] #0 Foam::error:rintStack(Foam::Ostream&) at ??:?
[0] #1 Foam::sigFpe::sigHandler(int) at ??:?
[0] #2 ? in "/cvmfs/soft.computecanada.ca/gentoo/2020/lib64/libc.so.6"
[0] #3 Foam::multiply(Foam::Field<double>&, Foam::UList<double> const&, Foam::UList<double> const&) at ??:?
[0] #4 Foam::tmp<Foam:imensionedField<double, Foam::volMesh> > Foam:perator*<Foam::volMesh>(Foam::tmp<Foam:im ensionedField<double, Foam::volMesh> > const&, Foam:imensionedField<double, Foam::volMesh> const&) at ??:?
[0] #5 Foam::RASModels::kEpsilon<Foam::IncompressibleMome ntumTransportModel<Foam::kinematicTransportModel> >::correct() at ??:?
[0] #6 Foam::fluidModels:impleFluid::evolve() at ??:?
[0] #7 Foam::fluidSolidInterfaces::AitkenCouplingInterfac e::evolve() at ??:?
[0] #8 ? at ??:?
[0] #9 __libc_start_main in "/cvmfs/soft.computecanada.ca/gentoo/2020/lib64/libc.so.6"
[0] #10 ? at ??:?
[gra136:10338:0:10338] Caught signal 8 (Floating point exception: tkill(2) or tgkill(2))
==== backtrace (tid: 10338) ====
0 0x0000000000020753 ucs_debug_print_backtrace() /tmp/ebuser/avx2/UCX/1.8.0/GCCcore-9.3.0/ucx-1.8.0/src/ucs/debug/debug.c:653
1 0x0000000000038980 killpg() ???:0
2 0x0000000000038901 __libc_signal_restore_set() /cvmfs/soft.computecanada.ca/gentoo/2020/usr/src/debug/sys-libs/glibc-2.30-r8/glibc-2.30/signal/../sysdeps/unix/sysv/linux/internal-signals.h:84
3 0x0000000000038980 killpg() ???:0
4 0x000000000061acce Foam::multiply() ???:0
5 0x00000000003990b0 Foam:perator*<Foam::volMesh>() ???:0
6 0x00000000001b6efe Foam::RASModels::kEpsilon<Foam::IncompressibleMome ntumTransportModel<Foam::kinematicTransportModel> >::correct() ???:0
7 0x00000000003d04cc Foam::fluidModels:impleFluid::evolve() ???:0
8 0x00000000003f442d Foam::fluidSolidInterfaces::AitkenCouplingInterfac e::evolve() ???:0
9 0x00000000004025db main() ???:0
10 0x0000000000023e1b __libc_start_main() /cvmfs/soft.computecanada.ca/gentoo/2020/usr/src/debug/sys-libs/glibc-2.30-r8/glibc-2.30/csu/../csu/libc-start.c:308
11 0x0000000000402b1a _start() ???:0
Attached Images
File Type: png logsolids4Foam.png (85.7 KB, 5 views)
habaw is offline   Reply With Quote

Old   October 11, 2023, 06:18
Default
  #4
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
For this problem, if the stiffness of the solid is too low, the solver may fail for multiple reasons, such as, the fluid mesh becomes excessively distorted, the solid solver may struggle to converge, the fluid-solid coupling procedure may struggle to converge.
bigphil is offline   Reply With Quote

Old   October 15, 2023, 16:47
Default
  #5
New Member
 
habaw
Join Date: Feb 2023
Posts: 7
Rep Power: 3
habaw is on a distinguished road
Thank you for your prompt replay


I have noticed that my turbulent case with RANS model runs perfectly with openFoam only and also it runs in solids4Foam whenever the interface/flap/ is rigid. Even the slightest flexibility on the flap crushes the case file.
Also I tried with the tutorials for perpendicular flap by changing the turbulence property into RANS and simulation diverges after some iteration.

Could I get any insight on this issue please.
Thank you
habaw is offline   Reply With Quote

Old   October 20, 2023, 04:59
Default
  #6
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 155
Rep Power: 17
be_inspired is on a distinguished road
Hi,

Could it be possible to impose the deformation of the surface giving a displacement field? That is, use the same inputs as for the laplacian solver.

I want to impose the deformation of the flap along the flap length.

Best Regards
Marcelino
be_inspired is offline   Reply With Quote

Old   October 20, 2023, 08:02
Default
  #7
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
If the displacement field is known, then I guess it would not be an FSI problem. In that case, you can take a look at the various mesh motion solvers and their boundary conditions.
bigphil is offline   Reply With Quote

Old   October 20, 2023, 10:15
Default
  #8
Senior Member
 
M. Montero
Join Date: Mar 2009
Location: Madrid
Posts: 155
Rep Power: 17
be_inspired is on a distinguished road
I want to use RBF solver because I am managing large deformations. Laplacian approach is not working properly in those cases after several movements and slerp is only available for solid body movements.

I have compiled RBFMeshMotionSolver ( available in solids4foam) into Openfoam v2210 and v2012. For a mesh of 2 M cells, in serial it does nothing after 1 hour ( no errors, nothing, only taking a lot of memory). In parallel, it fails because of an error.

terminate called after throwing an instance of 'std::bad_alloc'
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
[node021:15401] *** Process received signal ***
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
[node021:15402] *** Process received signal ***
what(): std::bad_alloc
[node021:15404] *** Process received signal ***
[node021:15404] Signal: Aborted (6)
[node021:15404] Signal code: (-6)
[node021:15401] Signal: Aborted (6)
[node021:15401] Signal code: (-6)
[node021:15402] Signal: Aborted (6)
[node021:15402] Signal code: (-6)

Last edited by be_inspired; October 23, 2023 at 10:29.
be_inspired is offline   Reply With Quote

Old   March 11, 2024, 16:29
Default
  #9
New Member
 
habaw
Join Date: Feb 2023
Posts: 7
Rep Power: 3
habaw is on a distinguished road
Is it possible to conducted a 3D Solids4Foam case in LES in parallel. But It works perfectly fine in series but not parallel. A mesh tolerance error occurs.
Please need you help and Thank you
habaw is offline   Reply With Quote

Old   March 15, 2024, 06:37
Default
  #10
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Are you using OpenFOAM-9? If so, you could try OpenFOAM-2012 (or newer) and check if that works.
bigphil is offline   Reply With Quote

Old   March 15, 2024, 12:53
Default
  #11
New Member
 
habaw
Join Date: Feb 2023
Posts: 7
Rep Power: 3
habaw is on a distinguished road
Thank you for your reply
Yes I am using OF9 which I compiled on graham cluster computed Canada to run my case. I tried compiling using v2012 but was unable.
What change make parallel run work in 2012 but not OF9 if I may ask?
habaw is offline   Reply With Quote

Old   March 22, 2024, 13:58
Default
  #12
New Member
 
habaw
Join Date: Feb 2023
Posts: 7
Rep Power: 3
habaw is on a distinguished road
I tried the 2012 version but still was not able to run the case in parallel same as OF9. So I run my case in series first and used the latest time to run in parallel but the following error again occurs for every processor. Please help? Thank You
/Below is portion of the error message/



--> FOAM FATAL ERROR:
[2] face 36 area does not match neighbour by 190.244% -- possible face ordering problem.
patchrocBoundary2to1 my area:0.466667 neighbour area:0.0116666 matching tolerance:0.000308029
Mesh face:100349 vertices:4((3.67606e-11 0 0) (3.66314e-11 0.133333 0) (-3.5 0.266667 0) (-3.5 0.133333 0))
If you are certain your matching is correct you can increase the 'matchTolerance' setting in the patch dictionary in the boundary file.
Rerun with processor debug flag set for more information.
[2]
[2] From function virtual void Foam:rocessorPolyPatch::calcGeometry(Foam::Pstre amBuffers&)
[2] in file meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C at line 269.
[2]
FOAM parallel run exiting
habaw 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
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 07:35
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
Piston-Cylinder Pressure Driven Flow Case Setup Ballistics_Sim OpenFOAM Pre-Processing 0 February 2, 2018 10:11
Can`t Setup ONERA optimization case McAero SU2 6 November 15, 2017 09:29
OpenFOAM Case Setup Needed mpl CFD Freelancers 4 October 10, 2013 17:14


All times are GMT -4. The time now is 12:55.