CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Changing Reference Speed as a Function of Time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2022, 14:32
Default Changing Reference Speed as a Function of Time
  #1
New Member
 
James Anawati
Join Date: Jun 2022
Posts: 1
Rep Power: 0
James Anawati is on a distinguished road
I would like for the reference speeds (magUInf) in the forceCoeffs and forces functions to change as a function of time.


My goal is to calculate the added mass of a body in a flow. Currently, I have created a case where an ellipsoid is suspended in a flow which accelerates and then decelerates. However, the functions that calculate and report the forces and force coefficients only seem to allow for a single value for the reference speed. To correctly calculate the forces and force coefficients, the reference speed should be the same as the speed of the flow at any given time.


The table I am using for the input flow velocity is as follows.


uniformValue table
(
(0 (1.5 0 0))
(1.5 (1.5 0 0))
(3 ( 3 0 0))
(4 ( 3 0 0))
(6 ( 1 0 0))
);



I have noticed that if I manually change the value of magUInf in the forces file while the case is running, the change is reflected in the magnitudes of the reported forces. Therefore, if I can retrieve the current simulation time in the forces function and use if statements to assign the flow speed to the magUInf variable, that should solve my issue.


For context, I am attempting to recreate the results from the paper "A new CFD method for determination of translational added mass coefficients of an underwater vehicle" by Ehsan Javanmard, Shahriar Mansoorzadeh, and Javad A. Mehr (2020), Ocean Engineering.


I am new to CFD and OpenFoam.


Thank you for your help!

Last edited by James Anawati; June 28, 2022 at 14:34. Reason: Made table more legible
James Anawati is offline   Reply With Quote

Reply

Tags
coefficient drag, forces, maguinf, speed, time


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
Postprocess: sampleDict works but creates no output folder shock77 OpenFOAM Post-Processing 14 November 15, 2021 09:27
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 19:58
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 08:56


All times are GMT -4. The time now is 13:48.