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

Sample utility not working properly

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2010, 08:40
Thumbs down Sample utility not working properly
  #1
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 17
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
Dear Foamers

I am having problems using the sample utility in either OpenFOAM 1.6 and OpenFOAM 1.5 Dev. To better understand what is going on, I went to the description in the internet of solidDisplacementFoam, to check out in particular the variable definition, to see if there was anything in the variable definition that was hindering the operation of the sample utility. After some tests, I found out the following.

- Only for variables defined for the mesh it was possible to sample. For example, for D is possible as it is defined as

volVectorField D
00003 (
00004 IOobject
00005 (
00006 "D",
00007 runTime.timeName(),
00008 mesh,
00009 IOobject::MUST_READ,
00010 IOobject::AUTO_WRITE
00011 ),
00012 mesh
00013 );

but sigmaD no, being D defined as

00041 (
00042 IOobject
00043 (
00044 "sigmaD",
00045 runTime.timeName(),
00046 mesh,
00047 IOobject::NO_READ,
00048 IOobject::NO_WRITE
00049 ),
00050 mu*twoSymm(fvc::grad(D)) + lambda*(I*tr(fvc::grad(D)))
00051 );

Please note the differences, sigmaD involves a calculated field,
D not.

Also, I cannot extract single components, but, as I got all the
components separately, there is not much of a problem, only more
numbers.... But, to know how to extract single components will be
nice indeed...

How I can sample sigmaD? Is the sample utility not suitable for
this? Should I use probes instead? Why there is an example of the
usage of samples that does not work at all? I do not believe this is
problem of the system I am using, Ubuntu 8.10.

If anyone have some ideas, please answer me and help me out.

Regards,

António Martins
titio is offline   Reply With Quote

Old   June 9, 2010, 09:00
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
I think the important difference here is that D is AUTO_WRITE, while sigmaD is NO_WRITE. If you write out sigmaD to disk, you should be able to sample it.
akidess is offline   Reply With Quote

Old   June 9, 2010, 10:45
Default Tried but did not work
  #3
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 17
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
Akidess,

Changed the definition of sigmaD to AUTO_WRITE, and I got segmentation fault after applying the sample utility. But, if I do the same for the variable divSigmaExp, a vectorField calculated, I got results. SigmaD is a symmetric tensor field, so it seems there is a problem in the software. It may be:

- I am using the wrong comand to write the components.
- Sample does not work for tensors.

Can you help me on this.

Regards,

António Martins
titio 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
Sample Utility not working in OpenFoam 1.6 titio OpenFOAM Post-Processing 6 November 15, 2014 18:04
ParaView or Sample Utility ternik OpenFOAM 0 April 5, 2010 15:15
Understanding the coordinates of sample utility vishwa OpenFOAM Post-Processing 4 March 25, 2010 12:51
Sample Utility not working in OpenFoam 1.6 titio OpenFOAM Post-Processing 0 February 5, 2010 12:12
Sample utility not working in OpenFoam1.5 dev titio OpenFOAM Post-Processing 1 December 10, 2009 02:38


All times are GMT -4. The time now is 08:31.