|
[Sponsors] |
July 4, 2016, 08:08 |
Simulation of air bearings
|
#1 |
New Member
Daniel
Join Date: Jul 2016
Posts: 4
Rep Power: 9 |
Hi everyone ,
I'm totally new here and i also have no experience with openFoam and C++ but I want to simulate the pressure distribution in an air bearing with OpenFoam. I already simulated the lubrication gap with rhoSimpleFoam. These results are congruent with results I got by solving the Reynolds Equation for thin film flows with a Finite difference method in octave. So far so good, but because of the very thin gap my mesh needs to be very big to avoide highAspectRatioCells. To bypass this problem, i want to make an own solver which solves the Reynolds Equation in 2D. = Gap height I tried to write it based on laplacianFoam. I think i declared all Fields correct but I'm not sure how to discretize the Equation. Here is what i have until now. ( Tried to do it incompressible first) Code:
solve (fvm::laplacian(pow(h,3) / (12 * nu) ,p) - Um&fvm::grad(h) ); Thanks, Daniel Last edited by evelknevel; July 4, 2016 at 11:58. |
|
July 5, 2016, 09:19 |
|
#2 |
New Member
Daniel
Join Date: Jul 2016
Posts: 4
Rep Power: 9 |
Hey guys,
I'm really desperate! Can nobody can help me to discretize this PDE in OpenFoam? I already read a lot about it, but all the other cases were quite different. Greetings, Daniel |
|
July 8, 2016, 04:51 |
|
#3 |
New Member
Daniel
Join Date: Jul 2016
Posts: 4
Rep Power: 9 |
Hi,
finally i got something that is compiling at least. Code:
(...) simpleControl simple(mesh); #include "createFields.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nCalculating pressure distribution\n" << endl; while (simple.loop()) { Info<< "Time = " << runTime.timeName() << nl << endl; while (simple.correctNonOrthogonal()) { surfaceScalarField hls("hls", fvc::interpolate(hl) & mesh.Sf()); solve (fvm::laplacian( h/ (12 * nu) ,p) == u*fvc::div(hls) ); } #include "write.H" Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; } Info<< "End\n" << endl; return 0; } My Case is diverging but the solution looks a little bit like i was hoping for. Anyone got a Idea if I'm on the right way or is this just plain wrong ? Many thanks, Daniel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem concerning the Air Conditioning Simulation | dou_kun | CFX | 3 | January 28, 2024 21:11 |
CFD simulation of an Air conditioned 3D rectangle | Peta247 | Main CFD Forum | 0 | June 19, 2016 01:27 |
Simulation of air flow inside valve - FSI? Help! | farianka | Main CFD Forum | 0 | April 17, 2011 16:30 |
Improve accuracy on air foil blade simulation? | Bian | CFX | 4 | December 12, 2006 11:29 |
air jet simulation | Yue zou | Main CFD Forum | 0 | September 28, 1998 08:30 |