CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   modify dynamicBodyFvMesh to use SBRStress solver (

madique January 22, 2011 13:16

modify dynamicBodyFvMesh to use SBRStress solver

I'm pretty new to OpenFOAM but I would like to use it to simulate a 3D insect wing and have been having lots of trouble; but I read in another thread that the SBRStress mesh motion solver is more suitable to large rotations, so I would like to use this motion solver. Can somebody explain to me how to modify the file dynamicBodyFvMesh.C so that I can re-compile and use this motion solver instead of getting the error about not using the faceDecompositionSolver?

Any help is very much appreciated. :)

Marc Adique

madique January 22, 2011 14:46

also, I'm currently using OpenFoam-1.5-dev

tonyuprm January 24, 2011 01:01

Hi Marc,

Im not sure if I got your post right. But you're trying to create a new solver based on dynamicBodyFvMesh.C? If this is what your trying to do copy and paste the solver directory you want to use and name it differently. Then change the file named "file" in the Make directory to name your new solver.

EXE = $(FOAM_USER_APPBIN)/yourNewSolver

Hope this helps.


madique January 24, 2011 22:56

Hi Tony,

Thanks for your reply, but I'm actually trying to do something a little different. I would like to define displacementSBRStressFvMotionSolver as the solver in the dynamicMeshDict file, but I run into a fatal error when using dynamicBodyFvMesh. I checked the *.C file and there is an if statement that terminates the run if the solver given is not tetDecompositionMotionSolver, but I changed this and re-compiled, but i'm running into a few other errors...I realize now that it's not as simple as just changing those few entries...

Also, does anyone know if there is any documentation on the SBR stress motion solver?

Thank you very much,

davesmith_01 April 4, 2011 17:26


I am trying to simulate a 3d flapping wing in Openfoam and am having some trouble, as Im not sure where to put the kinematic wing motion settings and also I am not sure about some of the settings to use. If possible could you please me, or even send me an example case file for this which I can use as a guide please, I appreciate any help that you can give.


hhh February 22, 2012 08:28

flapping wing
dear foamers,
i am interested doing flapping wing analysis,i have only data input of my model is(2m/s velocity speed,25%throttle speed that is wing moves up and down and i have xyz coodinates data (33 columns and 225 rows) in .csv file format)i dont know how to start in open foam,if anybody have idea please help me.

elvis February 22, 2012 09:40

Hi kunar,

for flapping wing take a look at the PHD thesis Frank Bos
Numerical simulations of flapping foil and wing aerodynamics, mesh deformation using radial basis functions (RBF).
download PHD Thesis (size 11MB)

Moving and deforming meshes for flapping flight at low Reynolds numbers(OF workshop Milan 2008)

You find the radial basis functions (RBF) Code only in OpenFoam 1.6-extend.

flowris March 30, 2012 10:19


Are you sure about this? I think you can only find the code in 1.5-dev. If you have code for 1.6-ext, please let me know where to find it.

flowris March 30, 2012 10:26

Sorry, I found it.

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