6-DOF monitoring after or during runtime
Dear Foamers,
I hope this questioned hasn't been asked here before. I'm trying to simulate a floating structure under regular wave impact. After testing a few solvers I'm now working with ola(DyM)Foam on OF 4.0. So far, the simulations look quite promising although still some instabilities occur. I now want to extract my simulated data of the 6 DOF's to further improve the simulations. Either during runtime or after the simulation has completed - both would be fine for me. The problem is that I have hardly any programming skills to easily extract the data. So my question: Is there an easy way, for example a function in controlDict like "forces", to get the 6 DOF's clearly arranged for every time step in one file? The second possibility would be a command to extract at least some values (e.g. centre of mass) out of the log file (see below). Code:
Courant Number mean: 0.000706526 max: 0.491233 Kind regards, Jens |
1 Attachment(s)
Hi Jens,
I always work reading the log file. There is a utility that extracts data from the logs, but I doubt that it will work in your case. It is called foamLog. As a personal advice I would suggest that you invest some of your time in researching ways to scan data from log files, it will prove very useful. In particular, there are some linux commands that are very simple: cat and grep Also python is a very handy tool for these purposes. You can check this script that works for an old version of the output file and can be easily modified. Best, Pablo |
Hi Jens,
I had the same problem a few weeks ago. Check out this thread: http://www.cfd-online.com/Forums/ope...ecay-test.html You will find there a shell script that writes you three dat-files containing linear velocity, angular velocity and orientation of the body over time. Of course you can also modify it to write out other information from the logfile. Hope it helps :) |
Thanks a lot Mona that's exactly what I was looking for. That works great!
As I've seen in your post, you are doing a pitch motion analysis. I'm also interested in the pitch movement of my structure. But from where can I extract it? Is it one of the nine digits inside the orientation parenthesis? @ Pablo: Thanks for your advice,too. I tried it with foamlog before but that wasn't very successful. You're probably right, that I should spend some more time on linux commands and python :o Best, Jens |
I am glad I could help! Took me quite some time to figure it out myself.
And yes you can extract the pitch motion from the orientation. The first column for example is the cosine of the pitch angle. This is a part of the octave script I use for the analysis of a free decay test: Code:
|
Collecting Acceleration
Hee guys,
Thanks for sharing the script, it works perfect. I was wondering if some of you found a way to also collect the acceleration over time (preferably for every pimple outer correction)? I dont see this quantity in the log file (while the velocity and displacement are indeed located in the log file). I only noticed that the acceleration is present in every time Dir in the uniform folder, but batching all this data into one single file feels a bit crude. Please let me know if you have smart way! Btw, the purpose of collecting this data is actually to monitor the relative error of the acceleration over time. BR, A |
All times are GMT -4. The time now is 05:06. |