hexagon logo

How to write initialization solver command for batch mode. i mean inside the .acf file

The view command im trying to write in solver command is:
variable set variable_name =.PARDRONE.LENGTH real_value =700.00
variable set variable_name =.PARDRONE.Height real_value = 1.00
Parents
  • But as Martin already explained to you, it is not possible to change a View variable in a solver script (acf).
    View variables (as in your example) is used to parameterize the model and change it in the preprocessor. Once you export the adm file, there is no trace of them anymore. They are replaced by their value in the adm file. Threefore it is not possible to change them in an acf-file.
    But you can run Adams/View in batch. If you start Adams/View in batch mode and it exist a file named aview.cmd in the working directory, that file will be processed. So there you can read in a model (bin or cmd), change anything you want and run the simulation.
     
    So you have misunderstood what you can do from an acf-file.
Reply
  • But as Martin already explained to you, it is not possible to change a View variable in a solver script (acf).
    View variables (as in your example) is used to parameterize the model and change it in the preprocessor. Once you export the adm file, there is no trace of them anymore. They are replaced by their value in the adm file. Threefore it is not possible to change them in an acf-file.
    But you can run Adams/View in batch. If you start Adams/View in batch mode and it exist a file named aview.cmd in the working directory, that file will be processed. So there you can read in a model (bin or cmd), change anything you want and run the simulation.
     
    So you have misunderstood what you can do from an acf-file.
Children
No Data