CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Blog Entries

Register Blogs Members List Search Today's Posts Mark Forums Read

Old

useful udf ! thanks to macfly

Posted October 21, 2014 at 17:33 by diamondx

#include "udf.h"
real T_mean; /* defined outside because will be used in multiple DEFINE macros */

DEFINE_ADJUST(adjust, domain, t)
{
real T_tot;
real u;
real counter = 0;

face_t f;
int ID = 20; /* outlet ID displayed in Fluent boundary conditions panel */
Thread *thread;
thread = Lookup_Thread(domain, ID);
begin_f_loop(f, thread)
{
u = F_U(f, thread); /* x velocity...
diamondx's Avatar
Super Moderator
Posted in Uncategorized
Views 1803 Comments 0 diamondx is offline Edit Tags
Old

Prism layers at airfoil using shappyHexMesh

Posted October 20, 2014 at 05:58 by skeptik (CFD notes)

Hard work with stupid snappyHexMeshDict bruteforcing and i have a result

Name:  no_problem.jpg
Views: 544
Size:  35.0 KB
Member
Posted in Uncategorized
Views 561 Comments 0 skeptik is offline Edit Tags
Old

2 blade model NACA23015

Posted October 1, 2014 at 05:49 by skeptik (CFD notes)

Seems to be true,
My polyMesh test.

Name:  Qiso-U-propeller.jpg
Views: 859
Size:  25.2 KB
Name:  p_mesh.jpg
Views: 852
Size:  38.9 KB
Member
Posted in Uncategorized
Views 705 Comments 0 skeptik is offline Edit Tags
Old

Faces of a cell

Posted September 20, 2014 at 10:31 by pfhan

openfoam loop cell faces of a cell and get the corresponding cell face normal, noting that the normal vector direction points from low cell ID to the higher one

Quote:
Originally Posted by kuczmas View Post
Dear forumers,

I decided to post my question inside this thread, as it is also somehow connected with looping over faces in a given cell. What I try to achieve is to get the face normal vector at every face in the cell, regardless it is a boundary cell or internal.
I produced the following code...:
...
New Member
Posted in Uncategorized
Views 1211 Comments 0 pfhan is offline Edit Tags
Old

Memory protection in OpenFOAM / combinig with FORTRAN

Posted September 20, 2014 at 10:27 by pfhan

combine the interFoam solver with an external solver written in FORTRAN
openfoam call fortran subroutines example

Quote:
Originally Posted by botp View Post
I am trying to combine the interFoam solver with an external solver written in FORTRAN. I had no problem combining the FORTRAN code with C++, but there seems to be something "OpenFOAM specific" corrupting the data of the FORTRAN solver. My best guess is that the automatic memory handling in OpenFOAM, unintended is freeing the memory of the FORTRAN
...
New Member
Posted in Uncategorized
Views 798 Comments 0 pfhan is offline Edit Tags
Sponsored Links


All times are GMT -4. The time now is 19:18.