|
[Sponsors] |
April 20, 2018, 13:21 |
Modifying tutorial
|
#1 |
New Member
Bo-Göran Wallner
Join Date: Apr 2018
Posts: 2
Rep Power: 0 |
Hi,
I'm new to OpenFOAM, well actually quite new to CFD as well, and has walked through some of the OpenFOAM tutorials. I'm interested in sail boat design and would like to use OpenFOAM for looking at e.g. drag of a hull. Is it possible to exchange the geometry for the hull used in e.g. the interFoam DTCHull to another geometry (i.e. use the tutorial as a template and change it according to needs)? That would be a great start to begin exploring. My idea is to design a hull using free software, starting with DelftShip Free to design a hull and then to look at the hydrodynamic aspects using OpenFOAM. Out of my head it would basically be just to exchange the geometry of the DTCHull to my geometry (and probably do some conversion from the "CAD" to "OpenFOAM World") and everything else would come out of the box from the DTCHull example. Of course I might be wrong, it has happened Before :-). Anyone who has any pointers in any direction? Links to similar discussions? best regards, Bo-Göran |
|
April 20, 2018, 14:43 |
|
#2 |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 11 |
Hello.
I'm not an expert but I would like to recommend to you Salome for geometry and grid operations. If You have created geometry in another tool then try to export it to Salome for meshing. Run Your tutorial and check in paraview for boundaries names. You will need to create groups of faces in Salome mesh module and export mesh as ideas UNV format. Then use tutorial case as a base for your simulation, set other parameters and run it. Sounds good, doesn't work. openFoam is pretty hard software and I think hull simulation is pretty hard phenomena to start. Prepare for unexpected errors and issues. Have a nice day. Sheaker |
|
April 20, 2018, 15:26 |
|
#3 | |
New Member
Bo-Göran Wallner
Join Date: Apr 2018
Posts: 2
Rep Power: 0 |
Quote:
It's interesting you say that OpenFoam is hard. As a newcomer, what is hard compared to e.g. Ansys? Working with source files instead of menus? I took the EdX course in Ansys Simulations and that's the only experience I have from Ansys. Although, I have an engineering background with an emphasis in mathematical modelling and much of the theory in the Ansys course, at least the FEM part, was known before. I think you should solve the problems you find interesting and evolve from there, calculating heat transfer from a horse approximated by a sphere you can do in school :-). Last edited by bowall; April 21, 2018 at 01:54. |
||
April 21, 2018, 05:41 |
|
#4 |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 11 |
In my opinion ANSYS is doing a lot of stuff for you. In openFoam you need to do everything by yourself.
For example: In ANSYS you can just set to see residuals. In openFoam you need to write function for it: Code:
set logscale y set title "Residuals" set ylabel 'Residual' set xlabel 'Iteration' plot "< cat log | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ "< cat log | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ "< cat log | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ "< cat log | grep 'Solving for epsilon' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\ "< cat log | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\ "< cat log | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines pause 1 reread Bad mesh in ANSYS? ANSYS can possibly deal with it automatically. Bad mesh in openFoam? DIVERGENCE!!! You can operate with PIMPLE loop parameters and some other corrections but manually. Another one: You want to check drag force in ANSYS? Just calculate force in Y direction on wing. You want to check drag force in openFoam? Function: Code:
forces { type forceCoeffs; functionObjectLibs ( "libforces.so" ); outputControl timeStep; outputInterval 1; patches ( wall ); pName p; UName U; rhoName rho; log true; rhoInf 1.205; CofR ( 0 0 0 ); liftDir ( 0 1 0 ); dragDir ( 1 0 0 ); pitchAxis ( 0 0 1 ); magUInf 148.7233; lRef 0.6096; Aref 0.6096; } Sheaker |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
tutorial files | KITetima | FLUENT | 8 | November 23, 2019 17:05 |
AMI - Propeller Tutorial diverging | kingmaker | OpenFOAM Running, Solving & CFD | 2 | November 4, 2016 03:57 |
Tutorial For Workbench CFX Remesh | ashtonJ | CFX | 2 | April 26, 2014 22:19 |
Fluent Tutorial Guide Ch. 17: Non-Premixed Combust, THTR | MAE7509 | FLUENT | 0 | January 22, 2014 21:59 |
STAR-CD Tutorial | shekhar aryal | STAR-CD | 4 | March 22, 2010 04:25 |