writing solid body position to a file - sixdof issue
When using the sixdof solver, how is it possible to write the time history of the body position to a file, like it is done with the forces?
unfortunately, i don't know how to do this well, but i'm also looking for a solution to this problem. Obviously, there is no ready-to-use functionObject for logging positions as there is for forces.
using other functionObjects, i got the demanded values, but in a very bad structure:
i used functionObject "writeRegisteredObject" in controlDict to write object "dynamicMeshDict":
this produces folders and files for every single timestep :eek:
this means, i would get thousands of files like
and so on, each containing a file like
in fact, this is the information i was looking for, but i would prefer to get a single file like
i know its just a matter of batch processing to collect all b)-files to a single c)-file, but it is not very clean to temporary overflood the case-directory with thousands of folders, containing folders, containig archives, containing files... before collapsing them all to one single text file.
So does anyone know a smarter solution to log these values in a single file at runtime?
have you tried to write as a "probe" in the controlDirect file?
probes does not work for my case, as it needs a "probeLocation", and centreOfMass is not inside any cell, because the simulated space lies outside the object :confused:- probe seems to take a value of a field in a specified location. Therefore, i tried to track the value of pointDisplacement in my centreOfMass location, with above conclusions..
but how to access motionState, which is not a field?
I'm having the same issue as well, I wish to track the amplitude and trajectory of the center of mass of a cylinder subjected to VIV. Check out this tool:
it may be helpful.
did you find a way of writing all the information into one file?
That would be great!
Otherwise: You said that it was "just a matter of batch processing to collect all b)-files to a single c)-file". Could you maybe help me with that? I have no clue how to do it...
|All times are GMT -4. The time now is 02:12.|