Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline genf  
#1 Posted : 20 July 2018 11:46:38(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
Добрый день!
Поднял свой старый расчет фундаментов и занялся некоторой оптимизацией. Столкнулся с одной ошибкой "В экземпляре объекта не задана ссылка на объект" (см. скриншот):

Ssylka na obekt.png
moderator: external resource attached; please use the attach button if possible

Но код работает, хоть и ошибку высвечивает.
Ошибка в последней области "Определение вертикальных напряжений от внешней нагрузки и собственного веса грунта" файла "Ссылка на объект".

Смысл части кода, где ошибка, в том, чтобы осадка вычислялась только для слоев, слагающих вычисляемую сжимаемую толщу.
Возможно это следует записать по другому.

Сам файл
Ssylka na obekt.sm (323kb) downloaded 22 time(s).

Спасибо!

Сделал по другому:
Osadka.png

Edited by moderator 23 July 2018 13:01:08(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 20 July 2018 14:51:31(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
fundament.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline genf  
#3 Posted : 20 July 2018 14:56:47(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
Это просто не весь расчет (довольно объемный).
Вычленил из него только одну часть, естественно не всё учёл.
Offline omorr  
#4 Posted : 20 July 2018 15:11:10(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
fundament1.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline genf  
#5 Posted : 20 July 2018 15:52:53(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
У меня в файле все нормально:
Naprjazhenie.png


Может дело в версии программы (у меня довольно старая):
Versija.png
Offline omorr  
#6 Posted : 20 July 2018 17:22:49(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Sad
fundament3.png

fundament2.png

Edited by user 20 July 2018 17:28:25(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline genf  
#7 Posted : 23 July 2018 10:00:43(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
Не знаю почему у Вас возникает ошибка Sad ... возможно действительно дело в версии.

Сделал так (выделено другим цветом и рамкой):
Ssylka na obekt2.sm (335kb) downloaded 14 time(s).

Ошибки сейчас нет.
Offline omorr  
#8 Posted : 23 July 2018 10:57:49(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
I do not know Sad

working.png


notworking.png

Anyone check on this please Help

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Davide Carpi  
#9 Posted : 23 July 2018 12:20:39(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
here's a quick fix, to put right above the first error in the worksheet:

2018-07-23 11_18_30-SMath Studio - [Ssylka na obekt2.sm_].png

"cannot calculate" error message is triggered in the first line of the loop, by el(ξ,1):0.

The issue is due to recent changes in the policy of overwriting existing variables when assigning values by indices; since ξ already exists as scalar, you cannot assign values by matrix indices without redfining it as matrix or clearing it before.

2018-07-23 11_32_25-SMath Studio - [Ssylka na obekt2.sm_].png

Edited by user 23 July 2018 12:41:29(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 23/07/2018(UTC)
Offline omorr  
#10 Posted : 23 July 2018 12:41:06(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Thank you Davide Good

I forgot to check it.

EDIT: But I still think there is an error in calculation - see my previous post. The if() clause was wrong. Only the last equation (from the three available) will be calculated because there is Форма_фундамента vector with three text elements. Therefore, logical expression Форма_фундамента = 1 has no sense. Moreover, variable r is even not defined.

Edited by user 23 July 2018 13:08:45(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 23/07/2018(UTC)
Offline Davide Carpi  
#11 Posted : 23 July 2018 13:19:51(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Originally Posted by: omorr Go to Quoted Post
EDIT: But I still think there is an error in calculation - see my previous post. The if() clause was wrong. Only the last equation (from the three available) will be calculated because there is Форма_фундамента vector with three text elements. Therefore, logical expression Форма_фундамента = 1 has no sense. Moreover, variable r is even not defined.


I've seen it. Obviously yes, only the inner else condition will be calculated as it is the fallback for the always false statements before it; I assume there is an error somwhere, I'm waiting for further inputs by genf.
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline genf  
#12 Posted : 23 July 2018 13:28:21(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
Originally Posted by: Davide Carpi Go to Quoted Post
Originally Posted by: omorr Go to Quoted Post
EDIT: But I still think there is an error in calculation - see my previous post. The if() clause was wrong. Only the last equation (from the three available) will be calculated because there is Форма_фундамента vector with three text elements. Therefore, logical expression Форма_фундамента = 1 has no sense. Moreover, variable r is even not defined.


I've seen it. Obviously yes, only the inner else condition will be calculated as it is the fallback for the always false statements before it; I assume there is an error somwhere, I'm waiting for further inputs by genf.


"Это просто не весь расчет (довольно объемный).
Вычленил из него только одну часть, естественно не всё учёл." в том числе и "r".
"Форма фундамента" не вполне актуальна в данном расчете, так как не учитывается практически (задел на будущее).
Offline Davide Carpi  
#13 Posted : 23 July 2018 13:33:19(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Good
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline omorr  
#14 Posted : 23 July 2018 13:45:35(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Victory

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline genf  
#15 Posted : 23 July 2018 14:48:53(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
Спасибо за участие!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.