CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   [extend-bazaar] How to apply timeVaryingSolidTraction B.C. to fsiFoam? (https://www.cfd-online.com/Forums/openfoam-programming-development/216417-extend-bazaar-how-apply-timevaryingsolidtraction-b-c-fsifoam.html)

postechkian April 6, 2019 11:32

[extend-bazaar] How to apply timeVaryingSolidTraction B.C. to fsiFoam?
 
Hello guys,
I'm beginner in foam-extend FSI,
I want to use the "timeVaryingSolidTraction" B.C. which is already set in foam-extend "src/solidMechanics".

The thing I want to do is to transfer this B.C. into extend-bazaar FSI solidModel B.C. . I have already transferred the directories of timeVaryingSolidTraction and changed the details in files and options (/extend-bazaar/FluidSolidInteraction/src/fluidSolidInteraction/Make$)
and compiled it. (wclean and wmake)

But when I try this B.C. with 3dTube tutorial, error says

Quote:

gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type timeVaryingSolidTraction)
on patch outer-wall of field D in file "/home/comb/foam/comb-4.0/run/3dTube/1e-03/fluid/0/solid/D"
You are probably trying to solve for a field with a generic boundary condition.

From function genericFvPatchField<Type>::gradientInternalCoeffs( ) const
in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 832.
I think this error occurs when we mistype B.C. or other models.
I don't think there is anything wrong with compiling. What should I add more?

postechkian April 8, 2019 04:25

I found it
 
I just don't know about the concept of library in OpenFOAM.
Now, I think I know a little bit. I studied during the weekend.

"timeVaryingSolidTraction" BC is linked with "libsolidModels.so",
so what we should do is to apply only

Code:

libs ("libsolidModels.so");
in our case controlDict file.
Then finally, we can use this B.C. in extend-bazaar solvers. :)

Thank you.


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