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

moderator: external resource attached; please use the attach button if possible
Но код работает, хоть и ошибку высвечивает.
Ошибка в последней области "Определение вертикальных напряжений от внешней нагрузки и собственного веса грунта" файла "Ссылка на объект".
Смысл части кода, где ошибка, в том, чтобы осадка вычислялась только для слоев, слагающих вычисляемую сжимаемую толщу.
Возможно это следует записать по другому.
Сам файл
Ssylka na obekt.sm (322 КиБ) скачан 103 раз(а).
Спасибо!
Сделал по другому:

325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
Вычленил из него только одну часть, естественно не всё учёл.
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator

Сделал так (выделено другим цветом и рамкой):
Ssylka na obekt2.sm (334 КиБ) скачан 91 раз(а).
Ошибки сейчас нет.
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
![2018-07-23 11_18_30-SMath Studio - [Ssylka na obekt2.sm_].png](/ru-RU/files/Download/Bb3XCQ/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](/ru-RU/files/Download/NAnUD7/2018-07-23-11_32_25-SMath-Studio---[Ssylka-na-obekt2.sm_].png)
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator

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.
WroteEDIT: 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.
WroteWroteEDIT: 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".
"Форма фундамента" не вполне актуальна в данном расчете, так как не учитывается практически (задел на будущее).

325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator

Regards,
Radovan
-
Новые сообщения
-
Нет новых сообщений