|
[Sponsors] |
problem implementing parabolic profile in oscillatingFixedValue |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 8, 2012, 17:06 |
problem implementing parabolic profile in oscillatingFixedValue
|
#1 |
Member
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14 |
Hi openfoamers ,
i was trying to create a parabolic velocity profile in oscillationFixedValue , as i require to generate v(y,t) where its parabolic in space and oscillating in time.i am new to openfoam ,just tried modifying the oscillatingfixedvalue code but its giving errors.can somebody suggest if my modifications r correct i hav attached my header and source. [ATTACH][ATTACH]13684[/ATTACH][/ATTACH] |
|
June 9, 2012, 13:21 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Or, if you don't want to install 3rd-party software, have a look at the coded-boundary condition. There you only have to program a small C++-code-snipplet that sets the boundary condition but not the whole bunch of constructors and other methods. The advantage of both methods is that the definition is where it belongs: in the case and not some extra library. |
||
June 10, 2012, 08:16 |
|
#3 |
Member
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14 |
hi gschaider,
i implemented the codedfixedvalue bc with: inlet { type codedFixedValue; value uniform (0 0 0); //$internalField; redirectType awsum_bc; code #{ fixedValueFvPatchVectorField myPatch (*this); forAll(myPatch, celli) { myPatch[celli] =(.1*(1-(this->patch().Cf()[celli](2)*this->patch().Cf()[celli](2)/.01))*(1 + sin(this->db().time().value()))); } operator==(myPatch); #}; } but its giving errors, can you suggest what is wrong ,my velocity profile is v=v0(1+ sin(t)) ;v0 being parabolic f(y). |
|
June 10, 2012, 18:52 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
June 10, 2012, 19:06 |
|
#5 |
Member
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14 |
i already solved my problem , thank you for all ur help.
|
|
December 14, 2012, 12:20 |
|
#6 |
Member
Vitor Vasconcelos
Join Date: Jan 2012
Posts: 33
Rep Power: 14 |
How shash? I'm interested in your solution.
|
|
June 11, 2013, 14:28 |
|
#7 |
Member
shiv
Join Date: Jun 2012
Location: Lucknow, IN
Posts: 51
Rep Power: 14 |
hi vitor,
read this thread http://www.cfd-online.com/Forums/ope...condition.html , sorry for such late reply. |
|
Tags |
oscillatingfixedvalue, parabolic inlet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent Profile Mass loss problem | aras | FLUENT | 0 | April 12, 2012 13:34 |
Volume Fraction, profile data problem | cfxmar | CFX | 5 | August 19, 2009 09:09 |
Problem implementing DETAILED REACTION MECHANISM | Phil | FLUENT | 0 | May 5, 2007 12:38 |
UDF velocity profile problem | Steve | FLUENT | 0 | January 18, 2005 13:11 |
VOF problem postprocessing display 3D flow profile | Saturn | FLUENT | 4 | July 14, 2004 01:58 |