Panel Asked to Let Mentally Ill Inmate Fight for Better Care
by KAYLA GOGGINATLANTA (CN) — An attorney with the American Civil Liberties Union asked an 11th Circuit panel Tuesday to reinstate a mentally and physically disabled Georgia inmate’s lawsuit seeking better medical care.
The ACLU filed an appellate brief in January on behalf of Baldwin State Prison inmate Jeffery Geter – who suffers from Parkinson’s disease, epilepsy, bipolar disorder and other conditions – arguing that a federal judge wrongfully dismissed the complaint Geter filed after the prison rejected his grievance due to a procedural error.
Unable to fill out the prison grievance form himself, Geter sought the help of a staff member. The worker failed to follow a policy requiring that the grievance focus on a single issue, instead including 17 issues on the form. The grievance was rejected by the prison warden as a result.
In its appeal brief, the ACLU argued the district court’s order dismissing Geter’s case raises questions “regarding the availability of administrative remedies under the Prison Litigation Reform Act to prisoners with serious mental illness and/or cognitive disabilities.”
The Prison Litigation Reform Act requires prisoners to exhaust administrative remedies before taking their grievance to court, but the ACLU argues that those remedies may not be accessible for prisoners with serious mental illness or intellectual disabilities.
“This case is about whether Geter should be barred from court because his mental illness and intellectual disabilities made administrative remedies unavailable to him,” attorney Jennifer Wedekind of the ACLU National Prison Project argued Tuesday morning before a three-judge panel of the 11th Circuit.
Wedekind noted that Geter, who has an eighth-grade education and is designated a mental health level III patient by the Georgia Department of Corrections, repeatedly included information about his disabilities in his grievance and in his October 2016 pro se complaint seeking damages and equitable relief for the rejection of his grievance.
According to GDC policy, mental health level III inmates have a “tenuous mental status,” may be easily overwhelmed by everyday pressures and demands, and may experience poor judgment, delusional thinking, and hallucinations.
The district court dismissed Geter’s complaint in October 2018, finding that he failed to properly exhaust his administrative remedies.
“He could not understand the grievance procedure as a whole,” Wedekind told the panel Tuesday morning, adding that Geter tried to exhaust his administrative remedies before bringing his pro se complaint but was unable to access the grievance process due to his disabilities.
“It doesn’t immediately follow night from day that he was unable to avail himself of the procedures simply due to his bipolar mental illness and disorders,” said U.S. Circuit Judge Stanley Marcus, a Bill Clinton appointee.
Georgia Assistant Attorney General Ronald Stay urged the panel to uphold the district court’s dismissal and pointed out that Geter had been able to file a grievance without assistance four years before the rejected grievance that led to the appeal.
“The mere fact that someone has a mental disability gives no indication as to what that person can and cannot do… Geter signed [the grievance] and added 15 handwritten pages to it. Clearly Geter understands the general basis of the grievance policy,” Stay said.
“Whatever disabilities Geter has, they did not make it impossible for him to access the process,” he concluded.
In rebuttal, Wedekind noted that Geter’s first grievance was also rejected.
Geter is currently serving a 40-year sentence for rape and other offenses.
Marcus was joined on the panel by U.S. Circuit Judge Elizabeth Branch, appointed by President Donald Trump, and Senior U.S. District Judge Paul Huck, another Clinton sitting by designation from the Southern District of Florida.
The panel did not indicate when it would reach a decision in the case.
Copyright © 2019 courthousenews.com


Ball Toss
问题描述 :
There are two exceptions to this rule: If one catches the ball from the classmate to her immediate left and is also thinking left, she passes the ball to the classmate to her immediate right, and then switches to thinking right. Similarly, if she gets the ball from the classmate to her immediate right and is thinking right, she passes the ball to the classmate to her immediate left, and then switches to thinking left. (Note that these rules are given to avoid the problem of tossing the ball to oneself.)
No matter what the initial pattern of left and right thinking is and who first gets tossed the ball, everyone will get tossed the ball eventually! In this problem, you will figure out how long it takes.
You’ll be given the initial directions of n classmates (numbered clockwise), and the classmate to whom classmate 1 initially tosses the ball. (Classmate 1 will always have the ball initially.)
输入:
n k t1 t2 t3 … tn
where n (2 <= n <= 30) is the number of classmates, numbered 1 through n clockwise around the circle, k (> 1) is the classmate to whom classmate 1 initially tosses the ball, and ti (i = 1, 2, …, n) are each either L or R, indicating the initial direction thought by classmate i. (n = 0 indicates end of input.)
输出:
Classmate m got the ball last after t tosses.
where m and t are for you to determine. You may assume that t will be no larger than 100,000.
Note that classmate number 1 initially has the ball and tosses it to classmate k. Thus, number 1 has not yet been tossed the ball and so does not switch the direction he is thinking.
样例输入:
4 2 L L L L 4 3 R L L R 10 4 R R L R L L R R L R 0
样例输出:
Classmate 3 got the ball last after 4 tosses. Classmate 2 got the ball last after 4 tosses. Classmate 9 got the ball last after 69 tosses.
//贡献了一次WA，原因是忽略了下面这句话：“Note that classmate number 1 initially has the ball and tosses it to classmate k. //Thus, number 1 has not yet been tossed the ball and so does not switch the direction he is thinking. ” 意思是说，虽然球是在同学1的 //手中，但是他是否被传过球，记为false的！要注意啊！还有一个需要注意的就是“she throws it back across the circle one place to the left //(from her perspective) of the person who threw her the ball” 要注意括号里面的句子，好重要，即是说：这个方向是你看一个人的左与右的方向， //而不是一个人自己本身的左与右的方向！ #include <iostream> #include <string> using namespace std; struct Info//储存同学的信息的 { int num;//同学的序号 char direction;//想象中的方向 bool flag;//是否有接过球，即是话有没有同学传过球给他 int leftnum;//在其他同学眼中，他左边的数字！ int rightnum;//在其他同学眼中，他右边的数字！ int left;//就他自己本身来说，他左边的数字！ int right;//就他自己本身；来说，他右边的数字！ }info[35]; int main() { int n, k, i, pre, c, tmp; char temp; bool ff; while (cin >> n && n) { cin >> k; for (i = 1; i <= n; i++)//信息的输入 { cin >> temp; info[i].num = i; info[i].direction = temp; info[i].flag = false; } //对他左右边数的赋值 info[1].rightnum = 2; info[1].left = 2; info[1].leftnum = n; info[1].right = n; info[n].rightnum = 1; info[n].left = 1; info[n].leftnum = n-1; info[n].right = n-1; for (i = 2; i < n; i++) { info[i].rightnum = i+1; info[i].left = i+1; info[i].leftnum = i-1; info[i].right = i-1; } pre = 1; c = 1; ff = false; while (1) { for (i = 1; i <= n; i++) { if (!info[i].flag) { ff = true; break; } } //分情况讨论其中的四种情况！ if (ff) { if (info[k].direction == 'L') { info[k].flag = true; if (pre == info[k].left) { info[k].direction = 'R'; tmp = info[k].right; } else { info[k].direction = 'R'; tmp = info[pre].leftnum; } } else if (info[k].direction == 'R') { info[k].flag = true; if (pre == info[k].right) { info[k].direction = 'L'; tmp = info[k].left; } else { info[k].direction = 'L'; tmp = info[pre].rightnum; } } pre = k; k = tmp; ff = false; c++; } else break; } cout << "Classmate " << pre << " got the ball last after " << c-1 << " tosses." << endl;; } system("pause"); }
转自：http://blog.csdn.net/yzl_rex/article/details/7609035
因为校长微博图片有证据啊。你看看去
对，这里说的最长回文子序列，非子串
惊艳了，没想到代码如此简洁
能不能说一下tmp数组和solve都是干嘛的？
值得分享！
原来欧几里德定理应用这么多
递归还真是一门学问，学习了
失误失误，转载错了。已经改正，抱歉。
97行缺一个分号
great work！
“再把所有不和该节点相邻的节点着相同的颜色”，程序中没有进行不和该节点相邻的其他节点是否相邻进行判断。再说求出来的也不一样是颜色数最少的
for(int i=1; i<=m; i++){
for(int j=1; j<=n; j++){
dp = dp [j-1] + 1;
if(s1.charAt(i-1) == s3.charAt(i+j-1))
dp = dp[i-1] + 1;
if(s2.charAt(j-1) == s3.charAt(i+j-1))
dp = Math.max(dp [j - 1] + 1, dp );
}
}
这里的代码似乎有点问题？ dp(i)(j) = dp(i)(j-1) + 1;这个例子System.out.println(ils.isInterleave("aa","dbbca", "aadbbcb"));返回的应该是false
这个问题别太纠结了，不同的编译器结果不一
正是我要找的，适合新手


Amazon Elastic Container Service TaskDefinition ContainerDefinition
The ContainerDefinition
property type describes the configuration of an Amazon Elastic Container Service
(Amazon ECS) container. The container definitions are passed to the Docker daemon.
The ContainerDefinitions
property of the AWS::ECS::TaskDefinition resource contains a list of ContainerDefinition
property types.
Syntax
JSON
{ "Command" : [
String, ...
], "Cpu" :Integer
, "DisableNetworking" :Boolean
, "DnsSearchDomains" : [String, ...
], "DnsServers" : [String, ...
], "DockerLabels" : {String
:String, ...
}, "DockerSecurityOptions" : [String, ...
], "EntryPoint" : [String, ...
], "Environment" : [ KeyValuePair, ... ], "Essential" :Boolean
, "ExtraHosts" : [ HostEntry, ... ], "HealthCheck" : HealthCheck, "Hostname" :String
, "Image" :String
, "Links" : [String, ...
], "LinuxParameters" : LinuxParameters, "LogConfiguration" : LogConfiguration, "Memory" :Integer
, "MemoryReservation" :Integer
, "MountPoints" : [ MountPoint, ... ], "Name" :String
, "PortMappings" : [ PortMapping, ... ], "Privileged" :Boolean
, "ReadonlyRootFilesystem" :Boolean
, "RepositoryCredentials" : RepositoryCredentials, "Ulimits" : [ Ulimit, ... ], "User" :String
, "VolumesFrom" : [ VolumeFrom, ... ], "WorkingDirectory" :String
}
YAML
Command: -
String
Cpu:Integer
DisableNetworking:Boolean
DnsSearchDomains: -String
DnsServers: -String
DockerLabels:String
:String
DockerSecurityOptions: -String
EntryPoint: -String
Environment: - KeyValuePair Essential:Boolean
ExtraHosts: - HostEntry HealthCheck: HealthCheck Hostname:String
Image:String
Links: -String
LinuxParameters: LinuxParameters LogConfiguration: LogConfiguration Memory:Integer
MemoryReservation:Integer
MountPoints: - MountPoint Name:String
PortMappings: - PortMapping Privileged:Boolean
ReadonlyRootFilesystem:Boolean
RepositoryCredentials: RepositoryCredentials Ulimits: - Ulimit User:String
VolumesFrom: - VolumeFrom WorkingDirectory:String
Properties
For more information about each property, see Task Definition Parameters in the Amazon Elastic Container Service Developer Guide.
Command
-
The
CMD
value to pass to the container. For more information about the DockerCMD
parameter, see https://docs.docker.com/engine/reference/builder/#cmd.Required: No
Type: List of String values
Cpu
-
The minimum number of CPU units to reserve for the container. Containers share unallocated CPU units with other containers on the instance by using the same ratio as their allocated CPU units. For more information, see the
cpu
content for the ContainerDefinition data type in the Amazon Elastic Container Service API Reference.Required: No
Type: Integer
DisableNetworking
-
Indicates whether networking is disabled within the container.
Required: No
Type: Boolean
DnsSearchDomains
-
A list of DNS search domains that are provided to the container. The domain names that the DNS logic looks up when a process attempts to access a bare unqualified hostname.
Required: No
Type: List of String values
DnsServers
-
A list of DNS servers that Amazon ECS provides to the container.
Required: No
Type: List of String values
DockerLabels
-
A key-value map of labels for the container.
Required: No
Type: Key-value pairs, with the name of the label as the key and the label value as the value.
DockerSecurityOptions
-
A list of custom labels for SELinux and AppArmor multi-level security systems. For more information, see the
dockerSecurityOptions
content for the ContainerDefinition data type in the Amazon Elastic Container Service API Reference.Required: No
Type: List of String values
EntryPoint
-
The
ENTRYPOINT
value to pass to the container. For more information about the DockerENTRYPOINT
parameter, see https://docs.docker.com/engine/reference/builder/#entrypoint.Required: No
Type: List of String values
Environment
-
The environment variables to pass to the container.
Required: No
Type: List of KeyValuePair property types
Essential
-
Indicates whether the task stops if this container fails. If you specify
true
and the container fails, all other containers in the task stop. If you specifyfalse
and the container fails, none of the other containers in the task is affected. This value istrue
by default.You must have at least one essential container in a task.
Required: No
Type: Boolean
ExtraHosts
-
A list of hostnames and IP address mappings to append to the
/etc/hosts
file on the container.Required: No
Type: List of HostEntry property types
HealthCheck
-
A container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile).
Required: No
Type: HealthCheck
Hostname
-
The name that Docker uses for the container hostname.
Required: No
Type: String
Image
-
The image to use for a container. The image is passed directly to the Docker daemon. You can use images in the Docker Hub registry or specify other repositories (
repository-url
/image
:tag
).Required: Yes
Type: String
Links
-
The name of another container to connect to. With links, containers can communicate with each other without using port mappings.
Required: No
Type: List of String values
LinuxParameters
-
The Linux-specific options that are applied to the container.
Required: No
Type: LinuxParameters
LogConfiguration
-
Configures a custom log driver for the container. For more information, see the
logConfiguration
content for the ContainerDefinition data type in the Amazon Elastic Container Service API Reference.Required: No
Type: LogConfiguration
Memory
-
The hard limit (in MiB) of memory to present to the container. If your container attempts to exceed the allocated memory, the container is terminated.
Required: Conditional. You must specify one or both of the
Memory
orMemoryReservation
properties. If you specify both, the value for theMemory
property must be greater than the value of theMemoryReservation
property.Type: Integer
MemoryReservation
-
The soft limit (in MiB) of memory to reserve for the container. When system memory is under contention, Docker attempts to keep the container memory within the limit. If the container requires more memory, it can consume up to the value specified by the
Memory
property or all of the available memory on the container instance—whichever comes first.Required: Conditional. You must specify one or both of the
Memory
orMemoryReservation
properties. If you specify both, the value for theMemory
property must be greater than the value of theMemoryReservation
property.Type: Integer
MountPoints
-
The mount points for data volumes in the container.
Required: No
Type: List of MountPoint property types
Name
-
A name for the container.
Required: Yes
Type: String
PortMappings
-
A mapping of the container port to a host port. Port mappings enable containers to access ports on the host container instance to send or receive traffic.
Required: No
Type: List of PortMapping property types
Privileged
-
Indicates whether the container is given full access to the host container instance.
Required: No
Type: Boolean
ReadonlyRootFilesystem
-
Indicates whether the container's root file system is mounted as read only.
Required: No
Type: Boolean
RepositoryCredentials
-
The repository credentials for private registry authentication.
Required: No
Type: RepositoryCredentials
Ulimits
-
A list of ulimits to set in the container. The ulimits set constraints on how many resources a container can consume so that it doesn't deplete all available resources on the host.
Required: No
Type: List of Ulimit property types
User
-
The user name to use inside the container.
Required: No
Type: String
VolumesFrom
-
The data volumes to mount from another container.
Required: No
Type: List of VolumeFrom property types
WorkingDirectory
-
The working directory in the container to run commands in.
Required: No
Type: String
See Also
-
Task Definition Parameters in the Amazon Elastic Container Service Developer Guide


WITNESS LIST
Finance
February 23, 2015 11:00 AM
FOR:
Henry, Mary TJJD Hearing Specialist (TSEU)
Kendall, Sherri CEO (Aid to Victims of Domestic Abuse), Houston
Odom, James (Self), Houston
Parsonage, Jaclyn Sgt of CO's (AFSCME)
Salazar, Richard A. TDCJ - Laundry Manager II (AFSCME - Local 3806)
Setliff, Aaron Director of Policy (also providing written testimony) (The Texas Council on
Family Violence)
Sinclair, Richard A. TDCJ - Laundry Manager (AFSCME Local 3806)
Williams, Charles Parole Officer - TDCJ (also providing written testimony) (Texas State
Employees Union), Hous, TX
Wilson, Catherine Correctional Officer 5 (also providing written testimony) (AFSCME -
TDCJ), Lott, TX
ON:
Bodisch, Robert Deputy Director (also providing written testimony) (Dept. of Public
Safety), Austin, TX
Carrera, Rachel LBB Staff (also providing written testimony) (LBB)
Davis, Grace L. Executive Director HCCADA (also providing written testimony)
(ASAP/HCCADA), San Marcos, TX
Fox, Jennifer LBB Staff (also providing written testimony) (LBB)
Halbert, Joseph LBB Staff (also providing written testimony) (LBB)
Hudson, Denise (also providing written testimony) (Tx Dept of Public Safety), Austin, TX
Jordan, Katasia LBB Staff (also providing written testimony) (LBB)
Levin, Marc Director, Center for Effective Justice (Texas Public Policy Foundation)
Livingston, Brad Executive Director (also providing written testimony) (Texas Department
of Criminal Justice), Huntsville, TX
Lowry, Lance (also providing written testimony) (AFSCME Texas Correctional
Employees - Huntsville)
McCraw, Steven C. Director (also providing written testimony) (Dept. of Public Safety),
Austin, TX
McGeady, John LBB Staff (also providing written testimony) (LBB)
Melecki, Meredith LBB Staff (also providing written testimony) (LBB)
Molina, Laurie LBB Staff (also providing written testimony) (LBB)
Newton, John LBB Staff (also providing written testimony) (LBB)
Nichols, Major General John Adjutant General TX Military Department (also providing
written testimony) (Texas Military Forces), Austin, TX
Posey, John LBB Staff (also providing written testimony) (LBB)
Sinclair, Ed LBB Staff (also providing written testimony) (LBB)
Thurlkill, Jason LBB Staff (also providing written testimony) (LBB)
Velasquez, A.R. Business Owner (Ret'd) (Speaking on Tex Juv Justice Dept)
Waddill, Duane Executive Director (also providing written testimony) (Texas Military
Department), Austin, TX
Wielmaker, John LBB Staff (also providing written testimony) (LBB)
WITNESS LIST
Finance
February 23, 2015 11:00 AM
Zavodny, Don Director (AFSCME Texas Corrections)
Registering, but not testifying:
FOR:
Campbell, James A Consultant (Total Wine & More), Dallas, TX
AGAINST:
Kerwood, PhD, Scott D. Fire Chief, Hutto Fire Rescue (Texas Fire Chiefs Association),
Hutto, TX
ON:
Cochran, Steven L3 - Communications (US Defenders), Waco, TX
Forth, Brian Chief Financial Officer (Texas Commission on Law Enforcement), Austin, TX
Hill, Jason Manager Public Affairs Austin Water (US Defenders Program), Austin, TX
Landers, Paul Motorcycle Rights Activist (Nat'l Coalition of Motorcyclists/US Defenders)
McGinty, Jerry Chief Financial Officer (Texas Department of Criminal Justice), Huntsville,
TX
McGiverin, Brian Civil Rights Attorney (Texas Civil Rights Project), Austin
Neal, Cassi Social Worker - Graduate Student (TCRP and Clients), Austin, TX
Schnexnyder, Jude Motorcycle Safety (US Defenders), Georgetown, TX
Providing written testimony:
FOR:
Humphrey, Cynthia Association Management (Assoc. of Substance Abuse Programs),
Kerrville, TX
Spilman, Tom (Wholesale Beer Distributors of Texas), Austin, TX
ON:
Smith, Douglas Policy Analyst (Texas Criminal Justice Coalition), Austin


Jimmy White knows emotional Ronnie O'Sullivan clash could be final time they ever meet
Two of snookers legendary figures meet in Coventry on Thursday knowing it will be the final time they could meet
by Hector NunnsJimmy White knows his emotional clash with Ronnie O’Sullivan could be the last time they meet on the big stage.
The Whirlwind knew he had seen a special talent when being blown away 5-1 by a then 16-year-old tour rookie 27 years ago.
Kindred snooker spirits with a need to entertain the crowd, White’s desire for playing to the gallery cost him titles.
But five-time world champion O’Sullivan, 43, has managed both – breaking almost all the game’s major records.
The mantle of ‘People’s Champion’ inherited by White, now 57, from the late and great Alex Higgins was duly passed on to O’Sullivan.
And a sell-out crowd will turn up today at Coventry’s Ricoh Arena to salute their heroes at a Champion of Champions last-16 meeting.
White, in the field thanks to his World Seniors win, famously lost all six of his world championship finals – but that overshadowed a glittering career with many titles.
He said: “You never know how many more of these really big occasions against Ronnie there could be in a major tournament.
“I am lucky I get to play him in exhibitions - but this is different. This is the big time again, and why I still practice. To be able to enjoy and absorb that atmosphere.
“I always fancied I would be drawn against Ronnie, it just seemed like fate might take a hand.
“I was watching the video of my ‘This Is Your Life’ the other day with some people. And I spotted Ronnie on the stage at 17 maybe, I had forgotten he was there.
“That was a nice memory. I have always been his biggest fan, but he knows I will be really trying to win on Thursday.
“I remember vividly him beating me 5-1 in Blackpool just after he turned pro. I said to my driver on the way home ‘That is an absolute breath of fresh air for snooker’.
“We earned any fans with the way we play. And I hope there will be a few mums and dads telling their kids ‘Jimmy White can play a bit too – Ronnie’s no certainty’!
“I hope I helped Ronnie. I know sometimes I played to the crowd, and it did cost me. I told him at an early age that to win you can’t always do that.
“But he has a naturally crowd-pleasing style anyway, allied to a real will to win that isn’t always highlighted.”
O’Sullivan will be the hot favourite, and holds an incredible record at the event with three titles and two more final appearances.
He has often struggled with the tour treadmill, and so is in awe of White’s continued enthusiasm and lack of bitterness over his career setbacks.
O’Sullivan said: “He is just a very optimistic guy and I wish I could keep that sort of attitude in the future because if I could, I would play a lot longer than I expect to.
“He is not bitter about whatever scars he has and blows the sport has dealt him. He just gets on with it. And that is all about a genuine love for the game.
“I remember so many of both the games between us – he beat me a couple of times at the Masters – and his other big Crucible finals.
“The match that left me gobsmacked as a kid was his Mercantile Credit Classic 1986 final against Cliff Thorburn, I was only 10.
“It was 12-12, he needed a snooker on pink in the decider, got it, then potted pink and black and lifted the trophy. What a way to win.
“I am surprised he is still playing if I am honest – but he just loves it still, doesn’t he? Not me, I’d have been out the door a long time ago in his position.”


Documentation
Getting Started
Authentication
Errors
APIs
/users
/users
/users/:id
/users/:id
/users
/users/:id
/users/:id/goals
/users/:id/savingInsights
/users/:id/devices
/accounts
/accounts
/accounts/:id
/accounts/:id
/accounts/:id
/accounts/:id/transactions
/goals
/goals/:id
/goalSubscriptions
/goalSubscriptions/:id
/goalSubscriptions/:id
/goalSubscriptions/:id
/goalSubscriptions/:id/transactions
/goalSubscriptions/:id/history
/notifications
Documents by KapitalWise
Search Results
Loading
results
for "
"


Frame¶
Frame Analysis¶
Frame Analysis¶
- class
feastruct.fea.frame.
FrameAnalysis
(nodes, elements, nfa)[source]¶Bases:
feastruct.fea.fea.FiniteElementAnalysis
Parent class for a frame analysis.
Includes a method for analysis initiation and a method for adding a frame element to the analysis.
Variables:
- nodes (list[
Node
]) – Nodes used in the finite element analysis- elements (list[
FrameElement
]) – Elements used in the finite element analysis- nfa (list[bool]) – Node freedom arrangement
- post (
feastruct.post.post.PostProcessor
) – Post-processor object
__init__
(nodes, elements, nfa)[source]¶Inits the FrameAnalysis class.
Parameters:
- nodes (list[
Node
]) – List of nodes with which to initialise the class- elements (list[
FrameElement
]) – List of elements with which to initialise the class- nfa (list[bool]) – Node freedom arrangement
create_element
(el_type, nodes, material, section)[source]¶Creates and returns a frame element and adds it to the
Frame
object. Refer to ‘xxx’ for the possible element types.
Parameters: Returns: FrameElement object
Return type:
create_node
(coords)¶Creates a node and adds it to the Fea object.
Creates and returns a
Node
object and adds it to theFea
object.
Parameters: coords (list[float]) – Cartesian coordinates of the node ([x], [x, y] or [x, y, z]) Returns: Node object Return type: Node
get_node_lims
()¶Finds and returns the minimum and maximum x, y and z values within the current analysis.
Returns: (xmin, xmax, ymin, ymax, zmin, zmax) Return type: tuple(float)
Frame Analysis2D¶
- class
feastruct.fea.frame.
FrameAnalysis2D
(nodes=None, elements=None)[source]¶Bases:
feastruct.fea.frame.FrameAnalysis
Parent class for a 2D frame analysis.
Includes a method for analysis initiation and a method for adding 2D frame elements to the analysis.
Active degrees of freedom are [x, y, rz] and are referred to as [0, 1, 5].
Variables:
- nodes (list[
Node
]) – Nodes used in the finite element analysis- elements (list[
FrameElement
]) – Elements used in the finite element analysis- nfa (list[bool]) – Node freedom arrangement
- post (
feastruct.post.post.PostProcessor
) – Post-processor object
__init__
(nodes=None, elements=None)[source]¶Inits the FrameAnalysis2D class.
Parameters:
- nodes (list[
Node
]) – List of nodes with which to initialise the class- elements (list[
FrameElement
]) – List of elements with which to initialise the class
create_element
(el_type, nodes, material, section)[source]¶Creates and returns a 2D frame element and adds it to the
Frame2D
object. Refer to ‘xxx’ for the possible 2D element types.
Parameters: Returns: FrameElement object
Return type:
create_node
(coords)¶Creates a node and adds it to the Fea object.
Creates and returns a
Node
object and adds it to theFea
object.
Parameters: coords (list[float]) – Cartesian coordinates of the node ([x], [x, y] or [x, y, z]) Returns: Node object Return type: Node
get_node_lims
()¶Finds and returns the minimum and maximum x, y and z values within the current analysis.
Returns: (xmin, xmax, ymin, ymax, zmin, zmax) Return type: tuple(float)
Frame Analysis3D¶
- class
feastruct.fea.frame.
FrameAnalysis3D
(nodes, elements, nfa)[source]¶Bases:
feastruct.fea.frame.FrameAnalysis
__init__
(nodes, elements, nfa)¶Inits the FrameAnalysis class.
Parameters:
- nodes (list[
Node
]) – List of nodes with which to initialise the class- elements (list[
FrameElement
]) – List of elements with which to initialise the class- nfa (list[bool]) – Node freedom arrangement
create_element
(el_type, nodes, material, section)¶Creates and returns a frame element and adds it to the
Frame
object. Refer to ‘xxx’ for the possible element types.
Parameters: Returns: FrameElement object
Return type:
create_node
(coords)¶Creates a node and adds it to the Fea object.
Creates and returns a
Node
object and adds it to theFea
object.
Parameters: coords (list[float]) – Cartesian coordinates of the node ([x], [x, y] or [x, y, z]) Returns: Node object Return type: Node
get_node_lims
()¶Finds and returns the minimum and maximum x, y and z values within the current analysis.
Returns: (xmin, xmax, ymin, ymax, zmin, zmax) Return type: tuple(float)
Frame Elements¶
Frame Element¶
- class
feastruct.fea.frame.
FrameElement
(nodes, material, efs, section)[source]¶Bases:
feastruct.fea.fea.FiniteElement
Parent class for a frame element.
Establishes a template for a frame element and provides a number of generic methods that can be used for any frame element.
Variables:
- nodes (list[
Node
]) – List of node objects defining the element- material (
Material
) – Material object for the element- efs (list[bool]) – Element freedom signature
- f_int (list[
ForceVector
]) – List of internal force vector results stored for each analysis case- section (
Section
) – Section object for the element
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()[source]¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector
Frame Element2D¶
- class
feastruct.fea.frame.
FrameElement2D
(nodes, material, efs, section)[source]¶Bases:
feastruct.fea.frame.FrameElement
Class for a 2D frame element.
Provides a number of methods that can be used for a 2D frame element.
Variables:
- nodes (list[
Node
]) – List of node objects defining the element- material (
Material
) – Material object for the element- efs (list[bool]) – Element freedom signature
- f_int (list[
ForceVector
]) – List of internal force vector results stored for each analysis case- section (
Section
) – Section object for the element
__init__
(nodes, material, efs, section)¶Inits the FrameElement class.
Parameters:
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
plot_axial_force
(ax, analysis_case, scalef)[source]¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotNLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the axial force diagram
plot_bending_moment
(ax, analysis_case, scalef)[source]¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotMLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the bending moment diagram
plot_deformed_element
(ax, analysis_case, n, def_scale, u_el=None)[source]¶Plots a 2D frame element in its deformed configuration for the displacement vector defined by the analysis_case. The deformation is based on the element shape functions. If a displacement vector, u_el, is supplied, uses this to plot the deformed element.
Parameters:
- ax (
matplotlib.axes.Axes
) – Axis object on which to draw the element- analysis_case (
AnalysisCase
) – Analysis case relating to the displacement- n (int) – Number of linear subdivisions used to plot the element
- def_scale (float) – Deformation scale
- u_el (
numpy.ndarray
) – Element displacement vector of size (n_node x n_dof)
plot_element
(ax, linestyle='-', linewidth=2, marker='.')[source]¶Plots the undeformed frame element on the axis defined by ax.
Parameters:
- ax (
matplotlib.axes.Axes
) – Axis object on which to draw the element- linestyle (string) – Element linestyle
- linewidth (int) – Element linewidth
- marker (string) – Node marker type
plot_shear_force
(ax, analysis_case, scalef)[source]¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotVLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the shear force diagram
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector
Frame Element3D¶
- class
feastruct.fea.frame.
FrameElement3D
(nodes, material, efs, section)[source]¶Bases:
feastruct.fea.frame.FrameElement
__init__
(nodes, material, efs, section)¶Inits the FrameElement class.
Parameters:
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector
Bar2D_2N¶
- class
feastruct.fea.frame.
Bar2D_2N
(nodes, material, section)[source]¶Bases:
feastruct.fea.frame.FrameElement2D
Two noded, two dimensional bar element that can resist an axial force only. The element is defined by its two end nodes and uses two linear shape functions to obtain analytical results.
Variables:
- nodes (list[
Node
]) – List of node objects defining the element- material (
Material
) – Material object for the element- efs (list[bool]) – Element freedom signature
- f_int (list[
ForceVector
]) – List of internal force vector results stored for each analysis case- section (
Section
) – Section object for the element
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
calculate_local_displacement
(xi, u_el)[source]¶Calculates the local displacement of the element at position xi given the displacement vector u_el.
Parameters:
- xi (float) – Position along the element
- u_el (
numpy.ndarray
) – Element displacement vectorReturns: Local displacement of the element (u, v)
Return type: tuple(float, float)
get_afd
(n, analysis_case)[source]¶Returns the axial force diagram within the element for n stations for an analysis_case.
Parameters:
- n (int) – Number of stations to sample the axial force diagram
- analysis_case (
AnalysisCase
) – Analysis caseReturns: Axial force diagram
Return type:
numpy.ndarray
get_bmd
(n, analysis_case)[source]¶Returns the bending moment diagram within the element for n stations for an analysis_case.
Parameters:
- n (int) – Number of stations to sample the bending moment diagram
- analysis_case (
AnalysisCase
) – Analysis caseReturns: Shear force diagram
Return type:
numpy.ndarray
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_internal_actions
(analysis_case)[source]¶Returns the internal actions for a two noded 2D bar element.
Parameters: analysis_case ( AnalysisCase
) – Analysis caseReturns: An array containing the internal actions for the element (N1, N2) Return type: numpy.ndarray
get_mass_matrix
()[source]¶Gets the mass matrix for a for a two noded, 2D bar element. The mass matrix has been analytically integrated so numerical integration is not necessary.
Returns: 4 x 4 element mass matrix Return type:
class: numpy.ndarray
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
get_sfd
(n, analysis_case)[source]¶Returns the shear force diagram within the element for n stations for an analysis_case.
Parameters:
- n (int) – Number of stations to sample the shear force diagram
- analysis_case (
AnalysisCase
) – Analysis caseReturns: Shear force diagram
Return type:
numpy.ndarray
get_shape_function
(xi)[source]¶Returns the value of the shape functions N1 and N2 at xi.
Parameters: xi (float) – Position along the element Returns: Value of the shape functions (N1, N2) at xi Return type: numpy.ndarray
get_stiffness_matrix
(linear=True)[source]¶Gets the stiffness matrix for a two noded, 2D bar element. The stiffness matrix has been analytically integrated so numerical integration is not necessary.
Parameters: linear (bool) – Whether a linear or non-linear stiffness matrix is required Returns: 4 x 4 element stiffness matrix Return type: numpy.ndarray
get_transformation_matrix
()[source]¶Returns the transformation matrix for the element.
Returns: Element transformation matrix Return type: numpy.ndarray
plot_axial_force
(ax, analysis_case, scalef)¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotNLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the axial force diagram
plot_bending_moment
(ax, analysis_case, scalef)¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotMLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the bending moment diagram
plot_deformed_element
(ax, analysis_case, n, def_scale, u_el=None)¶Plots a 2D frame element in its deformed configuration for the displacement vector defined by the analysis_case. The deformation is based on the element shape functions. If a displacement vector, u_el, is supplied, uses this to plot the deformed element.
Parameters:
- ax (
matplotlib.axes.Axes
) – Axis object on which to draw the element- analysis_case (
AnalysisCase
) – Analysis case relating to the displacement- n (int) – Number of linear subdivisions used to plot the element
- def_scale (float) – Deformation scale
- u_el (
numpy.ndarray
) – Element displacement vector of size (n_node x n_dof)
plot_element
(ax, linestyle='-', linewidth=2, marker='.')¶Plots the undeformed frame element on the axis defined by ax.
Parameters:
- ax (
matplotlib.axes.Axes
) – Axis object on which to draw the element- linestyle (string) – Element linestyle
- linewidth (int) – Element linewidth
- marker (string) – Node marker type
plot_shear_force
(ax, analysis_case, scalef)¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotVLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the shear force diagram
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector
Bar3D_2N¶
- class
feastruct.fea.frame.
Bar3D_2N
(nodes, material, efs, section)[source]¶Bases:
feastruct.fea.frame.FrameElement3D
__init__
(nodes, material, efs, section)¶Inits the FrameElement class.
Parameters:
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector
EulerBernoulli2D_2N¶
- class
feastruct.fea.frame.
EulerBernoulli2D_2N
(nodes, material, section)[source]¶Bases:
feastruct.fea.frame.FrameElement2D
Two noded, two dimensional frame element based on the Euler-Bernoulli beam formulation for relatively thin beams. The element is defined by its two end nodes and uses four cubic polynomial shape functions to obtain analytical results.
Variables:
- nodes (list[
Node
]) – List of node objects defining the element- material (
Material
) – Material object for the element- efs (list[bool]) – Element freedom signature
- f_int (list[
ForceVector
]) – List of internal force vector results stored for each analysis case- section (
Section
) – Section object for the element
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
calculate_local_displacement
(xi, u_el)[source]¶Calculates the local displacement of the element at position xi given the displacement vector u_el.
Parameters:
- xi (float) – Position along the element
- u_el (
numpy.ndarray
) – Element displacement vectorReturns: Local displacement of the element (u, v)
Return type: tuple(float, float)
get_afd
(n, analysis_case)[source]¶Returns the axial force diagram within the element for n stations for an analysis_case.
Parameters:
- n (int) – Number of stations to sample the axial force diagram
- analysis_case (
AnalysisCase
) – Analysis caseReturns: Axial force diagram
Return type:
numpy.ndarray
get_bmd
(n, analysis_case)[source]¶Returns the bending moment diagram within the element for n stations for an analysis_case.
Parameters:
- n (int) – Number of stations to sample the bending moment diagram
- analysis_case (
AnalysisCase
) – Analysis caseReturns: Shear force diagram
Return type:
numpy.ndarray
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_geometric_stiff_matrix
(analysis_case)[source]¶Gets the geometric stiffness matrix for a two noded 2D Euler-Bernoulli frame element. The stiffness matrix has been analytically integrated so numerical integration is not necessary. The geometric stiffness matrix requires an axial force so the analysis_case from a static analysis must be provided.
Parameters: analysis_case ( AnalysisCase
) – Analysis case from which to extract the axial forceReturns: 6 x 6 element geometric stiffness matrix Return type:
class: numpy.ndarray
get_internal_actions
(analysis_case)[source]¶Returns the internal actions for a two noded 2D Euler-Bernoulli frame element.
Parameters: analysis_case ( AnalysisCase
) – Analysis caseReturns: An array containing the internal actions for the element (N1, V1, M1, N2, V2, M2) Return type: numpy.ndarray
get_mass_matrix
()[source]¶Gets the mass matrix for a for a two noded 2D Euler-Bernoulli frame element. The mass matrix has been analytically integrated so numerical integration is not necessary.
Returns: 6 x 6 element mass matrix Return type:
class: numpy.ndarray
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
get_sfd
(n, analysis_case)[source]¶Returns the shear force diagram within the element for n stations for an analysis_case.
Parameters:
- n (int) – Number of stations to sample the shear force diagram
- analysis_case (
AnalysisCase
) – Analysis caseReturns: Shear force diagram
Return type:
numpy.ndarray
get_shape_function
(xi)[source]¶Returns the value of the shape functions Nu1, Nu2, Nv1 and Nv2 at xi.
Parameters: xi (float) – Position along the element Returns: Value of the shape functions ((Nu1, Nu2), (Nv1, Nv2)) at xi Return type: numpy.ndarray
get_stiffness_matrix
(linear=True)[source]¶Gets the stiffness matrix for a two noded 2D Euler-Bernoulli frame element. The stiffness matrix has been analytically integrated so numerical integration is not necessary.
Parameters: linear (bool) – Whether a linear or non-linear stiffness matrix is required Returns: 6 x 6 element stiffness matrix Return type:
class: numpy.ndarray
get_transformation_matrix
()[source]¶Returns the transformation matrix for the element.
Returns: Element transformation matrix Return type: numpy.ndarray
plot_axial_force
(ax, analysis_case, scalef)¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotNLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the axial force diagram
plot_bending_moment
(ax, analysis_case, scalef)¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotMLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the bending moment diagram
plot_deformed_element
(ax, analysis_case, n, def_scale, u_el=None)¶Plots a 2D frame element in its deformed configuration for the displacement vector defined by the analysis_case. The deformation is based on the element shape functions. If a displacement vector, u_el, is supplied, uses this to plot the deformed element.
Parameters:
- ax (
matplotlib.axes.Axes
) – Axis object on which to draw the element- analysis_case (
AnalysisCase
) – Analysis case relating to the displacement- n (int) – Number of linear subdivisions used to plot the element
- def_scale (float) – Deformation scale
- u_el (
numpy.ndarray
) – Element displacement vector of size (n_node x n_dof)
plot_element
(ax, linestyle='-', linewidth=2, marker='.')¶Plots the undeformed frame element on the axis defined by ax.
Parameters:
- ax (
matplotlib.axes.Axes
) – Axis object on which to draw the element- linestyle (string) – Element linestyle
- linewidth (int) – Element linewidth
- marker (string) – Node marker type
plot_shear_force
(ax, analysis_case, scalef)¶Plots the axial force diagram from a static analysis defined by case_id. N.B. this method is adopted from the MATLAB code by F.P. van der Meer: plotVLine.m.
Parameters:
- ax – Axis object on which to draw the element
- analysis_case (
AnalysisCase
) – Analysis case- scalef (float) – Factor by which to scale the shear force diagram
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector
EulerBernoulli3D_2N¶
- class
feastruct.fea.frame.
EulerBernoulli3D_2N
(nodes, material, efs, section)[source]¶Bases:
feastruct.fea.frame.FrameElement3D
__init__
(nodes, material, efs, section)¶Inits the FrameElement class.
Parameters:
apply_nfa
()¶Applies the element freedom signature to all nodes in the element to generate a node freedom allocation.
get_buckling_results
(analysis_case, buckling_mode=0)¶Returns the eigenvalue corresponding to the buckling analysis defined by the analysis_case and the buckling_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the buckling analysis- buckling_mode (int) – Buckling mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_dofs
()¶Finds and returns a list of DoF objects corresponding to the degrees of freedom of the finite element.
Returns: A list of DoF objects, with a length of (n_nodes x n_dof) Return type: list[list[ DoF
]]
get_fint
(analysis_case)¶Returns the internal force vector relating to an
AnalysisCase
.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the internal force vectorReturns: Internal force vector Return type: numpy.ndarray
Raises: Exception – If the force vector cannot be found for the analysis_case
get_frequency_results
(analysis_case, frequency_mode=0)¶Returns the eigenvalue corresponding to the frequency analysis defined by the analysis_case and the frequency_mode. Also returns an array of eigenvector values corresponding to each degree of freedom in the finite element.
Parameters:
- analysis_case (
AnalysisCase
) – Analysis case relating to the frequency analysis- frequency_mode (int) – Frequency mode number
Returns: Eigenvalue and eigenvectors (w, v). A tuple containing the eigenvalue w and an (n_nodes x n_dof) array of eigenvector values v.
Return type: tuple(float,
numpy.ndarray
)
get_gdof_nums
()¶Returns an array of global degree of freedom numbers corresponding to the degrees of freedom of the finite element.
Returns: A integer array of global degrees of freedom, with a length of (1 x n), where n is n_nodes x n_dof Return type: numpy.ndarray
get_geometric_properties
()¶Calculates geometric properties related to a frame element. Returns the following:
- node_coords: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element
- dx: A (1 x 3) array consisting of the x, y and z distances between the nodes
- l0: The original length of the frame element
- c: A (1 x 3) array consisting of the cosines with respect to the x, y and z axes
Returns: (node_coords, dx, l0, c) Return type: tuple( numpy.ndarray
,numpy.ndarray
, float,numpy.ndarray
)
get_ndof
()¶Returns the number of active degrees of freedom for the element.
Returns: Number of active degrees of freedom for the element Return type: int
get_nodal_displacements
(analysis_case)¶Returns an array of the nodal displacements for each degree of freedom in the finite element for the analysis_case.
Parameters: analysis_case ( AnalysisCase
) – Analysis case relating to the displacementReturns: An (n_nodes x n_dof) array of degree of freedom displacements Return type: numpy.ndarray
get_node_coords
()¶Returns a NumPy array of the cartesian coordinates defining the geometry of the finite element.
Returns: An (n x 3) array of node coordinates, where n is the number of nodes for the given finite element Return type: numpy.ndarray
save_fint
(f, analysis_case)¶Adds an internal force vector result to the
FiniteElement
.
Parameters:
- f (
numpy.ndarray
) – Internal force vector- analysis_case (
AnalysisCase
) – Analysis case relating to the internal force vector


Interface: AMPacket
interface AMPacket
The Active Message accessors, which provide the AM local address and
functionality for querying packets.  Therefore, fields such as source and destination
represent the single-hop source and destination. Multihop sources and
destinations are defined by the corresponding multihop protocol (if any).
Also see the Packet interface.
- Author:
-
Philip Levis
- Date:
-
January 18 2005
- See:
-
Packet
-
AMSend
-
TEP 116: Packet Protocols
Commands
command am_addr_t address()
command am_addr_t destination(message_t *amsg)
command am_group_t group(message_t *amsg)
command bool isForMe(message_t *amsg)
command am_group_t localGroup()
command void setDestination(message_t *amsg, am_addr_t addr)
command void setGroup(message_t *amsg, am_group_t grp)
command void setSource(message_t *amsg, am_addr_t addr)
command void setType(message_t *amsg, am_id_t t)
command am_addr_t source(message_t *amsg)
command am_id_t type(message_t *amsg)
Commands - Details
address
command am_addr_t address()
- Returns:
-
The address
destination
command am_addr_t destination(message_t *amsg)
- Parameters:
-
'message_t* ONE amsg' the packet
- Returns:
-
the destination address of the packet.
group
command am_group_t group(message_t *amsg)
- Parameters:
-
'message_t* ONE amsg' the packet
- Returns:
-
the AM group of this packet
isForMe
command bool isForMe(message_t *amsg)
- Parameters:
-
'message_t* ONE amsg' the packet
- Returns:
-
whether the packet is addressed to this AM stack
localGroup
command am_group_t localGroup()
- Returns:
-
The AM group.
setDestination
command void setDestination(message_t *amsg, am_addr_t addr)
- Parameters:
-
'message_t* ONE amsg' the packet
-
addr
- the address
setGroup
command void setGroup(message_t *amsg, am_group_t grp)
- Parameters:
-
'message_t* ONE amsg' the packet
-
group
- the packet's new AM group value
setSource
command void setSource(message_t *amsg, am_addr_t addr)
- Parameters:
-
'message_t* ONE amsg' the packet
-
addr
- the address
setType
command void setType(message_t *amsg, am_id_t t)
- Parameters:
-
'message_t* ONE amsg' the packet
-
t
- the AM type
source
command am_addr_t source(message_t *amsg)
- Parameters:
-
'message_t* ONE amsg' the packet
- Returns:
-
the source address of the packet.
type
command am_id_t type(message_t *amsg)
- Parameters:
-
'message_t* ONE amsg' the packet
- Returns:
-
the AM type


Mycow's World
☰
Blog
Projects
About
Archive
Mycow's World
Hi, I'm Michael Li. Welcome to my world.


The best photos rejected from the National Portrait Gallery's Taylor Wessing prize
The Portrait Salon Awards 2019 celebrate images submitted to, and rejected by, the National Portrait Gallery's Taylor Wessing Photographic Portrait Prize.
The awards were founded by Carole Evans and James O Jenkins in 2011. Photographer Peter Dench selected this year's winners.
"I lived with the portraits for a week and looked at them every day. It was a short, intense and rewarding relationship," Dench said.
"From the bedroom to the kitchen, the mountains to the sea, the park to posh public school.
"The selection, I hope, will move you and motivate, inform, encourage and engage. It's what a portrait should do and in my opinion, these succeed."
Portrait Salon 2019 will be exhibited at The Royal Photographic Society in Bristol from 21 to 24 November. Portrait Salon will then travel to Photo North Festival in Harrogate from 30 November to 2 December 2019.


{% extends 'direct-sharing/layout.html' %} {% block content %}
"On-site authorization" may be appropriate if...
Here's a summary of main features:


--- layout: post title: Aperture 3 RAW+JPEG Workflow tags: - Aperture 3 - Apple Aperture - Featured - General Photography - RAW+JPEG - work-flow - Workflow status: publish type: post published: true meta: _edit_last: "2" _edit_lock: "1284873661" aktt_notify_twitter: "yes" _thumbnail_id: "2489" ghostpool_post_template: Default ghostpool_link: Post/Page ghostpool_post_image: http://photo.rwboyer.com/wp-content/uploads/2010/09/Ap3_1.jpg ghostpool_post_faded_image: http://photo.rwboyer.com/wp-content/uploads/2010/09/Ap3_1.jpg ghostpool_circle_image: http://photo.rwboyer.com/wp-content/uploads/2010/09/Ap3_1.jpg ghostpool_port_image_small: http://photo.rwboyer.com/wp-content/uploads/2010/09/Ap3.jpg ghostpool_slider_image: http://photo.rwboyer.com/wp-content/uploads/2010/09/Ap3.jpg aktt_tweeted: "1" _wp_old_slug: "" dsq_thread_id: "370159769" --- A couple of readers sent me some email regarding RAW+JPEG work-flow questions. Most of them were very specific to their particular needs so I won't go into the gory details of my replies to them. Too boring. I will publish some additional thoughts here and there as time permits because what I consider an obvious work-flow is not so obvious to a lot of Aperture users out there. That and the RAW+JPEG option is something that a lot of people haven't explored that much. I never shoot RAW only, never have and probably never will. I used to shoot JPEG only but not any more. The only reason that I used to shoot JPEG only is when memory cards were small and expensive. Now that I am no longer constrained in any meaningful way RAW+JPEG seems to me as the only way to go. I guess my first digital camera (Nikon D2H) supported RAW+JPEG so well and so fast I never really thought about shooting just RAW. I have never been mired down in any kind of RAW vs JPEG debates and never even saw the point of that debate since I could have both all the time. Having said that, I do use the JPEG files most of the time unless there is a real need to use the RAW files from a quality, correction, or manipulation standpoint. I am really not into screwing with every single frame I shoot. Especially if I like the out of camera JPEGs. My last post was how time saving RAW+JPEG shooting and importing during the initial stages of an Aperture 3 work-flow and then using the option to import matching RAW files for only the images that you really want the RAW files. I will post something on the 17,000 ways to use that next week. For now I wanted to point out an obvious use of Aperture 3 and RAW+JPEG shooting when your camera doesn't have RAW support in Aperture 3 (yet). What I am about to explain isn't a "normal" work0-flow but it is workable for a while. Consider this - Aperture 3 will import RAW+JPEG pairs even if the RAW file format is not supported. Yep - this is the case with my Panasoic LX5. For me I don't really care because this is what I do as a matter of habit:


When a project ho has a sensitive code between a big-endian or little-endian architecture, we need some way to discover what is the endianess of our computer, in linux, just put this code on your project:
See, this code is using a compiler condition to recognize the endianess of the target architecture. The result program by this code tell us what is the endianness of the computer:
thanks.


I, Amanda Cook, am an artist, software developer, educator and diversity trainer who loves JavaScript, is well-versed in Ruby on Rails and loves to make games out of code and every day life. You want me on your team as both a code contributer and a skilled communicator. I am looking for a software engineering position that allows me to grow as a developer, work on a variety of interesting projects, as well as use my creative skills and artful eye.
Amanda WouldGo, is that your name? Long story short: I traveled the world and realized that if given the opportunity to do rad stuff, I'd do it. "Should I go? Who would go? Amanda WouldGo..." I started a travel blog about it, changed my name to reflect my spirit of adventure and learned to code.
And more: HTML Canvas, SASS, PostgreSQL, ActiveRecord, AJAX, jQuery, Bootstrap, OOP, Leaflet API, Wikitude SDK
Interactive installation for Cisco's 2017 IoT Conference in London. Implemented Javascript, the Leaflet API, Middleman, AWS and Mapbox to build an interactive map that tracks Cisco's IoT case studies around the world. I integrated the fuzzy search function, added a collapsing legend and marker clustering, made the map's Json data accessible from the Ruby on Rails backend and used of several Leaflet plugins.
Used the Wikitude/Javascript SDK to build a mobile app that sends users on an augmented reality treasure hunt. I created pop up points of interest based on the user's geolocation, integrated a 3D object and became familiar with Xcode basics.
Allows users to draw on photos of cats. This full stack solo project reflects my love for JavaScript, art and silliness. I used an ActiveRecord database to save photo titles, pushed the site to Heroku and hit the Cat API.


| |

Hi {Customer_Name},

Congratulations on the first of what is sure to many years of a great business relationship. We are glad that to serve you with our services. Thank you for being a loyal customer for a year.

As a token of appreciation, we are offering you {Discount_Amount_Or_Free_Gift}. Kindly use the coupon code {Coupon_Code} to avail the offer for the next purchase.

| |


WebSpeechFramework
Start Speech Recognition
Try the following commands:
stop
play now
welcome
skip this one


Pico Web Remoting (PWR) allows web requests to be bounded directly to methods in a class. All public methods are eligible, and method parameters are pulled from query-string or form post-fields for invocation. PWR is not a page technology as such, as it uses AJAX invoation of methods on the server side. As such you most likely going to use this technology from JavaScript, with a library like jQuery that makes calling server-side functions that return JSON replies easy.
Every Object gets a URL !We have tried to make PWR as transparent as possible. Thus objects that can be published via PWR, are POJOs. It is up to you whether you interface/impl separate them, but be reminded that by default all public methods will be published. As with all of the PicoContainer Web technologies, you will decide which scope a component belongs in - application, session or request - and compose them accordingly.
Publishing class and method names direct to the web, is alluring, but it is also dangerous. Do not think of this as publishing a domain model to the web, it is really a way for you to markup contacts in plain Java. It also suggests that you are going to want to have a different package, class and method naming design for the objects your publishing with PWR. Read about the example, then read Naming Considerations below
We forked an example of jQuery and Java together made for an IBM AlphaWorks article: Working with jQuery, Part 1: Bringing desktop applications to the browser. The original had a custom servlet to decode requests, invoke methods and craft JSON replies. We've essentially deleted that servlet and leveraged PWR instead.
In the demo webapp there a 'send' method on a class called 'Sent'. The class name and method name are encoded in the URL. The method parameters are pulled from the form post fields, and the reply is a JSON representation of the methods return type. Here are some screenshots from a Firefox plugin called HttpFox and how the web request maps to the source method. The case in question is for the 'send' function of the Simple email app:
MessageData is just a POJO:
A GET invocation is quite similar. Instead of form post-fields the method parameters are mapped to query string parameters.
If PWR encounters an exception during the processing of a method invocation, it takes the message text and makes it available to the client in the following style:
{ "ERROR": true, "message": "no such message ID" }
Composition of the webapp is done in an implementation of WebappComposer, like so:
package org.picocontainer.web.sample.ajaxemail; import org.picocontainer.web.WebappComposer; import static org.picocontainer.web.StringFromRequest.addStringRequestParameters; import static org.picocontainer.web.IntFromRequest.addIntegerRequestParameters; import org.picocontainer.MutablePicoContainer; import static org.picocontainer.Characteristics.USE_NAMES; public class AjaxEmailWebappComposer implements WebappComposer { // These will be cached and shared for all sessions unless otherwise specified public void composeApplication(MutablePicoContainer appContainer) { appContainer.addComponent(MessageStore.class, InMemoryMessageStore.class); } // These components can depend on each other or those from the application scope // They will also be cached per session unless otherwise specified public void composeSession(MutablePicoContainer sessionContainer) { // stateless } // These components can depend on each other or those from the session scope // They will also be cached per session unless otherwise specified public void composeRequest(MutablePicoContainer requestContainer) { // User is specified in a Cookie (after signin obviously) requestContainer.addAdapter(new User.FromCookie()); // Regular components. The public methods for which are published remotely requestContainer.as(USE_NAMES).addComponent(Auth.class); requestContainer.as(USE_NAMES).addComponent(Inbox.class); requestContainer.as(USE_NAMES).addComponent(Sent.class); } }
In the above there is a single application-scoped component, InMemoryMessageStore, for all users/sessions and requests to share. All other components are added at request scope, meaning they are only instantiated at the time of request and only if they are needed. The major components are Auth, Inbox and Sent. They have their public methods made available. Inbox and Sent methods are effectively not available until login has been performed via the Auth class. Once you have logged in, a cookie is set, thus User.FromCookie (a Provider) allows access to that. The parameters for the methods in Auth, Inbox and Send are made available via the addStringRequestParameters(..) and addIntegerRequestParameters(..) methods. These set up multiple Injectors for to allow the binding by name of things from query-string parameters or form post-fields.
Convention over Configuration !
PicoContainer Web Remoting(by default) does not have XML files like Spring, JBoss or XWork (Struts2). It also tries to be as transparent as possible - there are are no base classes to extend, no interfaces to implement, and no mandatory annotations, no bean definitions, no URL mappings, no property assignments - you just call methods on components from a web page in JavaScript. This makes it easy to test components in plain unit tests too.
Here is an fairly standard web.xml for a PicoWebRemoting webapp:
Pico Web Remoting Demo webapp-composer-class org.picocontainer.web.sample.ajaxemail.JQueryDemoWebappComposer pwrFilter org.picocontainer.web.remoting.PicoWebRemotingServlet$ServletFilter pwrFilter /pwr/* org.picocontainer.web.PicoServletContainerListener pwrServlet org.picocontainer.web.remoting.JsonPicoWebRemotingServlet 1 scopes_to_publish session,request package_prefix_to_strip org.picocontainer.web.sample.ajaxemail pwrServlet /pwr/* index.html
In the web.xml file, you can specify a 'scopes_to_publish' element that takes a comma separated list of scopes. One or more of 'application' , 'session' and 'request' (without the quotes). This listed will be analysed for publication as PWR invocable.
Only public method on components managed by PicoContainer are eligible. By default, all web methods (GET, POST, PUT, DELETE) are possible for a matching method. However there are annotations (in package org.picocontainer.web) with names @GET, @POST, @PUT, @DELETE, that restrict down possibilities. If you want a component's method to be only available for POST, put a @POST annotation above it. If you have a public method that you do not want to publish in a component that is otherwise published, use @NONE.
PWR by default will encode the whole class name including package. All dots in the package name are changed to slashes to make apparent directories, and the case of the Class name itself is preserved. With a web.xml element called package_prefix_to_strip it is possible to eliminate a prefix for all of the objects published. Thus, you could essentially turn http://mycompany.com/r/com/mycompany/store/Cart/buy into http://mycompany.com/r/store/Cart/buy if you wanted. The /r/ prefix is the mapping to the servlet that is configured in the web.xml - it could just as easily be /pwr/ or /rpc/ or /ajax/
You can have a suffix such as .ajax or .json at the end the method name. For example http://mycompany.com/r/com/mycompany/store/Cart/buy.json might be what you want. There is an servlet init-param for the servlet in web.xml element called suffix_to_strip that would specify '.json' in this case.
In our example above Auth (the class) appears as 'Auth' in any URLs. If you specify an init parameter of 'lower_case_path' as true, then you can have it as 'auth' in URLs
Many AJAX capable technologies are vulnerable to CSRF attacks. PWR is no different. If you are running your webapp publically, and there are functions that could be valuable for a hacker to invoke simulating genuine user action, you will want to guard them. With PWR, you would set something in the page, that would be send back to the server with each AJAX request. The Guard class would be instantiated before the potentially vulnerable method would be invoked. The guard class would be instantiated and depend on the guard parameter, ensuring that it could be verified and that an exception could be thrown:
requestContainer.addComponent("guard", MyGuard.class); requestContainer.as(GUARD, USE_NAMES).addComponent(VulnerableThing.class);
Binding to parameter from the HTTP Request is implicit as long as you use as(USE_NAMES) when adding components. If you the range of parameter names to be explicit, do the following in WebappComposition class
// these are pulled from query-strings (GET) or form-fields (POST) addStringRequestParameters(requestContainer, "to", "subject", "message", "view", "userName", "password", "userId", "sec"); addIntegerRequestParameters(requestContainer, "msgId");
Consider the this URL: http://mycompany.com/r/com/mycompany/store/ShoppingCart/addToCart
It is what would result from a Java class called ShoppingCart with a method called addToCart (in package com.mycompany.store). Java is often long winded like this. You are going to want to change the rules when working with PWR. ShoppingCart can be shortened to Cart as it is clear being in a directory (package) 'store' what it is. Method 'addToCart' is also too verbose if we consider the URL and the implicit association with 'Cart'. Thus 'buy' might be clearer intent.
In short, when naming packages, classes and methods for PWR, you should think about contracts between the client and the server app, and not simply publishing preexisting names.
It is also the case that you can only have one method of a particular name that is public, otherwise PWR will not know which ne to invoke for incoming requests.
The Maven based example project can be checked out with Subversion from here.
See downloads on how to download the Pico Web Remoting jar either using Maven or by downloading the full distribution.


Hello. I'm a software developer living in Scotland. I build websites/webapps with ASP.NET MVC, Node.js, and Go, with React and Angular on the frontend.
I work for Adimo, a digital marketing company in Glasgow, Scotland.
Checkout my website Spirited Drive, a crowdsourced database of the world's best driving roads. I also have a YouTube channel of the same name.
Contact me on Twitter, or email me at sironfoot@gmail.com


Student @ Lambda School
hopefully my info comes out on my project :) Hello to whoever is reading this!
Current student @ Lambda School, CSPT2.
IOS Dev/ Data Science(LAMBDA). Web Dev. Start-Up Fanatic.
Current Student @ Lambda School. Full stack developer/ Software Engineer.
Current Student @ Lambda School.
Current Student @ Lambda School.
Current Student @ Lambda School.
Current Student @ Lambda School.
Current Student @ Lambda School.
Current Student @ Lambda School.
Current Student @ Lambda School.


Complex master-detail views with CRUD operations and a server-side flow listener.
SelectLevelEvent passing into the flow listener and its return value allow to control the level to be navigated.
If save of the detail view (level 2) was e.g. successful, the next level to go should be the master view (level 1).
Otherwise, in case of some errors, user should stay on the detail view.
${showcase:getFileContent('/sections/masterDetail/example-complexNavigation.xhtml')}
${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/masterdetail/ComplexMasterDetailController.java')}
${showcase:getFileContent('/org/primefaces/extensions/showcase/controller/masterdetail/SelectLevelListener.java')}
${showcase:getFileContent('/org/primefaces/extensions/showcase/model/Person.java')}


Piano Fingering Visualizer accepts the fingering file format used for PIG Dataset. To get access to the dataset and see details of the data format, please visit the PIG Dataset webpage.
With Piano Fingering Visualizer, you can observe and compare fingering files. You can simply drag and drop fingering files to the coloured areas, or click the “Open files” buttons to select fingering files. The names of the selected files will appear in the text boxes on the right.
To visualize, click the “Draw” button.
Fingerings imported to the gray area will appear with gray half-transparent lines. Fingerings imported to the red and blue areas will appear in the corresponding colour. Representations of fingerings will be superposed. The gray fingerings appear in the back, the red one next, and the blue one on the front.
There are two modes of representation. You can change the mode by clicking the radio buttoms. To change the horizontal scale, change the value of “Time scale”.


Jacobs vs Jaffa: Christmas shopping habits revealed
by Jack QuannFigures have been released which show what Irish people are buying in the run-up to Christmas.
Wholesaler Musgrave MarketPlace is predicting that sales of crisps, chocolate and biscuits will increase by 6% this year.
It says an estimated one million Jacob's Biscuits and 100,000 Jaffa Cakes will be bought.
While 839,682 bags of Tayto crisps will be sold over the coming weeks.
This is on top of 29,200 tubs and bags of Cadbury's Roses and 29,728 boxes of Dairy Box.
This equates to almost 1,200,000 sweets which will be bought at Musgrave MarketPlace.
And around 46,000 boxes of Milk Tray will be snapped up by customers.
Musgrave says the most popular Jacob's Biscuits product is the 'Afternoon Tea Tin' assortment.
In addition, people will also devour 133,200 'Chocolate Kimberleys' and over a quarter of a million 'USA' biscuits.
Ciara McClafferty is trading director at Musgrave MarketPlace.
She said: "Christmas is a time for tradition, friends, family and, of course, food."
"We see a sharp rise in demand for traditional Christmas treats like crisps, chocolate, biscuits and fizzy drinks.
"In keeping with previous years, we predict a seasonal spike in confectionery sales of 6%."


Country Flag:
State/Province:
Country:
Favorite Memory:
Main Attraction:
Unique Food:
Style of Music:


"x" "1" "ANDERSEN,PH AND JENSEN,NJ, MUTAGENIC INVESTIGATION OF FLAVORINGS:DIMETHYL SUCCINATE, ETHYL PYRUVATE AND ACONITIC ACID ARE NEGATIVE IN THESALMONELLA/ MAMMALIAN-MICROSOME TEST, FOOD. ADDIT. CONTAM. 1(3) __ :283-288,1984"


{% macro waterfall_description() -%}
DESCRIPTION: Builds the WebRTC standalone native code. As it's marked as FYI, it is allowed to be red. PURPOSE: Act as a staging area for new bots and tools.


---
layout: game-page
redirect_from: /game/fly-game
title: Fly Game
year: 2020
semester: Fall
description: "In Fly Game, you play as a hungry fly in need of some nourishment. Gain points by flying into food, and keep your speed high for a better score! Beware of going too fast and too far, though; boosting takes up energy, and if you run out early, it's game over!
Controls:
Mouse - Change direction of flight
Spacebar - Boost"
tags: Windows Singleplayer Unreal
# tag options: "Windows", "Mac", "Linux",
# "Singleplayer", "Multiplayer",
# "Controller-Compatible", "VR",
# "Game-Jam", "Web", "Other"
project_members: {
Woody McCoy: "Team Lead, Programming, Art",
Sebastian Yang: Programming,
Ben Cagan: Programming,
Lauren Kung: "Programming, Art",
Simona Yu: Sound
}
stage_game_path: fly_game/
builds: {
Windows: "FlyGameWindowsBuild1211.zip"
}
thumbnail: "flygame1.png"
top-img: "flygame3.png"
screenshots: [
"flygame1.png",
"flygame2.png",
"flygame3.png"
]
# Optional
#awards: [
#
#]
# OST-embed instructions: Go to the soundtrack page and click Share -> Embed, and then copy the “src” from the code text and put it in your game info as “OST-embed”
top-img-fit: cover
# top-img-fit options:
# "cover" - Cover the entire top area with the image, without squashing/stretching
# "fill" - Fit the FULL image into the top area, squashing/stretching as necessary
---


Before Change
Returns:
- matrix nxk
raise NotImplementedError
def monte_carlo_log_likelihood(self, log_probability_func, train_y, variational_mean, chol_var_covar, num_samples):
Performs Monte Carlo integration of the provided log_probability function. Typically, this should work by
After Change
if not hasattr(self, "_mm_class"):
grad_fn = self._grad_fn if hasattr(self, "_grad_fn") else None
self._mm_class = function_factory.mm_factory(self._mm_closure_factory, grad_fn)
args = list(self.representation()) + [rhs_mat]
return self._mm_class()(*args)
def monte_carlo_log_likelihood(self, log_probability_func, train_y, variational_mean, chol_var_covar, num_samples):
Performs Monte Carlo integration of the provided log_probability function. Typically, this should work by


| 009:033 Khan | : |
It is He Who has sent His Messenger (Muhammad SAW) with guidance and the religion of truth (Islam), to make it superior over all religions even though the Mushrikun (polytheists, pagans, idolaters, disbelievers in the Oneness of Allah) hate (it). |
| 009:033 Maulana | : |
He it is Who sent His Messenger with guidance and the Religion of Truth, that He may cause it to prevail over all religions, though the polytheists are averse. |
| 009:033 Pickthal | : |
He it is Who hath sent His messenger with the guidance and the Religion of Truth, that He may cause it to prevail over all religion, however much the idolaters may be averse. |
| 009:033 Rashad | : |
He is the One who sent His messenger with the guidance and the religion of truth, and will make it dominate all religions, in spite of the idol worshipers. |
| 009:033 Sarwar | : |
It is God Who sent His Messenger with guidance and a true religion that will prevail over all other religions, even though the pagans may dislike it. |
| 009:033 Shakir | : |
He it is Who sent His Messenger with guidance and the religion of truth, that He might cause it to prevail over all religions, though the polytheists may be averse. |
| 009:033 Sherali | : |
HE it is Who has sent HIS Messenger with guidance and the religion of truth, that HE may make it prevail over every other religion, even though the idolaters may resent it. |
| 009:033 Yusufali | : |
It is He Who hath sent His Messenger with guidance and the Religion of Truth, to proclaim it over all religion, even though the Pagans may detest (it). |
Concepts/Themes Covered: أركان الإسلام > (محمد (صلى الله عليه وسلم > بعثته Pillars of Islam> The Blessed Muhammad(PBUH)> His Mission(PBUH) أركان الإسلام > (محمد (صلى الله عليه وسلم > تأييد رسالته Pillars of Islam> The Blessed Muhammad(PBUH)> Supporting his Message أركان الإسلام > الدين > حقيقة الإسلام Pillars of Islam> Religion> The Reality of Islam
This tool uses eight English parallel translations for the Holy Quran imported from Mr. Clay Smith. You can also visit Qurany Concepts for browsing the Quran themes or topics. If you want to search the Holy Quran for keywords, please visit Qurany Keywords.


Desktop PC vector
| Free vector by
Free Vector
© 2011-2015 Fabrice Bellard, author has licensed software for noncommercial use.


|
Figure 1
|
Variation of the system energy with time for cubic La 2Zr 2O ... |
|
Figure 2
|
Crystal structures and energy variations. ( a) Representatio ... |
|
Figure 3
|
Effect of electronic excitation, temperature and B-site comp ... |
|
Figure 4
|
Effect of electronic excitation and B-site composition. ( a) ... |
|
Figure 5
|
Effect of structure, composition and excitation concentratio ... |
|
Figure 6
|
Effect of electronic excitation, structure and composition o ... |
|
Figure 7
|
Effect of electronic excitation and induced structural defor ... |
|
Figure 8
|
Crystalline-to-amorphous transition temperature as function ... |
|
Figure 9
|
Structural evolution of cubic LZO and monoclinic LTO under e ... |


Brazil Application
Layers
Biomes
States
Description
Legend
Download
Brazil Application
Small application with some data related to Brazil from
IBGE
.