Monday, 18 May 2009

Mounting windows shares with smbfs

http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html

worked. Attempts with cifs failed.

Tuesday, 12 May 2009

***ERROR*** IN D55025 MERGING COUPLING MATRIX

***ERROR*** IN D55025 MERGING COUPLING MATRIX
ROW CANNOT BE FOUND FOR FREEDOM 1711
AT NODE 1417 FACE -1417. -1416. -734.0
THE FLUID FREEDOMS CURRENTLY MERGED IN ARE

452.0 0.000 0.000 0.000 0.000
0.000 0.000 445.0 0.000 446.0
447.0 0.000 0.000 0.000 0.000

Occurred when changing a frontal.sinusoidal job, to natural frequencies.

I forgot to include COUPLED.ACOUSTICS in the control module. This was
an acoustics + structure + pzt job.

Monday, 11 May 2009

jpgfdraw

Brilliant!

Wednesday, 6 May 2009

***ERROR*** IN S60001

***ERROR*** IN S60001
NO RESULTS ARE REQUESTED FOR STORAGE
IN FRONTAL.TRANSIENT ANALYSIS

I added a little to the response module:
RESPONSE
TYPE TIME.STEP FINISH.TIME OUTPUT.TYPE LIST.OF.NODES.AND.DIRECTIONS
2 7E-7 6E-5 123 <'rsn1'> 2

The List of nodes and directions needed filling in.

Note: No masters should be present in a FRONTAL.TRANSIENT job. Also,
removal of LINKS.FOR.DYNAMICS enabled the solution to complete; otherwise, it fell over after many steps in phase 7.

Tuesday, 5 May 2009

Accessing pressure results in PAFEC

Can't convince PAFEC to export pressure at a node? Is it failing in Phase 4, complaining that a node isn't structural and so can't be included in SINUSOIDAL.OUTPUT?

Remove the SINUSOIDAL.OUTPUT module altogether. Results at all nodes will be printed in phase 7.

Cheers Patrick!

Sunday, 3 May 2009

.flv playback, ubuntu

First, try gxine. If that fails.....

From http://ubuntuforums.org/showthread.php?t=484750

How to enable lame for FFMPEG (needed to encode FLV with sound)

KINO FLVs silent? You need to recompile FFMPEG with LAME enabled. FFMPEG can be installed via apt-get as a package, but is not able encode MP3, which is the audio stream in FLV video (like Google & YouTube).

* Ensure Ubuntu Universe repository is selected #How to add extra repositories
* Download and install lame liblame-dev and gcc packages (mp3 encoder + GNU compiler collection)

sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 \
liba52-0.7.4-dev libx264-dev libdts-dev libgsm1-dev libvorbis-dev libdc1394-13-dev \
checkinstall build-essential gcc

libfaac didnt work for me.

* Download and extract FFMPEG source to current working directory

cd /usr/local/src
sudo apt-get source ffmpeg

* Compile FFMPEG from source

cd ffmpeg-*
NOT THIS ONE:
sudo ./configure --enable-gpl --enable-pp --enable-vorbis --enable-libogg \
--enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-pthreads \
--enable-x264

THIS ONE, without faad
maybe try instead =
sudo ./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libogg \
--enable-liba52 --enable-libdts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads \
--enable-x264


sudo make
sudo checkinstall [accept defaults, set version to 3:0.cvs20060823-3.1ubuntu2]

If during the make it dies at 'x264.c:147: error: `struct ` has no member name `i_rf_constant` you need to do the following. Open libavcodec/x264.c and goto line 147. Change 'i_rf_constant' to 'f_rf_constant' and retry.

If an application you are using employs FFMPEG to encode FLV, it should now work properly. You can also call FFMPEG directly from the command line. The extension/suffix of the outfile tells FFMPEG which audio or video format to encode to.

ffmpeg [-i infile] [outfile]



Then, i removed xine-ui, downloaded the xine core stuff, ./configured, added an LD_LIBRARY_PATH
to .bashrc (as suggested at the end of the ./configure)

Added include /usr/local/lib to ld.so.conf


sudo make install

sudo ldconfig

wget http://prdownloads.sourceforge.net/xine/xine-ui-0.99.5.tar.gz
tar xzf xine-ui
cd xine-ui
./configure
sudo make install

then i couldnt run it, so bottled the process with:

sudo apt-get install xine-ui

and still, no .flv playback, ffs


and then, somehow, gxine worked! Odd.

Friday, 24 April 2009

PAFEC error collection

**ERROR** FAILURE IN SUBROUTINE R09895
ATTEMPT TO ACCESS SWITCH21883 IN MODULE 113
BUT THIS MODULE ONLY CONTAINS10008 SWITCHES

This occurred when PAFBLOCKS were used with node numbers
that did not exist (the referenced nodes were of very large values)

-----------------------------------------

ERROR IN CALL TO R09895
SWITCHES MODULE 2058 IS NOT IN BASE

fixed by:

adding FRONTAL.SINUSOIDAL.SOLUTION

------------------------------------

*** ERROR *** THERE ARE 0 DEGREES OF FREEDOM THIS IS INSUFFICIENT FOR A VIBRATION/BUCKLING PROBLEM.

This occurred with a PZT / acoustic simulation. Viewing node numbers to check which node
to apply a voltage to, showed the acoustic node numbers only, with default settings.
I set direction 4 on the acoustic node, with the result that no meaningful boundary condition was
set.

Mesh parts, structure showed a different node number. Changing to this number fixed the error.

--------------------------------------

*** ERROR *** THE INSTANTANEOUS SIZE SO FAR CALCULATED, IS 9999.
THIS IS GREATER THAN THE MAXIMUM 9998

in Phase 4. Big job. Fixed by adding,

PHASE=4
MAX.FS.RECORD=100000

to the control module. Default size is 10,000

-----------------------------

Phase 4: Acoustic FE with BE.

 ***ERROR*** IN R25875
 SAME NODE IN BOTH ACOUSTIC BOUNDARY
 AND FINITE ELEMENT TOPOLOGIES
 NODE 101 B.E. 1 F.E. 51
 NODE 105 B.E. 1 F.E. 50
 NODE 105 B.E. 1 F.E. 51

Set the BE to group 1, the acoustic FE to group 2 and do:

COLLAPSE
GR1 GR2 COUP
1 2 3

to separate the nodes.

-----------------------------

***ERROR*** IN ROUTINE R25868
NO COUPLING FOR FLUID BOUNDARY ELEMENT FACE
111 112 113

Occurred with CONTROL module option,

TOLERANCE=10E-12

Changing to

TOLERANCE=10E-6

fixed this.

----------------------------------
Phase 7

CHANGE IN DEFINE RESPONSE
AT TIME 0.0000000E+00 FOR DOF 43
0 *** A BLOCKED FRONT SOLUTION HAS BEEN REQUESTED ***
0 THE BLOCK SIZE IS 891112
***ERROR***
FAILURE IN R09810
THERE ARE NO SCRATCH MODULES AVAILABLE


A result of leaving MASTERS in a FRONTAL.TRANSIENT analysis.

-------------------------------

Phase 4.

**ERROR** FAILURE IN SUBROUTINE R09895
 ATTEMPT TO ACCESS SWITCH   71 IN MODULE  177
 BUT THIS MODULE ONLY CONTAINS    0 SWITCHES

This was a thermal job.  I left SINE.LOADING, RESPONSE, FRONTAL.SINUSOIDAL.SOLUTION, COMPLEX.SOLUTION, VISCOELASTIC in.  The error changed to,


 **ERROR** FAILURE IN SUBROUTINE R09895
 ATTEMPT TO ACCESS SWITCH   25 IN MODULE  113
 BUT THIS MODULE ONLY CONTAINS   12 SWITCHES

Removed HARMONIC.NUMBER=0.  No change.
Removed LAMINATES and ORTHOTROPIC modules: Nope.
Removed PIEZOELECTRIC module.  Nope.
Removed FREQUENCIES.FOR.ANALYSIS.  Nope.
Removed MODES.AND.FREQUENCIES.  Nope.
Removed FULL.DYNAMICS.OUTPUT.  Nope.
Redefine MATERIALS for thermal:  Nope.
Added a different temperature elsewhere in the model.  Bingo.

---------------------------------