|
[Sponsors] |
September 5, 2015, 15:47 |
HronTurekFsi3 foam-extend3.1
|
#1 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear OpenFOAM users,
I'm trying to follow the same tutorial given in fsiFoam solver in foam-extend3.1. This tutorial named HronTurekFsi3 (attached). I tried to implement one the same as that original case. The difference between the original case and my one could summarise in the information given in http://www.sciencedirect.com/science/article/pii/S0045782505005177. My one is square cylinder instead of circular cylinder given in the original one. All boundary conditions and geometries are given in page 5767 and 5768 in the attached paper. My case named HronTurekFsi3-New that I implemented are shown in the attached folder. Q: What changes I did to the original case? I generated the mesh using blockMesh utility the same as in the original case. In my case, it's square cylinder but in the original one it's circular. Also, the boundaries are different, my one are shown in the attached paper. I kept transportProperties in fluid folder and rhyologyProperties in the solid folder the same as in the original case and also U in 0 folder it's given 51.3 m/s in the paper but 0 m/s in the original one. When I used paper value 51.3 m/s it's given me error, so I kept it 0 m/s. I don't know why Q: What steps I do for generating the mesh, running the simulation and post-processing. * for mesh generation: blockMesh utility * for running the simulation cd FluidStructureInteraction/run/fsiFoam/HronTurekFsi3-New chmod 755 * sed -i s/tcsh/sh/g *Links ./removeSerialLinks fluid solid ./makeSerialLinks fluid solid cd fluid ./Allclean ./Allrun * for postProcessing: paraview The case was running fine, but the simulation doesn't show beam movement, I think that because of fluid/solid interface mesh problem., am I right? Could you please help me regarding this case and solve its problem. Lots of thanks in advanced and kind regards Maimouna |
|
September 5, 2015, 21:31 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maimouna,
When using OpenFOAM or foam-extend, the usual rule of thumb is to almost never go directly to the final simulation you're planning on doing. It took me a while to get a working environment. So much that I had to update considerably the wiki page for the toolkit you're using: http://openfoamwiki.net/index.php/Ex...re_interaction Now you can find there a lot of instructions and documentation that was missing a few hours ago And thank you for the detailed steps on how to run the case as well! It made it a lot easier to run these cases, as well as document them in the wiki! Going back to what I wrote at the beginning of this post: I can't say for certain, but one of the problems seems to be related to the mesh being too refined. It took my machine nearly 2900s to reach the point where your case "HronTurekFsi3-New" crashed, in part due to the mesh being so refined . My first suspicion is that this overly refined mesh is the reason why the solver crashed. My advice is to reduce the refinement to something more similar to the mesh in the "HronTurekFsi3" case. Afterwards it should be easier to diagnose the first problem. Best regards, Bruno
__________________
|
|
September 10, 2015, 07:19 |
|
#3 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno,
many thanks for the last post. I tried to refine the mesh as one in the original case HronTurekFsi3, the new mesh was attached. The case HronTurekFsi3-New works fine, I just changed some files U, blockMeshDict, transportProperties, and rheologyProperties to the value given in the paper attached in post#1. Note that: all changes were saved in the attached folder named AllChanges. I'm still couldn't see any movement in the beam. How could I make such motion in the beam the same as one given in the tutorial case. Could you please check my case and what's wrong on it? Many thanks in advanced and regards. Maimouna |
|
September 12, 2015, 04:19 |
|
#4 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Finally, the beam is moving now but the animation shows something wrong. I tried to post avi file to show the animation but unfortunately invalid file. What accepted files for animation?
The case started to work then it is blown up at 4.92s. I'm working in the same case that I posted in #1, the only changes in U inlet BC is (1 0 0) instead of (0 0 0) and I choose nu for fluid 0.01 for 100 Reynolds number. Sorry, I got attached problem, I couldn't reattach my case. I need your help to check my case and let me know why running blown up and from the animation are there any wrong in the BCs, check that for me please. Kind regards Maimouna |
|
September 12, 2015, 16:22 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maimouna,
I'm unable to use the "AllChanges" package you provided on the previous post. The "blockMeshDict" for the solid region is missing. Either way, before you can package the case folder "HronTurekFsi3-New", you need to run the script "./Allclean" from within the folder "fluid", so that it will clean up the case. But be careful to first make a copy of the folder, in case you want to keep the results you've gotten. Best regards, Bruno
__________________
|
|
September 12, 2015, 18:15 |
|
#6 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno,
I already tried what you suggested but still the folder size is very large, that's why I just attached you fluid and solid folders in the attached one. The last changes in that two folders only what I added no more. I'm still looking to know why case is blown up after some time and the flow motion in the simulation is wrong comparing with the original one, I think it's BCs problem, am I right? If yes, what's wrong? and If not, what's problem? I'm really need help to show the correct result. Have a look of my case again with that the last changes in fluid and solid. Kind regards Maimouna |
|
September 13, 2015, 18:13 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maimouna,
Sorry, it's taking too long to run and I stopped running it after 1h30m. My advice is to look at the results. You can see the two meshes (fluid and solid regions) by running paraFoam like this: Code:
paraFoam -nativeReader Code:
Total force (fluid) = (-10862.8 -950231 -2.06598e-13) Total force (solid) = (10831.4 950116 2.07796e-13) Best regards, Bruno
__________________
|
|
September 14, 2015, 06:43 |
|
#8 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno,
I run Code:
paraFoam -nativeReader And how could you know fluid and solid total forces values? Code:
Total force (fluid) = (-10862.8 -950231 -2.06598e-13) Total force (solid) = (10831.4 950116 2.07796e-13) Maimouna |
|
September 14, 2015, 18:39 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: The "fluid" folder is the main case folder, since the script "Allrun" is meant to be executed within that folder.
Therefore, after running "Allrun", you should:
|
|
September 18, 2015, 08:27 |
|
#10 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno,
I already checked that .. thank you. I'm still trying to find the solution. I did some changes again and I'll let you know by then if could get the answer. Another question please: what is ''refHistoryPoint'' in fluid/system/controlDict state for? What does it mean? Kind regards |
|
September 19, 2015, 12:49 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
pointHistory { type pointHistory; functionObjectLibs ( "libpointHistory.so" ); region solid; refHistoryPoint (0.6 0.2 0.025334); } |
||
October 9, 2015, 10:11 |
I'm really struggling...Any help please
|
#12 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno and others,
after lots and lots of trying and changing, I couldn't find the solution of my case problem. I'm really disappointed. I ended up with the two attached cases for the same boundaries, parameters and conditions given in http://www.sciencedirect.com/science/article/pii/S0045782505005177. As I posted in #1. Now, what I did, lets explain my both trying: 1. myCylinderCase: this case is the same as the original case flappingConsoleSmall in foam/foam-extend-3.1/tutorials/solidMechanics/deprecatedTutorials/icoFsiFoam. I did changes regarding my case given in the same problem. This case didn't work, it gives the waning showing in the attached screenshot. I think it is not very serious warning but the running is sttoped with core damped. How could solve? 2. myCylinderCase-Fsi: this case follows the same tutorial given in fsiFoam solver in foam-extend3.1. This tutorial named HronTurekFsi3 (as explained before). I tried to implement one the same as that original case as posted from #1. This case is running without any blown up as before, but the problem is, it doesn't show any movement in the beam. Why? Any problem in the boundary conditions, I tried to check them with lots of changes but I couldn't notice the problem. Or is it Reynolds number problem? I tried with 333 Reynolds number as given in the paper, with U = 51.3 m/s, nu = 1.5424e-1 (fluid mu = 1.82e-4 and fluid rho = 1.18e-3) [ all other fluid and solid parametres given in the attached paper p.5767]. Or is that problem because of the ratio of solid and fluid rho (rho solid/ rho fluid). Here, rho solid = 0.1. Moreover, the point.pdf document shows no distortion..that because no rod movement, all values in X, Y, and Z in all times is 0. And finally, one more question please shall I set internalFiled and inlet to (51.3 0 0) in U file or inlet only? Check my cases please, have free for any changes. Which of them shall confirm? Lots of thanks for your help. Maimouna |
|
October 9, 2015, 10:25 |
|
#13 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Sorry, here are all attachments.
Regards |
|
October 11, 2015, 09:27 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maimouna,
I've taken look into these two cases that you provided. Here's what I can figure out. The first case "myCylinderCase" crashes because the time step "deltaT" is too huge. If you check the contents of the file "fluid/log.icoFsiFoam", you'll find the following at the start of the last time step: Code:
Courant Number mean: 5.81528e+35 max: 2.23024e+39 velocity magnitude: 1.71347e+41 Time = 0.024 Setting pressure Total pressure force = (-2.49141e+46 3.72101e+46 9.51795e+29) How to avoid this problem? Well, the first way is usually to reduce the time step. At the very first time step in the log it gives you this: Code:
Courant Number mean: 0.980629 max: 4.55615 velocity magnitude: 51.3 Time = 0.003 In theory, this solves the first problem. I say in theory, because these cases take a very long time to run and I haven't seen yet if it crashes or not. Next, still regarding the first case, there is a very important detail that is clear when I see the mesh you have for the first case, as shown in the first attached image "mesh_overview_first_case.png": this does not look like a good mesh for this kind of simulation. I've been pretty busy the past few months, so apparently I didn't give this enough thought and I was expecting your teacher to guide you through this, but I guess that didn't happen. You're missing a very important step in your approach in how to solve this problem: you need to take a few steps back and first have 2 types of fully working and studied simulations:
And do keep in mind even if you were lucky enough to be able to configure your current FSI cases to reproduce the results from the paper, this does not mean that the people evaluating your work would accept your results, if you do not have proof that you based your results on previous validation cases that you did for simpler cases, such as the flow around a stationary cylinder. Furthermore, I suggest that you study again the first 3 tutorials in the OpenFOAM User Guide, since the information about the Courant Number is explained in the very first tutorial! Now, regarding what should be the initial velocity and where it should be defined: you would be able to answer this yourself, after you've gained experience with the test cases I described above. For example, there are at least 4 ways you could initialize the fields:
You should methodically test each feature that you want to use. You should not simply throw possibilities into your current main case, because that way you are simply trying to play with luck... in trying to solve 10 or 50 problems/errors all at once, which isn't very scientific, because you can easily have millions of possible permutations for possible solutions... which means that even if you try 100 different things in the same case, there are still "millions minus 100" of possible solutions Right now I don't what is the solution for the second case. The first case have been running for almost an hour and is still at time 0.41982 s, with the following CFL: Code:
Courant Number mean: 0.100955 max: 0.52274 velocity magnitude: 71.6824 The second case is running for almost an hour as well and it's at time 0.506 s. It does have some forces applied onto the solid, but it's only 0.002 N, so I doubt this is enough to deform the solid, which is why the point doesn't change... Oh, no, wait, I see now what's the problem. You're trying to monitor the wrong location. In the attached image "mesh_and_point.png" is shown in ParaView the mesh of the case and I use the Source "Sphere" to show the location of the point you have defined in the file "system/controlDict": Code:
functions ( pointHistory { type pointHistory; functionObjectLibs ( "libpointHistory.so" ); region solid; refHistoryPoint (0.6 0.2 0.025334);//( 5.5 5.97 0.05 ); } hronTurekReport { type hronTurekReport; functionObjectLibs ( "libhronTurekReport.so" ); } ); I believe that after you've studied better the topics I've written about, you should be able to answer the other questions you've asked Best regards, Bruno PS: If you're willing to read a bit more, here's a wiki page that might give you a few more basis on how to handle OpenFOAM and foam-extend: http://openfoamwiki.net/index.php/Tu...etting_Started
__________________
Last edited by wyldckat; October 11, 2015 at 09:29. Reason: added "PS:" |
|
October 15, 2015, 08:47 |
|
#15 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno,
many thanks for that well explanation in the last post. As a good news after some changes in the last case ''myCylinderCase-Fsi'' the beam is moving as shown in the attached screenshot. (I tried to attach animation but I don't know which extension is accepted .avi not accepted). The new case with new changes is attached too to have a look. My inquiries are 1. lift coefficients as shown in the attached screenshot show very large values, are that make sense for U=51.3 m/s, D = 1 m , nu = 0.513 for Reynolds number 100, the fluid density is stated as 1 and solid density is 1000? I now that sometimes I asked stupid questions, because I need to understand some small tips. 2. Beam is moving, but the file points.pdf shows no distortion for all times? Is that regarding the value refHistoryPoint? Here, it is (5 6 0.05), is it ok? If no, any suggestion please? Any other important points would help me, welcomed. If you tried to run the case, running will take some hours, feel free to change time steps and what ever you want. I'm looking forward to get your help, I think that I'm very close to the correct results. Kind regards Maimouna 2. |
|
October 17, 2015, 12:34 |
|
#16 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Quote:
The other attached image "Screenshot from 2015-10-17 16:31:34.jpg" shows that you can use the "Ruler" source (menu -> Source -> Ruler) for seeing where things are. |
|||
October 19, 2015, 08:50 |
|
#17 | |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dea Bruo,
could you please make more clarification in this point, how? Quote:
|
||
October 22, 2015, 17:05 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Uhm... that's a somewhat vague question...
I guess you're wondering how does this make sense? Well, a car is usually 3 to 4 metre long, and weights between 1000 to 2000kg. The car can withstand its own weight because its skeleton has a lot of beams and cross-connections. Now imagine that the longest contorted beam is taken out from the skeleton and stretched to it's full length. That beam alone would probably not be able to handle 300kg at one end if the other end is fixed in position. My advise, get a mechanical project engineering book, study the relevant chapter and do the math. One that comes to mind is "Shigley's Mechanical Engineering Design". |
|
October 30, 2015, 07:31 |
fsiFoam solver questions
|
#19 |
Senior Member
ok
Join Date: Oct 2013
Posts: 346
Rep Power: 14 |
Dear Bruno,
since icoFsiElasticNonLinSolidFoam was replaced by fsiFoam, so is fsiFoam solver is for both linear and non-linear elastic materials? Regards Maimouna |
|
October 31, 2015, 10:48 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |