How can we save transient CFD results in a file during running the code?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ahmed Saeed Mansour
el 20 de En. de 2019
Comentada: Ahmed Saeed Mansour
el 21 de En. de 2019
- Hello, I have a CFD code solves a domain and generates transient resluts, I can plot the results vs time but howcan we save the time history of the results in a file during running the code?
- Thank you!
0 comentarios
Respuestas (1)
Precise Simulation
el 21 de En. de 2019
It is hard to say what the best approch is without knowing anything about your code, but assuming you have access to the data why not just use the standard save command? Something like
filename = sprintf('cfd_data_at_time_%g.dat',t);
save( filename, cfd_data_at_time_step )
where t is the simulation time, and cfd_data_at_time_step a variable containing you data to save. This will save it in binary format, you can add the "-ascii" flag to save it as a text file.
Ver también
Categorías
Más información sobre Computational Fluid Dynamics (CFD) en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!