|
[Sponsors] |
March 4, 2020, 15:46 |
|
#521 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
This is the result after 1.8sec and everything is still stable. Edit: added result for 4.1 sec and still stable. The only issue that I noticed is a small interface gap at the tip. Although, the fsi implicit loop converged within 10 iterations, due the fact that FSI residual2 norm reached the convergence target, relative fsi residual is still pretty high. Code:
Time = 4.037, iteration: 10 Maximal accumulated displacement of interface 0: 2.84777e-06 Evolving fluid model: icoFluid Courant Number mean: 0.00632674 max: 0.0718039 velocity magnitude: 0.54181 DILUPBiCG: Solving for Ux, Initial residual = 3.77018e-08, Final residual = 6.16616e-11, No Iterations 1 DILUPBiCG: Solving for Uy, Initial residual = 8.63068e-08, Final residual = 8.68231e-11, No Iterations 1 GAMG: Solving for p, Initial residual = 0.00134423, Final residual = 8.13287e-07, No Iterations 54 GAMG: Solving for p, Initial residual = 0.00128165, Final residual = 9.74279e-07, No Iterations 26 time step continuity errors : sum local = 2.99208e-12, global = -5.47319e-13, cumulative = 4.25085e-08 GAMG: Solving for p, Initial residual = 0.000250223, Final residual = 9.41756e-07, No Iterations 24 GAMG: Solving for p, Initial residual = 5.73513e-05, Final residual = 9.30874e-07, No Iterations 6 time step continuity errors : sum local = 2.85823e-12, global = 6.65465e-13, cumulative = 4.25092e-08 GAMG: Solving for p, Initial residual = 1.84019e-05, Final residual = 9.69782e-07, No Iterations 6 GAMG: Solving for p, Initial residual = 4.20156e-06, Final residual = 7.93278e-07, No Iterations 2 time step continuity errors : sum local = 2.43573e-12, global = 4.26684e-13, cumulative = 4.25096e-08 Setting traction on solid interfaces Interpolating face values using GGI Total force on fluid interface 0: (-0.0444829 -0.546845 9.54719e-16) Total force on solid interface 0: (0.0444829 0.546845 -9.54719e-16) Evolving solid solver Corr 0, relative residual = 0.184884 Corr 102, relative residual = 0 PCG: Solving for D, Initial residual = 1.94804e-06, Final residual = 9.85649e-10, No outer iterations = 102 Max relative residual = 0.184884, Relative residual = 0, enforceLinear = false Interpolating point values using GGI Interpolating point values using GGI FSI relative residual1 norm for interface 0: 0.00161201 FSI residual2 norm for interface 0: 1.76992e-07 ExecutionTime = 22561.8 s ClockTime = 22572 s @Dr. Cardiff, is there any reason that we choose to return the minimum instead of the maximum here? Code:
// For this interface, the residual is defined as the minimum of // residualNorm1 and residualNorm2 const scalar residualInterfaceI = min(residualNorm1, residualNorm2); D. Khazaei Last edited by Daniel_Khazaei; March 4, 2020 at 18:21. |
||
March 5, 2020, 03:28 |
Error in RBFMeshMotionSolver
|
#522 | |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi all,
Following up on my earlier posts on the RBFMeshMotionSolver (see below), I added an Info-statement to RBFMeshMotionSolver.C, to see what exactly is causing the error I'm getting. It turns out that whenever I use RBFMeshMotionSolver (e.g. with the beamInCrossFlow/linearGeometryElasticBeam tutorial), the index that is used between lines 651 and 678 ends up having a value of 1 lower than nbGlobalStaticFaceCenters, which it should equal according to the assert-statements used in lines 662 and 678. The thing is that RBFMeshMotion solver apparently works fine for others (it does for Philip Cardiff anyway), so I don't know what's causing this error on my system (foam-extend-4.1 on Ubuntu 18.04 LTS). Does this look familiar to anyone? Many thanks, Sita Quote:
|
||
March 6, 2020, 01:44 |
|
#523 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Hi all,
I have some problem with the solids4Foam. First with Hron-Turek FSI 3 benchmark, the tutorial simulation is stable, but results is seen increase in each time step. For example y-direction of tip displacment in below figure Also, the comparing this results with Hron-Turek FSI 3 benchmark have 10% relative error in time 20s. Second, when I use finner mesh (blockMeshDict.first) to simulation Hron-Turek FSI 3, the amplitude of displacement is reduces 10 time lesser than coarser mesh. I thought this may due to temporal error, so I reduce time step to make Courant number less that 0.2, but still the amplitude of displacement is very low. I think the fsiFoam have similar results for Hron-Turek FSI 3. Third, by decreasing Elastic module (E) of solid from 5.6e6 to 1.4e6 and change density to 10000 as Soti et. al. article, the simulation diverged in only first 0.2 s with similar configuration of FSI3. Instead in fsiFoam, the simulation of Soti et. al. is stable. Now, I use recommend of Daniel (use coupled fsi and trasitionperiod) to see that does the problem comes from initial condition or any other reasons make diverges. Do you have similar problem? Last edited by Hgholami; March 8, 2020 at 13:13. |
|
March 6, 2020, 04:14 |
Material linearity enforced for stability
|
#524 | |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Ahhh... now that's disappointing! Even with the settings Daniel suggested my run crashed after 0.8 s.
Daniel, did you change anything else in the case I attached? Are you using foam-extend-4.1, or 4.0? Thanks, Sita Quote:
|
||
March 6, 2020, 07:52 |
|
#525 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
I'm using foam-extend-4.0 and OpenFOAM-7 for now. I did not change anything else and the simulation finished normally. Which version of foam-extend are you using? It seems that something is wrong with your foam-extend installation. The final result at t = 6sec is also attached. Regards, D. Khazaei Last edited by Daniel_Khazaei; March 6, 2020 at 09:06. |
||
March 6, 2020, 08:18 |
|
#526 | ||||
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
Would you please explain how did you plot the y-displacement? Because there is a gnuplot script provided with the tutorial which is supposed to plot y and x displacement of the tip. By looking at the attached image, the displacement seems reasonable to me. Quote:
Quote:
Quote:
Can you provide the title of the paper that you are referring to? Regards, D. Khazaei Last edited by Daniel_Khazaei; March 6, 2020 at 10:28. |
|||||
March 6, 2020, 09:00 |
Material linearity enforced for stability
|
#527 | |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Daniel,
Thanks for getting back. I'm using foam-extend-4.1 (installed that for its overset mesh capabilities), and yes, I'm suspecting something's wrong there. I'm now building foam-extend-4.0, see how that goes. Thanks for all your help! Sita Quote:
|
||
March 7, 2020, 03:20 |
|
#528 | ||
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Hi Daniel
I plot the result with libreOfficeCalc, using history/0/ folder. It is same as gnuplot script and the result is same. for default mesh size, the error by comparing with Hron-Turek Benchmark in 20s is about 10%. We don't have any Ref for more time, but my question is, why it doesn't reach to periodic?. Quote:
Quote:
Thanks, H. Gholami |
|||
March 7, 2020, 07:55 |
|
#529 | |||
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
With the default tutorial settings I can confirm that the error is about 10% which is not optimal. I'm attaching the image from my previous post again, how the displacement is not periodic here? Would you please explain how did you interpret the result? http://uupload.ir/files/1ib8_deflection.jpg Quote:
Quote:
Regards, D. Khazaei |
||||
March 7, 2020, 15:43 |
|
#530 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Hi,
Quote:
|
||
March 9, 2020, 03:04 |
Material linearity enforced for stability
|
#531 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Great, with foam-extend-4.0 I could run my simulation without any trouble! Wish I'd tried that earlier... There must be something in foam-extend-4.1 that doesn't work well with this case.
Thanks again everyone for your help, Sita P.S. Cool, the errors I used to get in Paraview, about duplicate entries D0 etc., are gone too now! Last edited by sita; March 9, 2020 at 04:45. |
|
March 9, 2020, 04:59 |
|
#532 | |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Quote:
I can confirm this. I tried the same case HronTurekFSI3/laminar both with fe40 and fe41 and it works with fe40, but not with fe41. System setup: Ubuntu 19.10 fe40: gcc toolchain 5.5 (backported to 19.10 from 18.04 LTS, so I'd expect the findings to be the same for that one - but will test on my students' VM's) foam-extend-4.0 (download from git on 07/03/2020), solids4foam (version from first week december 2019, but have confirmed on the CentOS install that the current butbucket version works the same apart from newSkewCorrected now being skewCorrected). fe41: gcc toolchain 7.4 (fe41 doesn't seem to like 5). Question at this point: What are the development toolchains for the respective version? Would like to rule out compiler incompatibilities. None of (gcc 3 to 9) them will compile everything without warnings (or errors), the above seem to be the best fits I found. Up to the point before it goes wrong everything looks OK (top is fe41, bottom is fe40) - time 3 seconds: HT_40_41_comp_instab_anim.0148.jpg But then the fe41 simulation goes wrong - time 3.1 seconds: HT_40_41_comp_instab.jpg and just before that, sigma deviates for the 41 simulation: HT_40_41_comp_just_before_instab.jpg The first 10000 and last 10000 lines of logfile for the cases are here: log.solids4Foam40.zip log.solids4Foam41.zip So for now I think I'll stick to foam-extend 4.0 for FSI problems (and revert the teaching machines back to it as well). If I can provide any more info to help track down the problem, let me know. EDIT: As with Sita, I can also confirm that the D errors in paraview are gone as well. Also decomposePar does not complain about missing files (system/fvSchemes) in the 4.0 version. In the current solids4Foam version the newSkewCorrected gradient scheme in solids4foam is renamed to skewCorrected (overriding the foam-extend one, I assume), so all tutorials need to be changed to reflect that in fvSchemes. In the decomposeParDict, there is still a "globalFaceZone" defined, which leads to errors in the new implementation (hangover from the previous zone handling, I assume). This line needs to be commented. |
||
March 9, 2020, 05:14 |
|
#533 | |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Quote:
while Sita's case has a few changes that seems to make it less stable, I have tested the laminar HronTurekFSI3 tutorial case, and it shows similar problems on 4.1 as opposed to 4.0, in which it runs nicely. See my recent post at the end of this thread. All I changed were changes required to make it run (comment globalFaceZone in decomposeParDict files, s/newSkewCorrected/skewCorrected in fvSchemes files), and changing the decomposition method to scotch instead of simple (I don't think 4 vs 8 cores makes a difference here on a single node with SMP - openmpi is the one that comes with the respective versions of foam). Best T |
||
March 11, 2020, 04:56 |
Cases diverging in foam-extend-4.1
|
#534 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi Torsten,
Just to have things clear, this issue doesn't seem to be solely related to solids4Foam. Apparently it's in the foam-extend-4.1 versions of pisoFoam and pimpleFoam, see also the post by Daniel_Khazaei here, and the thread to which he links, here. So for now I'll stick to foam-extend-4.0. Cheers, Sita |
|
March 11, 2020, 05:58 |
|
#535 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Quote:
Thanks, Philip |
||
March 11, 2020, 06:11 |
|
#536 | |
Member
Torsten Schenkel
Join Date: Jan 2014
Posts: 69
Rep Power: 12 |
Quote:
Interesting. I have not noticed these, as I'm using my own code for non-FSI things. T |
||
March 11, 2020, 07:53 |
|
#537 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
Can you try the case with the following sets of schemes and see what happens? |
||
July 1, 2020, 07:12 |
solids4foam fsi-fracture issue
|
#538 |
New Member
Sergio Fraile
Join Date: Jun 2020
Location: California, USA
Posts: 7
Rep Power: 6 |
Hello Dr. Cardiff and everyone,
I am working on a simulation that involves FSI and crack propagation using the solids4foam library with foam-extend 4.0. I am having some issues when the cells break at the solid-fluid interface and I suspect it's because the fluid dynamicFvMesh is not suitable for fractures, or the fields mapping at the interface can't handle it. So far my simulation is kind of a mix between the tutorials HronTurekFsi3 and crackingBeams (with my own structured grids). To be able to run the simulation I am geometrically forcing the crack to happen inside the solid mesh, and I let it propagate only restricting the fracture of the cells at the fluid-solid interface. If I let it break the solid's surface (actually forcing it to ensure it's the face I want) I am getting the following error: Code:
There are 1 potential internal crack faces There are 0 potential coupled boundary crack faces Writing cohesiveZone field Max traction fraction: 1.03503 faceToBreakIndex: 1525 faceToBreakLocation: (0.17108 0.249236 0.0075) faceToBreakEffTracFrac: 1.03503 Breaking internal face : (0.17108 0.249236 0.0075) Updating field values on newly broken faces Solving the momentum equation for D Corr, res, relRes, matRes, iters 100, 5.54236e-06, 0.000386495, 0, 11 200, 8.08764e-07, 6.82882e-05, 0, 11 300, 1.78722e-07, 1.49448e-05, 0, 11 The solver residual has converged 339, 9.90346e-08, 8.27192e-06, 0, 11 There are 0 potential internal crack faces There are 0 potential coupled boundary crack faces Writing cohesiveZone field Max traction fraction: 0 Interpolating point values using GGI --> FOAM FATAL ERROR: fromField is the wrong size! fromField size: 244, fromZone size: 242 From function void Foam::interfaceToInterfaceMapping::checkFieldSizes ( const label fromFieldSize, const label toFieldSize ) const in file fluidSolidInterfaces/fluidSolidInterface/interfaceToInterfaceMapping/interfaceToInterfaceMapping/interfaceToInterfaceMapping.C at line 117. FOAM aborting Are there any limitations of the fracture/SFI implementation I am running into? Or are these issues derived from my simulation setup? Thank you! Sergio |
|
July 15, 2020, 08:29 |
Clamp boundary condition
|
#539 |
Senior Member
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18 |
Hi everyone,
What would be the correct way to impose a clamp boundary condition on a symmetry plane? I tried turning my symmetry plane into a plain patch, and then imposing a fixedDisplacement of (0 0 0) (like in some of the tutorials), but this only restricts the displacement, not the curvature. Is there a way to restrict the curvature too? Many thanks! Sita EDIT: Sorry, I was too quick asking my question; in the meantime I found the fixedDisplacementFixedRotation BC, which seems to be what I'm looking for. Now my question is how to use this BC, as that's not quite clear to me from the source file, and I can't find any tutorials using this BC. |
|
July 15, 2020, 10:05 |
|
#540 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi Sita,
Can you provide more details on the type of boundary condition you are looking for? You are right that fixedDisplacement sets the displacement of each face, but if you have more than one face in the patch then this indirectly restricts any rotations/curvature as well. Philip |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 15:22 |
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread | wyldckat | OpenFOAM Installation | 2 | July 11, 2012 17:01 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |