CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Time and direction varying liftDir in a forceCoeffs file (

HakikiCanakkaleli October 9, 2012 08:32

Time and direction varying liftDir in a forceCoeffs file

I kindly want to ask whether I can add a .csv data file for the liftDir object in the forceCoeffs file or not?


liftDir      (0 0 1);
To be more precise, I would like to write something (instead of (0 0 1) as can be seen above) that connects a .csv data file which includes different directions of lift coefficient for different time steps with the lift coefficient direction specified in the forceCoeffs.

Apologizes if there are some other pages relevant to this issue; however, I couldn't find any.

Many thanks in advance.

kev4573 October 9, 2012 15:34

I'm not aware of any built in functionality to accomplish this directly.

One possible solution would be to interface with your csv file using a runtime compiled code snippet, which could make this vector a function of time.

The simpliest solution would probably be to just write out the force components at every time step and post process them to recompute the coefficient based on your changing lift direction.

HakikiCanakkaleli October 20, 2012 12:01

Thanks very much.

All times are GMT -4. The time now is 12:51.