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

Basic tensor operations

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 20, 2014, 07:40
Default Basic tensor operations
  #1
bou
New Member
 
bou
Join Date: May 2014
Posts: 8
Rep Power: 4
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

Thread Tools
Display Modes

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 On
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 19:28
basic understanding of sHM colinB OpenFOAM Native Meshers: snappyHexMesh and Others 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 10:12.