В экземпляре объекта не задана ссылка на объект

В экземпляре объекта не задана ссылка на объект - Сообщения

#1 Опубликовано: 20.07.2018 05:46:38
genf

genf

6 сообщений из 72 понравились пользователям.

Группа: User

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

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

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

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

Сам файл
Ssylka na obekt.sm (322 КиБ) скачан 40 раз(а).

Спасибо!

Сделал по другому:
Osadka.png
#2 Опубликовано: 20.07.2018 08:51:31
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

fundament.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 20.07.2018 08:56:47
genf

genf

6 сообщений из 72 понравились пользователям.

Группа: User

Это просто не весь расчет (довольно объемный).
Вычленил из него только одну часть, естественно не всё учёл.
#4 Опубликовано: 20.07.2018 09:11:10
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

fundament1.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Опубликовано: 20.07.2018 09:52:53
genf

genf

6 сообщений из 72 понравились пользователям.

Группа: User

У меня в файле все нормально:
Naprjazhenie.png


Может дело в версии программы (у меня довольно старая):
Versija.png
#6 Опубликовано: 20.07.2018 11:22:49
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator


fundament3.png

fundament2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Опубликовано: 23.07.2018 04:00:43
genf

genf

6 сообщений из 72 понравились пользователям.

Группа: User

Не знаю почему у Вас возникает ошибка ... возможно действительно дело в версии.

Сделал так (выделено другим цветом и рамкой):
Ssylka na obekt2.sm (334 КиБ) скачан 32 раз(а).

Ошибки сейчас нет.
#8 Опубликовано: 23.07.2018 04:57:49
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

I do not know

working.png


notworking.png

Anyone check on this please

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#9 Опубликовано: 23.07.2018 06:20:39
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 23.07.2018 06:40:00
#10 Опубликовано: 23.07.2018 06:41:06
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Thank you Davide

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.
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Davide Carpi 23.07.2018 06:42:00
#11 Опубликовано: 23.07.2018 07:19:51
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

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 please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Опубликовано: 23.07.2018 07:28:21
genf

genf

6 сообщений из 72 понравились пользователям.

Группа: User

Wrote

Wrote

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".
"Форма фундамента" не вполне актуальна в данном расчете, так как не учитывается практически (задел на будущее).
#13 Опубликовано: 23.07.2018 07:33:19
Davide Carpi

Davide Carpi

1416 сообщений из 2873 понравились пользователям.

Группа: Moderator

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 Опубликовано: 23.07.2018 07:45:35
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator



Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#15 Опубликовано: 23.07.2018 08:48:53
genf

genf

6 сообщений из 72 понравились пользователям.

Группа: User

Спасибо за участие!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений