NSORT,U,Y ! Sorts nodes based on UY deflection
*GET,DMAX,SORT,,MAX ! Parameter DMAX = maximum deflection
! Derived data for line elements are accessed
through ETABLE:
ETABLE,VOLU,VOLU ! VOLU = volume of each element
SSUM ! Sums the data in each column of the element
! table
*GET,VOLUME,SSUM,,ITEM,VOLU ! Parameter VOLUME = total volume
ETABLE,Stress,LS,1
ESORT,ETAB,Stress,,1
*GET,Stress,SORT,,MAX ! Parameter SMAXJ = max. value of SMAX_J
집안 한구석에 박혀있는 저사양 PC (Pentium4, 2G Ram, D875PBZ.. 이정도면 저사양이라 하기 그런가...) 를 이용하여 HTPC를 만들어 보았다. 만들게 된 계기 ?? WINDOWS 8 평가버전을 돌려보니 정말 가벼웠고.. XBMC 가 너무 예뻐보였기 때문이랄까..
바로 설치해 보았다. 헉 그런데...
To install Windows 8 Release Candidate on your PC, the processor (CPU) must support the following features: Physical Address Extension (PAE), NX, and SSE2. Most CPUs have support for these features, so if you receive this error, it is likely because the NX feature is not enabled on your system.
To resolve this error, follow manufacturer guidelines to enable NX (“No eXecute bit”), or the equivalent XD (“eXecute Disabled”), feature within the BIOS settings.This feature is typically found in the Advanced or Security tabs within the BIOS settings, and can be referred to by a variety of names, including but not limited to:
·No Execute Memory Protect
·Execute Disabled Memory Protection
·EDB (Execute Disabled Bit)
·EVP (Enhanced Virus Protection)
내 똥컴은 WINDOWS 8 설치가 되지 않는다는 ㅠㅠ
다른 방법을 찾아야 했다.. 가벼운 운영체제.. 익숙한 UI .
나름 찾은 방법은 Zorin OS에 XBMC를 얹는 것. 자세한 방법은 하기 글 참조하시고..
대체로 만족한다.. 그러나.. 아직도 느리다는 느낌을 지울 수가 없기에 구글링을 더 해보았다.
그러다 찾아낸 물건. geexbox 이거 정말 물건이다.
3.0버전에서는 XBMC까지 품었다. 100메가 조금 넘는 용량으로 CD/USB 부팅 혹은 Install 후 바로 사용가능하다.
A shiny new GeeXboX release has arrived! GeeXboX 3.0 is a major upgrade that integrates XBMC 11 “Eden” and adds the long-requested PVR functionality. This means you can finally use GeeXboX to watch and record live TV too! In addition to our usual x86 ISOs, this release is also available for several embedded platforms, with working full HD video and graphics acceleration for most of them.
A year in the making, this new GeeXboX 3.0 release is the accomplishment of hours, days, months of efforts from a lot of people. The ISO image of “GeeXboX for PC” edition grew up to 140 MB, mostly due to additional firmware and drivers to improve hardware support. We still think of GeeXboX as a lightweight distro, aiming at targeting the most PCs and devices as possible. The whole base system has been overhauled as usual, with countless package upgrades for improved stability and functionality, also benefitting from several improvements to the underlying OpenBricks build system.
GeeXboX also support many embedded devices running ARM SoCs (such as TI OMAP4 Pandaboard, nVidia Tegra 2, Solid-Run Cubox powered by Marvell Armada, ST-Ericsson Snowball), and more will be coming soon. Preliminary support for Toshiba AC100 (Tegra2-based netbook) and Raspberry Pi is already integrated in the development tree.
Here’s a roundup of the new release:
New features:
XBMC Media Center 11 “Eden” frontend.
PVR support for DVB Digital TV, to watch and record live TV
Improved remote control support
Support for Full HD videos on PandaBoard
Support for Full HD videos on Cubox
Improved HDD installation
Installation support for (U)EFI systems
Installation support for SSD’s
Supported Architectures:
x86 32 and 64 bits PCs
ARM TI OMAP4 Pandaboard
ARM nVidia Tegra2 Harmony
ARM Cubox (armada5xx)
ARM Snowball ux500
System:
Linux Kernel v3.4.4.
Systemd v188.
BusyBox v1.21
Connman Network Manager v1.6.
Xorg Server v1.11.4.
Mesa v8.0.3
OPKG Package Manager v0.18
USB persistent user data storage.
Audio Drivers:
ALSA v1.0.24.1.
Support for Analog, SPDIF and HDMI output devices.
Video Drivers:
Support for Intel, nVidia, ATI, Matrox and VIA GPUs.
Support for CRT, LCD and HDMI output devices.
OpenGL and OpenGL|ES hardware assisted graphics acceleration.
VDPAU, VA-API and Crystal HD hardware assisted video decoding for nVidia, Intel and Broadcom GPUs.
Input:
Mouse and Synaptics touch pads.
HID Keyboards.
Remote Controls.
PluseEight CEC devices.
Networking Features:
NFS shares.
Samba auto-discovery.
UPnP / DLNA media discovery.
ZeroConf services announcements.
HTTP server.
FTP server
SSH server
MediaCenter:
XBMC Media Center 11 “Eden” frontend.
Movies and TV Shows, with subtitles support.
Music Collection
Pictures and Slideshows
CDDA, DVD and (non encrypted) Bluray support.
Media Database Support.
Internet MovieDB / TVDB metadata and covers grabbers.
During our webinar held at noon on 9/27/2012 we promised to provide a link to the recording, a PDF of the PowerPoint, and some answers to a few questions. Here is that information:
State Variables
I was a bit confusing on state variables. The problem is with my use of them, not with the variables. The test model only had one integration point. My code is still not working right, the default USERMAT is overwriting my flag somewhere and I don’t have time to figure it out. It’s killing me but I have to do some real work.
But anyhow, my assertion that the state variables are per integration point is correct.
Debugging
I am not aware of any way to use a debugger with ANSYS. There is nothing in the documentation, and to be honest, I’ve not used a real debugger in years. So there may be a way to do so, and see your routine in the debugger since you have the source code, but I have no idea on how to do that. Perhaps someone with more debugging experience can comment below.
Other UPF’s
Someone asked about other routines that are available and we ran out of time before I could go over them. Here is a list.
User elements defined that access the program database directly
USEROU.f
Stores user-provided element output
USERAN.f
Modify orientation of material properties
USERRC.f
COMBIN37 (control/thermostat/spring/damper/resistor) user routine.
UEIMatx.f
Access to an elements matrix or load vector
UTHICK.f
Sets thickness at integration points
UsrFictive
Sets “fictive” temperature (I have no idea what that is)
UFLEX.f
Calculates pipe flexibility for PIPE288/289
UsrShift.f
Allows user to specify time shift
Materials
UserMat.f
User material models
UserHyper.f
User defined hyperelasticity models
UserCreep.f
User defined creep model
user_tbelastic.f
Allows definition of elastic stiffness at a given integration point based on user model. TB,ELASTIC,,,,USER
USERFC.f
User defined failure criteria
USERSWTRAIN.f
User defined swelling, for TB, SWELL,,,,USER
USERCK.f
Helper routine that passes material properties for a user material in
USERFRIC.f
User defined friction calculation. Not just friction but all values calculated in contact calculations with friction turned on.
LOADS
USERFL.f
Changes scalar field values (temp, fluence, heat generation, moisture content, magnetic virtual displacement), by element.
USERPR.f
Calculates element pressure, by element
USERCV.f
Calculates element face convection.
USERFX.f
Calculates element face heat flux
USERCH.f
Calculates element face charge density surface values
USERFD.f
Computes complex load vectors for frequency domain logic
USERPE.f
Calculate the rotation of an elbow pipe element caused by internal pressure
USRSURF116.f USER116Cond.f USER116Hf.f
Modifies the conduction, film coefficient, bulk temp for SURF151/152
userPartVelAcc.f
Ocean wave particle acceleration calculation for PIPE288/289
userPanelHydFor.f
Calcs hydrodynamic loading on SURF164 from ocean loading
USER Commands
USER01.f-USER10.f
Create your own ANSYS commands that are accessed through /UCMD,cmd,num where num refers to the subroutine number and cmd is the command name you want to assign it. Put this in your startxx.ans file to give regular access.
As you will remember from memorizing the previous article, a common use for tables is the set them up to give you a value for a given “primary variable” that is determined by the solver at a given point in the solution. Possible primary variables are: TIME, FREQ, X, Y, Z, TEMP, VELOCITY, PRESSURE and SECTOR. But what if you want to use one of those primary variables to look up a value, then use that value to then interpolate a second value?
A good example is that you have a piece of rotating equipment and the value of the heat transfer coefficient (HF) is a function of RPM and the radius of a given element face. But RPM varies over time. What you can do is make the HF table point to and RPM table that is based on the primary variable time:
So at a given substep, the program will take time and figure out what RPM needs to be. Then it will use RPM and the radius (X in CSYS 1) to figure out the convection coefficient for each node.
As you can imagine, you can get pretty sophisticated with this. The key is that the name of the table you use for the calculated value is input into the variables to interpolate on for the second table, using the *DIM command.
Another common use is scaling tables based on some value. Let say you have a pressure table and the total pressure is scaled over time, based on time. You would make a pressure table that is dependent on say X and y. It would have two planes. One with 0 values and one with the max values. Then you would make a scale table that scales from 0 to 1 based on time. It would look like this:
*DIM,pscl,table,5,,,time !Row label is CPTAB, the table of Cps *taxis,pscl(1,1),1,0,1,5,10,30 pscl(1,1) = .25,.5,1,1,.333
As always with tables, double check things and make sure you have your rows and columns correct. Start simple, and then add more detail. Testing out on a 2x2 or 3x3 tables is a good way to start.
4 and 5 Dimension Arrays and Tables
This section applies to both arrays and tables, so it is a bit beyond the scope of the title, but I hope you will forgive me.
Most users will simply use a one, two, or even three dimension array or table (row, column, plane). However, both arrays and tables support two more dimensions: books and shelves. Because this capability is a later addition to the program, it behaves a little differently. You need to add values for the size of the book (KMAX) and the shelf (MMAX) as well as variable names for each: VAR4 and VAR5
The first difference is in the *DIM command. For normal arrays and tables you use:
It is important to be aware of this because if you look at the manual entry for *DIM it only lists the 3 dimension version of the command, and these variations are covered in the notes.
Once the array or table is defined you have to fill it using APDL commands, this size is not supported in the user interface. The same commands are used, but instead of supplying one, two or three indices values, you supply four or five.
The following is an example of defining a table in terms of location (X,Y,Z), Time, and Temperature. This is the most common usage of a five dimension table:
*dim,ldval,tab5,3,3,3,3,3,X,Y,Z,TIME,TEMP ! table *taxis,ldval(1,1,1,1,1),1,-2.3,0,3.4 ! X Range *taxis,ldval(1,1,1,1,1),2,-1.2,0,1.8 ! Y Range *taxis,ldval(1,1,1,1,1),3,-3.6,0,4.5 ! Z Range *taxis,ldval(1,1,1,1,1),4,0,5,10 ! Time Range *taxis,ldval(1,1,1,1,1),5,32,320,500 ! Temp Range
*do,ii,1,3 *do,jj,1,3 *do,kk,1,3 *do,ll,1,3 *do,mm,1,3 !silly made up equation to fill the table with ldval(ii,jj,kk,ll,mm) = ii*.123+jj/.2+ll*kk+mm*JJ*JJ *enddo *enddo *enddo *enddo *enddo
Writing a Table to a File
For simple 2D tables with up to 10 columns, I use a cheesy macro I wrote called wrttbl.mac. It was used above. It is a bit of a brute force method, because it has code blocks for from 0 to 10 columns. A more general approach would build the actual *VWRITE commands with *VWRITES… It should also be expanded to do Planes. Maybe for a future article.
Anyhow, here it is, maybe you will find it useful.