LSV Utility
LSV is a program that computes least-squares projection from the element-level vorticity to the node-level, suitable for visualization in EnSight or pV3. Only 1-pass of the lumped mass-matrix iteration is generally sufficient here.
Documentation
This is it, and you can also look at the source code in the lsv CVS module. The file parseinput.F can be helpful in identifying all current options, and the initialize.F will show you some of the default values.
Data Requirements
LSV reads standard MIXD format data files. The files should be pure IEEE binary, 64-bit floating point, node-level. For more information on writing pure binary files see the EWD library documentation.
System Requirements
LSV has been compiled under IRIX 6.x, Linux 2.x and Mac OS 10.x.
Usage
LSV executable resides usually in /usr/local/bin/lsv. When run interactively,
it looks for a lsv.in input file in the current directory, and if it is found, accepts the command input from there. If that file does not exist, the commands are read from the standard input. Alternatively, the input can be redirected from an arbitrary file. There are no command line options
at the moment. The program produces two degrees of freedom in 2D case (signed vorticity and its magnitude), and five degrees of freedom in the 3D case (three vorticity components, their magnitude and helicity).
Input
LSV accepts the following keywords as commands.
Key values can be integer %d, floating point %f and strings without spaces %s.
| Key | Description | Example | Default |
abort |
aborts the program | abort |
- |
source %s |
temporarily switches command input to another file | source minf |
- |
iquad %d |
quadrature code | iquad 2 |
1 |
nsd %d |
number of spatial dimensions | nsd 2 |
3 |
nen %d |
number of element nodes | nen 8 |
4 |
ndf %d |
number of degrees of freedom per node | ndf 5 |
4 |
ne %d |
number of mesh elements | ne 396682 |
- |
nn %d |
number of mesh nodes | nn 139352 |
- |
nrec %d |
number of data and/or coordinate records | nrec 20 |
1 |
minrec %d |
nstarting data and/or coordinate record | minrec 2 |
1 |
maxrec %d |
ending data and/or coordinate record | maxrec 18 |
nrec |
increc %d |
data and/or coordinate record increment | increc 2 |
1 |
onerec %d |
single record number | onerec 18 |
- |
udf %d |
x-velocity degree of freedom | udf 2 |
1 |
vdf %d |
y-velocity degree of freedom | vdf 3 |
2 |
wdf %d |
z-velocity degree of freedom | wdf 4 |
3 |
dir %s |
default directory | dir /work |
. |
mien %s |
file name containing connectivity array | mien /tmp/mien |
mien |
mxyz %s |
file name containing nodal coordinates | mxyz /tmp/mxyz.space |
mxyz |
data %s |
file name containing nodal data | data /tmp/do.0048 |
data |
vort %s |
file name for placing vorticity | mrng /tmp/vort |
vort |
Sample Input
As an example, consider the input file listed below:
hydra(test)% cat lsv.in source minf.space mxyz mxyz.space data do.1e7.0500 vort vo.1e7.0500 debug on moving on ndf 4 nrec 5
This would create a vorticity file vo.1e7.0500 suitable for analysis with Pager or EnSight.




