CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

EulerLagrangeMapping

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 13, 2006, 04:11
Default Dear All, does OpenFoam inc
  #1
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
Dear All,

does OpenFoam include an Euler-Lagrange-Mapping? I want to map (and maybe smooth too) Lagrangian particle data on an Eulerian Phase.
Did anybody do this already or are there any suggestion where to start with this problem?
any help would be appreciated!
Stephan
stephan is offline   Reply With Quote

Old   November 13, 2006, 04:39
Default Hi Stephen. I create an alpha-
  #2
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Hi Stephen. I create an alpha-field from lagrangian data using the code below. Hope it is of some help!


volScalarField Np
(
IOobject
(
"Np",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
U.mesh(),
dimensionedScalar("zero", dimensionSet(0, 0, 0, 0, 0), 0.0),
U.boundaryField().types()
);


//reset alpha and Ua at each fluid timestep
alpha = dimensionedScalar("zero", alpha.dimensions(), 0.0);


for
(
discretePhase::iterator elmnt = particles.begin();
elmnt != particles.end();
++elmnt
)
{
label celli = elmnt().cell();
scalar d = elmnt().d();
Np[celli] = Np[celli] + 1;
scalar dVol = M_PI*::pow(d, 3.0)/6.0;

alpha[celli] += dVol/mesh.V()[celli];

}
//Rasmus
hemph is offline   Reply With Quote

Old   November 13, 2006, 05:21
Default Thanks Rasmus, i have alrea
  #3
Senior Member
 
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17
stephan is on a distinguished road
Thanks Rasmus,

i have already something similar but what i actually need is a real mapping algorithm, which takes care of the fact, that parts of a particle are in different cells. the fields obtained in this way should be smoother. this would be nice for time derivatives of the above mentioned field Np.

thanks for the help!
does anybody else has an idea how to get such smooth lagrangian fields?!
any help would be appreciated
Stephan
stephan is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 20:26.