• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Adams
  3. How to write initialization solver command for batch mode...

Following Cadence Design Systems’ acquisition of the Design & Engineering (D&E) business, the D&E Community Forum on the Nexus Community Center has been migrated in the Cadence Physical System Simulation Community. For more details and if you have any questions, please refer to the FAQ.

Stats

  • State Not Answered
  • Replies 6
  • Subscribers 3
  • Views 2
  • Members are here 0
More Content

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

sambochlin
sambochlin over 5 years ago
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
  • Sign in to reply
  • Cancel
  • MK202610123211
    0 MK202610123211 over 5 years ago
    The variables you refer to are A/view design time variables.
    They cannot be set via acf files.
     
    Depending on what they parametrize, you could define them as solver-variables and later use varval(.PARDRONE.LENGTH ).
     
    But this doesn't work for most typical applications like positioning a marker with that number.
    In this case you need to write the resulting adm-statement to the acf like
    MARKER/3 , QP = 100.0, 0, 1.0
     
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sambochlin
    0 sambochlin over 5 years ago
    Thanks for the answer.
    My model geometry is parametrized by length and height value.​
    I want to know the proper solver command to initialize these values at begining of the run
    ​
    Something like:
    VARIABLE/Length , function = 700​
    ​
    Can you advise of the proper syntax?
    ​
    Thannks​
    ​
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jpatterson
    0 jpatterson over 5 years ago
    I usually do this in a command file (.cmd) I run before I perform the simulation.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sambochlin
    0 sambochlin over 5 years ago
    jpatterson thanks for your response
    ​I Understand from documentation and adm711 course that you can initialize in batch mode using only solver command file (.acf)
    Looking for the right way to define the .acf file in adams control initialization​
    ​
    ​
    ​
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jesper Slattengren
    0 Jesper Slattengren over 5 years ago
    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.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information