CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > FLOW-3D

Flow-3D Integration with Matlab Simulink

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2024, 15:53
Default Flow-3D Integration with Matlab Simulink
  #1
New Member
 
Mike F
Join Date: Mar 2024
Posts: 1
Rep Power: 0
mfogel is on a distinguished road
Hello,

Seeking advice on how to modify Flow-3D to dynamically read in angular velocities and linear accelerations from an external table

I am trying to modify the QASDD.F90 Flow-3D file to output forces and torques at specified timesteps, use those forces and torques in a Simulink rigid body dynamics simulation, then the RBD simulation will output angular velocities and linear accelerations which would be read back into Flow-3D.

I have successfully modified the QASDD.F90 file to output the forces and torques and Simulink reads and process them successfully.

I am successfully adding a new line to the Flow-3D "move.inp" file at each timestep.

My struggle in getting Flow-3D to continue reading the move.inp file. It reads in the initial conditions at t=0, t=1, t=2. It will not read further lines past t=2.


Flow 3-D Detailed Log
------------------------
simulation time went past the motion table in movin file:
last data point will be used for the rest of the simulation
time = 2.00512E+00 last data point at 2.00000E+00


Example move.inp file
------------------------
0
0.000000 0.000000 0.000000 0.000000 0.031684 0.075485 -0.032106 0.000000 0.000000 0.000000 0.000000 0.000000
1.000000 0.000000 0.000000 0.000000 0.025769 0.051052 -0.017812 0.000000 0.000000 0.000000 0.000000 0.000000
2.000000 0.000000 0.000000 0.000000 0.019948 0.034826 -0.009865 0.000000 0.000000 0.000000 0.000000 0.000000
3.000000 0.000000 0.000000 0.000000 0.014997 0.024005 -0.005278 0.000000 0.000000 0.000000 0.000000 0.000000
4.000000 -0.000314 0.000054 -0.000052 0.010697 0.016656 -0.003476 0.000000 0.000000 0.000000 0.000000 0.000000
5.000000 0.000276 -0.000062 0.000589 0.008675 0.011559 -0.003078 0.000000 0.000000 0.000000 0.000000 0.000000
6.000000 0.000239 0.000241 0.000053 0.005143 0.008030 -0.000441 0.000000 0.000000 0.000000 0.000000 0.000000
7.000000 -0.000143 0.000376 0.000101 0.003469 0.005850 0.002209 0.000000 0.000000 0.000000 0.000000 0.000000
8.000000 -0.000238 -0.000041 -0.000373 0.001659 0.004379 0.001269 0.000000 0.000000 0.000000 0.000000 0.000000
9.000000 0.000153 -0.000421 0.000377 0.002898 0.003239 -0.000148 0.000000 0.000000 0.000000 0.000000 0.000000
10.000000 0.000344 -0.000116 -0.000145 0.001263 0.002308 0.000420 0.000000 0.000000 0.000000 0.000000 0.000000
mfogel is offline   Reply With Quote

Reply

Tags
flow-3d, matlab, qasdd.f90, simulink


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ncrit for a glider Xfoil. How to use it. GPT4 answer AlanMattanó Main CFD Forum 0 April 10, 2023 13:16
Questions about FLOW 3D modeling capabilities Dr Youssef Hafez FLOW-3D 0 January 7, 2023 12:37
Heat and Mass Flow Integration over Slices YASHA Tecplot 2 December 2, 2018 03:34
Couette Flow in Matlab using Pressure Correction Method mulchah Main CFD Forum 4 February 25, 2014 06:41
Flow meter Design CD adapco Group Marketing Siemens 3 June 21, 2011 09:33


All times are GMT -4. The time now is 18:58.