CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Addition of Boundary Condition (https://www.cfd-online.com/Forums/openfoam/60689-addition-boundary-condition.html)

ubaid March 9, 2009 08:09

Dear Friends, I am just new
 
Dear Friends,

I am just new to this software, Actually, I am interested to add new boundary conditions. I am having trouble to add new boundary conditions.

The file in which I am interested to add the boundry condition is placed in the following folder.

src/finiteVolum/fileds/fvPatchFields/derived/oscillatingFixedValue

i want to introude angle in these files.

Actually the file oscillatingFixedValueFvPatch.C returns 1+amp*sin(2*pi*f*t)

but i am interested that it would return.
1+amp*sin(2*pi*f*t+angle).

Can anyone help me out how could i proceed it?

marico March 9, 2009 09:39

Hi, maybe try groovyBC. (ca
 
Hi,

maybe try groovyBC. (can be found on OpenFOAM-Wiki and lets you define BC's over expressions, so probably you don't have to create several own new Conditions...)

Marco


All times are GMT -4. The time now is 22:32.