CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   formula implementation (https://www.cfd-online.com/Forums/openfoam-solving/123277-formula-implementation.html)

sanjar September 9, 2013 04:49

formula implementation
 
Hey FOAMers,

I have a special kind of problem and I am not that good in the C++language to handle it on my own. The problem is decribed in the following. I made a simulation with particles in a fluid, which land on a plate. This plate is made of a material which shows an erosive characteristic due to the particles. The thing i want to do now is to show with values (as results of a given formula) how much material is going to get off caused by the particles.
Is is not necessary to show it on the simulation. There is no need for that. I just want to show it with values. To define it a little bit more: I used unCoupledKinematicParcelFoam to solve my simulation. And the only value i need to calculate with the formula is the last time-folder. Thats all.

BTW, the formula i was tlking about is the erosion model formula of finnie.

Is there anybody who has an idea or who could help me through this work. I really dont know anything about implemetation of a formula in a OF simulation. At least it is only the last time-folder which has to be worked on.

it would be perfect if there is somebody who take a few minutes to help me out of this problem.

thank you guys:)

Dommy September 9, 2013 08:19

Hey Sanjar,

glad you solved your problem so far!

If its only a formular and only in the last time folder why dont you calculate the value by using any kind of programming language you are familiar with?
As far as I can see (and I don`t have any idea about erosive characteristic - just looked up the formular) there is no need to actually implement something in OF because further calculations are not based on the value you want to calculate - am I right?

Best,
Thomas

sanjar September 11, 2013 13:57

Hey Thomas,

yes i managed to start the simulation, because i was so lucky finding people who were ready to help me out!!! Relly great work moral.;)

Yes you are right and i was thinking about that in the beginning. Unfortunately i am not familiar with any program language (looked up in some c++ tuts and excercises). i wanted to know if there is a way to do that just for a first information.
it would be great if there is a way to insluce my formular into the simulation.

thank you for your advices and help!! i aprreciate them a lot!!! :)

sanjar September 12, 2013 12:35

Does somebody else have a idea, too? every advice is welcomed. How would you guys handle this problem?

lots of greetings:)


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