« first day (1928 days earlier)      last day (2566 days later) » 

MMM
6:08 AM
Hello Everyone! I hope you people are having a nice weekend.

I want to study heat transfer in a hollow sphere using FEM.

How can I build a hollow sphere as a region of study having length 10, inner radius 1 and outer radius 5?

Any suggestion please?
Thanks
 
 
6 hours later…
11:45 AM
@MMM what is the length of a hollow sphere? p.s. RegionDifference[Ball[{0, 0, 0}, 5], Ball[]]?
 
zhk
12:03 PM
@Kuba 10
 
zhk
12:14 PM
@Kuba But I get an error when i try this RegionPlot[RegionDifference[Ball[{0, 0, 0}, 5], Ball[]]]
 
@MMM I mean, that does it mean the lenght of a spehere?
@MMM
Show[Region@RegionDifference[Ball[{0, 0, 0}, 5], Ball[]],
 ClipPlanes -> {{1, 0, 0, 0}}]
 
zhk
@Kuba the sphere 10 m/in/ft long.
@Kuba Still get an error
 
12:29 PM
@MMM sphere is determined by radius and center's position. Define lenght
Code above works well in 11.1. What error did you get and in which version?
 
zhk
12:43 PM
@Kuba The length is 10, the inner radius is 1 and the outer is 5
@Kuba Show::gtype: Region is not a type of graphics.
 
zhk
1:00 PM
@Kuba AM I not making any sense?
 
@zhk not for me, sorry. Don't know what does it mean 'the length of a sphere". I have to go now.
 
zhk
@Kuba OK we will discuss next time. Thx
@Kuba Sorry dear my bad I was thinking about cylinder and talking about sphere
@Kuba my bad really sorry
 
@Szabolcs Can you tell me what distribution and version you are using?
 
 
3 hours later…
zhk
4:24 PM
@Kuba Hello there!

The issue remain unresolved

Show[Region@RegionDifference[Ball[{0, 0, 0}, 5], Ball[]]]
gives me
Show::gtype: Region is not a type of graphics.

RegionPlot[RegionDifference[Ball[{0, 0, 0}, 5], Ball[]]]
gives me
RegionPlot::nnregion: RegionDifference[Ball[{0,0,0},5],Ball[{0,0,0}]] cannot be automatically discretized.
"11.0.1 for Microsoft Windows (32-bit) (September 21, 2016)"
 
 
2 hours later…
6:27 PM
@zhk yep, Cylidner makes sense :) I don't do so much with regions so I don't know how were they updated recently and what should work in which version.
@zhk what about DiscretizeRegion@RegionDifference[Ball[{0, 0, 0}, 5], Ball[]]?
 
@halirutan Ubuntu 17.04. With M11.0 everything was working well. With M11.1, the text is jumping around, as you described.
 
@Szabolcs If you have some minutes to spare, you could add the details here.
It doesn't seem to appear on all Linux distributions.
 
Hi guys, would anyone know what I'm doing wrong here?
 
@ShaVuklia Can you post code?
 
So I'm trying to plot a bivariate function that is defined piecewise
@halirutan is the screenshot I showed sufficient?
 
6:42 PM
@ShaVuklia you want to compare!
a=1 is not comparing.
 
oh oops
I left out an old mistake
what do you mean by comparing?
so I thought that if (x,y)=(0,0), then the function is 0, and otherwise it's this fraction
 
@ShaVuklia Ah, OK. I see what you want.
No, it doesn't work this way.
 
that's what I read online; I followed an example online
what goes wrong then? @halirutan
 
@ShaVuklia So you want to return 0 when x is 0 and y is zero, right?
 
exactly
 
6:44 PM
@ShaVuklia So you want to test "is x zero and is y zero".
 
should I use If[] ?
 
x=0 is not is x zero. It is set x to zero
 
but we have this
why can't I put the conditions after the comma?
 
@ShaVuklia Yes, exactly.
 
cond1 is x=0 && y=0
 
6:47 PM
@ShaVuklia Look here
Do you see the difference?
 
ohhh
now I see what you mean
 
@ShaVuklia Additionally, look how many braces there need to be in Piecewise
 
ah yea, thanks!
is there still something wrong though? because he still seems to have a problem, something with a list of pairs?
 
@ShaVuklia let me give a simple example. I want that you fix your code yourself, so that you learn.
 
okay
 
6:52 PM
@ShaVuklia Look here and please pay attention on the braces inside Piecewise
 
ohhh
sorry, I can't believe I kept doing that wrong :(
now my function works!
next time I'll triple check on brackets and braces
 
@ShaVuklia No problem. Have fun.
 

« first day (1928 days earlier)      last day (2566 days later) »