Tuesday 21 January 2014

Fluxbox rotate second screen

/etc/X11/xorg.conf :


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection



Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 290"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 290"
    BusID          "PCI:2:0:0"
    Option "RandRRotation" "on"
# http://ubuntunation.blogspot.co.uk/2009/11/howto-rotate-screen-in-linux-using.html    
# http://ubuntuportal.blogspot.co.uk/2007/02/how-to-setup-pivot-screen-rotation-with.html
# Now do, $ xrandr -o left" or so.
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "ProbeAllGpus" "True"
    Option         "TwinViewOrientation" "Clone"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "ProbeAllGpus" "True"
    Option         "TwinViewOrientation" "Clone"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


$ sudo xrandr --screen 1 -o left

Add that command

Wednesday 15 January 2014

openFoam errors and fixes.

on $ blockMesh


--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'blocks' on line 55 and ending at line 125"

a result of using,


   hex(0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (10 1 1)

Changing to 

 hex (0 1 2 3 4 5 6 7) (10 10 1) simpleGrading (10 1 1)

fixed things.  Watch those spaces.

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

$ blockMesh
$ chtMultiRegionSimpleFoam


--> FOAM FATAL ERROR:
Cannot find file "points" in directory "air/polyMesh" in times 0 down to constant

    From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&)
    in file db/Time/findInstance.C at line 188.

FOAM exiting

This occurs in the tutorial also.  Do,

$ blockMesh
$ topoSet
$ splitMeshRegions -cellZones -overwrite
$ chtMultiRegionSimpleFoam


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