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

orientationi & Sf[facei] - magneticFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By latvietis

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 2, 2012, 09:35
Default orientationi & Sf[facei] - magneticFoam
  #1
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Greetings!

I have spent a lot of time in doing all kinds of manipulations with magneticFoam and finally I have almost come to the end. There is only one totally unclear line for me in createFields.H

Code:
const surfaceVectorField& Sf = mesh.Sf();

Mrf[facei] = Mri*(orientationi & Sf[facei]);
I guess my problem is more about C language not about magnetic field physics.

My questions:
What should I get out when these lines are compiled? I get surfaceScalarField in output, but shouldn't there be VectorField? What the first line defines, where information about this mesh.Sf will be taken from?

Mri is a constant, what should happen when I multiply a constant with those parameters in brackets? Also, there is orientation (that is some kind of vector) and then there is '&' symbol. Does it mean Mri is multiplied with orientationi and Sf[facei] in the same time?

Yours sincerely,
Martin
latvietis is offline   Reply With Quote

 


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
magneticFoam latvietis OpenFOAM Running, Solving & CFD 41 June 5, 2020 01:29
Looking for a magneticFoam working example maddalena OpenFOAM 3 July 12, 2013 16:42
what is the magneticFoam for in the OpenFOAM 2.0.0 goodkid OpenFOAM 4 December 24, 2011 08:25


All times are GMT -4. The time now is 10:47.