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

angularDisplacement timeVarying Boundary

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 21, 2011, 12:39
Default angularDisplacement timeVarying Boundary
  #1
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 154
Rep Power: 7
Aurelien Thinat is on a distinguished road
Hello everybody,

I'm trying to develop my first boundary condition. I have to mix the angularOscillatingDisplacement boundary and the timeVaryingUniformFixedValue boundary.

I have a file with 2 columns : 1 = time | 2 = angle.

So I take a look at the existing boundary condition and I was thinking about modifying the angularOscillatingdisplacement into an angularFileDisplacement.
-> If somebody can confirm me it's not a so bad idea.

Then, I looked at the forum, and I found a post about "g time varying". In this thread they said it's possible to use an interpolation table.

So correct me if I am wrong, I have to :
- delete every fields like "amplitude" and "omega" which are useless now
- create an "interpolationTable<Type> timeSeries_;"
- rename each "angularOscillatingDisplacement" by "angularFileDisplacement",
- modify the formula to compute the scalar "angle".

Regards,
Aurélien
Aurelien Thinat is offline   Reply With Quote

Old   November 22, 2011, 05:45
Default
  #2
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 154
Rep Power: 7
Aurelien Thinat is on a distinguished road
So I have started the above developement. And I wonder how the interpolationTable works.
I have written :
Quote:
(...)
timeSeries_(dict.lookup("file"))
(...)
scalar angle = timeSeries(runTime.value());
(...)
And runTime.value() is not compiling. So i take a look at timeVaryingUniformFixedValueFvPatchField.C and I found that line, which I presume is the call to the interpolationTable :

Quote:
if (this->upadated())
{
return;
}

fvPatchField<Type>:: operator==
(
timeSeries_(this->db().time().timeOutputValue())
);
fixedValueFvPatchField<Type>::updateCoeffs();
Could you explain me what does it means please ? Especially the "this->db().time().timeOutputValue()).
Thank you.

EDIT : I finally didn't use the interpolationTable function. I just open an IF stream from the file I wanted and make the BC reads the Data by myself. I still interested by any answer about my last question.

Last edited by Aurelien Thinat; November 23, 2011 at 05:06.
Aurelien Thinat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17
Boundary conditions? Tom Main CFD Forum 0 November 5, 2002 02:54
Boundary Conditions Jan Ramboer Main CFD Forum 11 August 16, 1999 08:59


All times are GMT -4. The time now is 02:54.