Code Monkey home page Code Monkey logo

Comments (6)

OndraMichal avatar OndraMichal commented on June 14, 2024

Hi @Dervis-vL,
thank you for the request. The Result Combination class should be updated for sure. But you can use it even in its current state. Envoking print(model1.factory.create('ns0:result_combination')) will give you an idea about structure of the result_combination object. If there is every parameter needed than create such parameter via model1.factory.create('ns0:result_combination'). Set parameters by set_result_combination, or add all parameters via params attribute as dictionary:
ResultCombination(params={'name': ..., 'srss_combination': ..., 'srss_extreme_value_sign': ..., 'srss_use_equivalent_linear_combination': ...}).

from rfem_python_client.

Dervis-vL avatar Dervis-vL commented on June 14, 2024

Hi @OndraMichal ,

thank you for the quick reply. I managed to get information about the result_combination object by envoking a slightly different call than you suggested:

print(Model.clientModel.factory.create('ns0:result_combination'))

This gave me the following response:

(result_combination){
no = None
design_situation = None
user_defined_name_enabled = None
name = None
to_solve = None
comment = None
combination_type =
(result_combination_combination_type){
value = None
}
srss_combination = None
srss_extreme_value_sign =
(result_combination_srss_extreme_value_sign){
value = None
}
srss_use_equivalent_linear_combination = None
srss_according_load_case_or_combination = None
items =
(array_of_result_combination_items){
result_combination_items[] =
}
generate_subcombinations = None
load_duration = None
is_generated = None
consider_construction_stage = None
consider_construction_stage_active = None
id_for_export_import = None
metadata_for_export_import = None
}

The part where the components of the result combinations can be defined is in the following code:

items =
(array_of_result_combination_items){
result_combination_items[] =
}

For this part, I cannot find more documentation. For me it is still not clear how to define the following:

  • define load cases
  • define the related factor,
  • define the related load type and
  • define the related operator

As an example, lets say we want to include:

  • load case = LC1
    • factor = 1.25
    • load type = Transient
    • operator = OR
  • load case = LC2
    • factor = 1.25
    • load type = Transient
    • operator = OR

How would you include those 2 load cases within the items param?

from rfem_python_client.

OndraMichal avatar OndraMichal commented on June 14, 2024

Hi @Dervis-vL,
for that the easiest way is to create such object in RFEM and use WS to print it out via print(Model.clientModel.service.get_result_combination(1)). it will give you something like the following giving you idea about values and types of the parameters.

(result_combination){
   no = 1
   design_situation = 1
   user_defined_name_enabled = True
   name = "Result combination 1"
   to_solve = True
   comment = None
   combination_type = "COMBINATION_TYPE_GENERAL"
   srss_combination = False
   items =
      (array_of_result_combination_items){
         result_combination_items[] =
            (result_combination_items_row){
               no = 1
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 1
                     operator_type = "OPERATOR_AND"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 2
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 2
                     operator_type = "OPERATOR_AND"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 3
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 3
                     operator_type = "OPERATOR_OR"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 4
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 2
                     operator_type = "OPERATOR_OR"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 5
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 3
                     operator_type = "OPERATOR_AND"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 6
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 4
                     operator_type = "OPERATOR_NONE"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_TRANSIENT"
                  }
            },
      }
   ...
 }

from rfem_python_client.

OndraMichal avatar OndraMichal commented on June 14, 2024

Update of Result Combination is in progress. I'm pushing it as far as I can.

from rfem_python_client.

OndraMichal avatar OndraMichal commented on June 14, 2024

Result Combination class is prepared for PR. See branch dogukaratas-resultCombinationUpdate.

from rfem_python_client.

dogukankaratas avatar dogukankaratas commented on June 14, 2024

Hi @Dervis-vL,
PR 254 has created acc. to your comments.

from rfem_python_client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.