Professional Documents
Culture Documents
Your Lecturer
Joel GUERRERO
joel.guerrero@unige.it
guerrero@wolfdynamics.com
Todays lecture
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.
Todays lecture
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.
Modify the boundary condition to suit your needs. After you finish
modifying it, compile it and use it as a dynamic library.
Mesh
Inlet profiles
The member function write defines how to write out the boundary values in
the time directory. The final line, writeEntry("value", os); writes out
all the values, which is only needed for post-processing.
<<
<<
<<
<<
<<
<<
<<
<<
<<
endl;
endl;
endl;
- ctr) & y_) << endl;
y_) << ((bb.max() - bb.min()) & y_) << end;
By the way, take a look at the files and identify all the modifications.
Geometry
Mesh
Paraboloid profile
cd $ptofc/programming/src/finiteVolume/fields/
fvPatchFields/derived/ablVelocity
wmake libso
Mesh
Inlet profile
Todays lecture
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.
@T
@t
r ( rT )
Mesh (5 cells)
260
Analytical solution
Numerical solution
240
240
220
220
200
200
180
180
160
160
140
140
120
120
100
Analytical solution
Numerical solution
100
0
0.005
0.01
5 cells
0.015
0.02
0.005
0.01
100 cells
0.015
0.02
Todays lecture
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.
mv icoFoam.C my_icoFoam.C
Remember, the directory and the file must have the same name.
T
+ (T )
t
( T ) = 0
Mesh
Contours of pressure
Additional tutorials
In the folders $ptofc/programming/applications and
$ptofc/programming/src you will find many tutorials, try to go through each one to
understand how to program in OpenFOAM.
Hands-on session
In the courses directory ($ptofc) you will find many tutorials (which are different from
those that come with the OpenFOAM installation), let us try to go through each one to
understand and get functional using OpenFOAM.
If you have a case of your own, let me know and I will try to do my best to help you to
setup your case. But remember, the physics is yours.
This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.