9: Summary

Follow

All your models should follow the structure outlined in this tutorial example or be very similar in order to cover all aspects of your model setup. You will be able re-use the code from this model and develop it into models for your own applications. Here are is a checklist of questions you should always consider when building your model:

  • Have all useful dimensions been captured to map out your geometry with keypoints?
  • Has the mesh/grid been set up to accurately model your application?
  • Have all the materials, to be used in the model, been defined and accessible in the file?
  • Have materials been assigned to the correct location on the grid to recreate the desired geometry?
  • Has the model been set up to interact with the external world beyond the model boundaries?
  • Is there a method of stimulating/loading the model?
  • Have all desired outputs been requested?
  • Final checks before model execution?
  • Run the model

Some additional advice and tips to help with coding your models:

  • Always start with a small and simple 2D model - these are quick to run and can be used to debug set up issues, test new designs and confirm fundamental theories
  • Comment throughout your model - helps others understand what is happening in your code as well as reminding yourself
  • Keep your code tidy - much easier to spot coding errors when the code is structured well
  • Used the debug window to figure out model issues - the debug show where errors encounter in your model file to help you pinpoint the issue
  • Variables I J K L M N are integer variables by default - this is a very common error
  • Use the command reference to figure out how to set up commands

Analysing Model Outputs

Within your model folder directory, output files will have been generated from the simulations which can include the following file types:

  • Flex History File - .flxhst - stores all data requested by the pout command
  • Flex Data Out File - .flxdato - stores any data field requested using the data out command
  • Flex Extrapolation - .flxext - the extrapolation file generated from the extr command
  • Flex Print File - .flxprt - The print file contains a log of all the lines of code executed with additional model data
  • Flex Symbol File - .symb - contains all variables used in the model

You are now ready to analyse your model outputs using the Post Processor!!

end_.PNG

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.