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

Basic tensor operations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2014, 07:40
Default Basic tensor operations
  #1
bou
New Member
 
bou
Join Date: May 2014
Posts: 10
Rep Power: 11
bou is on a distinguished road
Dear,

I would like to define a tensor like this:

Code:
tensor D(w*Dm*I + ((alphaL-alphaT))*(U*U)/mag(U) + mag(U)*alphaT*I)
where:
- w, Dm, alphaL, alphaT are volScalarField objects,
- I, tensor I (1,0,0,0,1,0,0,0,1).

Then I would like to reuse D for example in expression like:

Code:
D*grad(C)
where C is a volScalarField.

Can you help me please?

Best regards,

Bou
bou 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Documentation for basic geometry commands AdamAL ANSYS Meshing & Geometry 4 November 21, 2013 18:28
[snappyHexMesh] basic understanding of sHM colinB OpenFOAM Meshing & Mesh Conversion 1 October 6, 2010 08:17
Basic Blade Design Code apoorv Main CFD Forum 0 April 5, 2010 06:37
Basic Poiseuille flow simulation question Ashish Main CFD Forum 0 October 2, 2007 13:05
Programming C, Basic george Main CFD Forum 3 September 12, 2006 22:42


All times are GMT -4. The time now is 16:35.