CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM CC Toolkits for Fluid-Structure Interaction (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/)
-   -   [stressAnalysis] how to define a new boundary condition (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/85327-how-define-new-boundary-condition.html)

xck1986 February 23, 2011 04:56

how to define a new boundary condition
 
Hi everyone,
In the stressanalysis solver solidDisplacementFoam there is a boundary condition tractionDisplacement, which looks like following:

type tractionDisplacement;
traction uniform (0 0 0);
pressure uniform 0;
value uniform (0 0 0);

In this boundary condition I can only define the the traction as a constant vector. But now I want to modify the traction as a variable, which is depend on it's position.
I have try to use groovyBC or funkySetField, but those utlities can only be applied to the field, which is defined in the 0 folder, not valid to the values inside of the boundary definition.

So my idea is to modify the existed boundary condition and define a new one, which can read in the traction not as a fixed vector, but depend on it's position.

Does any one have experience how to realize it?

Thanks a lot in advance!


All times are GMT -4. The time now is 16:04.