Ansys Learning Forum Forums Discuss Simulation General Mechanical Lookup table ansys composite prepost(Ansys ACP) Reply To: Lookup table ansys composite prepost(Ansys ACP)

Reno Genest
Ansys Employee

Hello Chirag,

If you have access to ACP, you should have access to the help:

 

There are 3 ways to populate lookup tables in ACP. Here is more information from the help:

"

Populating Look-Up Tables

The easiest way is to populate Look-up Tables is with the help of the Edit Entities with Excel on Windows. The set-up with exporting and importing a .csv file is similar and ideal for Linux. Data can also be entered into Look-up Tables using The ACP Python Scripting User Interface.

There are three approaches to populating a Look-Up table. This can be done with:

"

Here is an example of a lookup table in Excel:

You can import the above Excel table in ACP.

 

And here is an example script to create a 1D lookup table in ACP:

table = db.active_model.create_lookup_table1d(name='LookUpTable1D.1')
table.origin=(0.0, 0.0, 0.0)
table.direction=(1.0, 0.0, 0.0)
table.create_column(name='Value', type='scalar')
table.dimensions=['length', 'dimensionless']
table.columns['Location'].values = [0., 1., 2., 3.]
table.columns['Value'].values = [0., 1., 2., 3.]

Note that everything you do in the ACP GUI gets recorded as Python script at the bottom. So, you can create
lookup tables manually and then modify the recorded script to do what you want.



You can copy this script in a Python script file, for example myACPscript.py and replay it in ACP:



Give it a try and let me know how it goes.

 

Reno.